/Rakefile

http://github.com/jfahrenkrug/MapKit-HelloWorld · Rakefile · 25 lines · 21 code · 4 blank · 0 comment · 5 complexity · 8258b84667d65b9173dc0b933607f836 MD5 · raw file

  1. require 'objective-j'
  2. require 'objective-j/bundletask'
  3. if !ENV['CONFIG']
  4. ENV['CONFIG'] = 'Debug'
  5. end
  6. ObjectiveJ::BundleTask.new(:MapKitHelloWorld) do |t|
  7. t.name = 'MapKit-HelloWorld'
  8. t.identifier = 'com.yourcompany.MapKitHelloWorld'
  9. t.version = '1.0'
  10. t.author = 'Your Company'
  11. t.email = 'feedback @nospam@ yourcompany.com'
  12. t.summary = 'MapKit-HelloWorld'
  13. t.sources = FileList['*.j']
  14. t.resources = FileList['Resources/*']
  15. t.index_file = 'index.html'
  16. t.info_plist = 'Info.plist'
  17. t.build_path = File.join('Build', ENV['CONFIG'], 'MapKitHelloWorld')
  18. t.flag = '-DDEBUG' if ENV['CONFIG'] == 'Debug'
  19. t.flag = '-O' if ENV['CONFIG'] == 'Release'
  20. end
  21. task :default => [:MapKitHelloWorld]