mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-21 02:50:14 +08:00
add 'libs' config variable
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user