mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-18 07:29:20 +08:00
24 lines
405 B
Ruby
24 lines
405 B
Ruby
PLATFORMS_DIR = '/Developer/Platforms'
|
|
SDK_VERSION = '4.3'
|
|
|
|
def rake(dir, cmd='all')
|
|
Dir.chdir(dir) do
|
|
sh "rake platforms_dir=#{PLATFORMS_DIR} sdk_version=#{SDK_VERSION} #{cmd}"
|
|
end
|
|
end
|
|
|
|
targets = %w{vm data doc}
|
|
|
|
task :default => :all
|
|
task :all => targets
|
|
|
|
targets.each do |target|
|
|
task target do
|
|
rake(target)
|
|
end
|
|
end
|
|
|
|
task :clean do
|
|
targets.each { |target| rake(target, 'clean') }
|
|
end
|