-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmotion-reveal.rb
22 lines (20 loc) · 956 Bytes
/
motion-reveal.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
unless defined?(Motion::Project::Config)
raise "This file must be required within a RubyMotion project Rakefile."
end
Motion::Project::App.setup do |app|
app.development do
if File.exist? ('/Applications/Reveal.app')
# Fixes build issues with Reveal 1.5
app.libs += ['/usr/lib/libz.dylib', '/usr/lib/libc++.dylib']
if File.exist?('/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/RevealServer.framework') #Reveal 2.0
app.embedded_frameworks += ['/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/RevealServer.framework']
else
app.vendor_project('/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/Reveal.framework', :static, :products => ['Reveal'], :cflags => '-ObjC')
end
app.frameworks << 'CFNetwork'
app.frameworks << 'QuartzCore'
else
puts "[warning] Reveal.app not found - Download beta from http://www.revealapp.com"
end
end
end