add 'libs' config variable

This commit is contained in:
Laurent Sansonetti
2011-12-10 22:50:24 +01:00
parent 770d31aef1
commit 412d6126f2
2 changed files with 3 additions and 2 deletions

View File

@@ -162,7 +162,7 @@ EOS
stubs_obj = File.join(datadir, platform, "#{framework}_stubs.o")
framework_stubs_objs << "\"#{stubs_obj}\"" if File.exist?(stubs_obj)
end
sh "#{cxx} -o \"#{main_exec}\" #{objs_list} #{arch_flags} #{framework_stubs_objs.join(' ')} -isysroot \"#{sdk}\" -miphoneos-version-min=#{config.sdk_version} -L#{File.join(datadir, platform)} -lmacruby-static -lobjc -licucore #{frameworks} #{vendor_libs.map { |x| '-force_load ' + x }.join(' ')}"
sh "#{cxx} -o \"#{main_exec}\" #{objs_list} #{arch_flags} #{framework_stubs_objs.join(' ')} -isysroot \"#{sdk}\" -miphoneos-version-min=#{config.sdk_version} -L#{File.join(datadir, platform)} -lmacruby-static -lobjc -licucore #{frameworks} #{config.libs.join(' ')} #{vendor_libs.map { |x| '-force_load ' + x }.join(' ')}"
# Create bundle/Info.plist.
bundle_info_plist = File.join(bundle_path, 'Info.plist')

View File

@@ -24,7 +24,7 @@ module Motion; module Project
end
end
variable :files, :platforms_dir, :sdk_version, :frameworks,
variable :files, :platforms_dir, :sdk_version, :frameworks, :libs,
:delegate_class, :name, :build_dir, :resources_dir, :identifier,
:codesign_certificate, :provisioning_profile, :device_family,
:interface_orientations, :version, :icons, :seed_id,
@@ -36,6 +36,7 @@ module Motion; module Project
@dependencies = {}
@platforms_dir = '/Developer/Platforms'
@frameworks = ['UIKit', 'Foundation', 'CoreGraphics']
@libs = []
@delegate_class = 'AppDelegate'
@name = 'Untitled'
@resources_dir = File.join(project_dir, 'resources')