mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-05-16 18:09:31 +08:00
data/ios/libmacruby-repl.dylib is now universal
This commit is contained in:
@@ -28,7 +28,6 @@ task :vm_files do
|
||||
end
|
||||
end
|
||||
|
||||
first = true
|
||||
IOS_SDK_VERSIONS.each do |sdk_version|
|
||||
ios = File.join('ios', sdk_version, 'iPhoneOS')
|
||||
mkdir_p ios
|
||||
@@ -45,14 +44,15 @@ task :vm_files do
|
||||
install path, sim
|
||||
end
|
||||
install File.join(objs, 'libmacruby-static.a'), sim
|
||||
|
||||
if first
|
||||
objs = "../vm/iPhoneSimulator#{sdk_version}-repl.objs"
|
||||
install File.join(objs, 'libmacruby-repl.dylib'), 'ios'
|
||||
first = false
|
||||
end
|
||||
end
|
||||
|
||||
# Create a fat libmacruby-repl.dylib library for iOS simulator. The i386 slice has a deployment_target for 4.3 and the x86_64 slice has a deployment_target for 7.0.
|
||||
first_ios_repl = "../vm/iPhoneSimulator#{IOS_SDK_VERSIONS.first}-repl.objs/libmacruby-repl.dylib"
|
||||
raise "does not target 7.0?" unless IOS_SDK_VERSIONS.include?('7.0')
|
||||
last_ios_repl = "../vm/iPhoneSimulator7.0-repl.objs/libmacruby-repl.dylib"
|
||||
sh "/usr/bin/lipo -extract_family x86_64 \"#{last_ios_repl}\" -output /tmp/libmacruby-repl64.dylib"
|
||||
sh "/usr/bin/lipo -create \"#{first_ios_repl}\" /tmp/libmacruby-repl64.dylib -output ios/libmacruby-repl.dylib"
|
||||
|
||||
# XXX we are no longer stripping symbols since it apparently removes exception handlers
|
||||
# (iOS 7 only). Not a big deal since we do not compile with debug metadata by default (-g).
|
||||
# remove debug symbols
|
||||
|
||||
Reference in New Issue
Block a user