mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-27 14:07:03 +00:00
26 lines
836 B
Ruby
26 lines
836 B
Ruby
|
|
require 'objective-j'
|
|
require 'objective-j/bundletask'
|
|
|
|
if !ENV['CONFIG']
|
|
ENV['CONFIG'] = 'Debug'
|
|
end
|
|
|
|
ObjectiveJ::BundleTask.new(:__project.nameasidentifier__) do |t|
|
|
t.name = '__project.name__'
|
|
t.identifier = '__project.identifier__'
|
|
t.version = '1.0'
|
|
t.author = '__organization.name__'
|
|
t.email = '__organization.email__'
|
|
t.summary = '__project.name__'
|
|
t.sources = FileList['*.j']
|
|
t.resources = FileList['Resources/*']
|
|
t.index_file = 'index.html'
|
|
t.info_plist = 'Info.plist'
|
|
t.build_path = File.join('Build', ENV['CONFIG'], '__project.nameasidentifier__')
|
|
t.flag = '-DDEBUG' if ENV['CONFIG'] == 'Debug'
|
|
t.flag = '-O' if ENV['CONFIG'] == 'Release'
|
|
end
|
|
|
|
task :default => [:__project.nameasidentifier__]
|