mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-23 20:31:17 +08:00
bring back ColorSync + add support for other umbrella'ted frameworks
This commit is contained in:
@@ -81,7 +81,7 @@ def merge_bridgesupport(base_bridgesupport, merge_brigesupport)
|
||||
}
|
||||
end
|
||||
|
||||
EXCLUDED_FRAMEWORKS = ['Kernel', 'System', 'IOKit', 'Carbon', 'Ruby', 'RubyCocoa', 'vecLib', 'ColorSync']
|
||||
EXCLUDED_FRAMEWORKS = ['Kernel', 'System', 'IOKit', 'Carbon', 'Ruby', 'RubyCocoa', 'vecLib']
|
||||
task :bridgesupport_files do
|
||||
platform_dev_path = "#{PLATFORMS_DIR}/MacOSX.platform/Developer"
|
||||
OSX_SDK_VERSIONS.each do |sdk_version|
|
||||
@@ -100,10 +100,18 @@ task :bridgesupport_files do
|
||||
break unless File.exist?(File.join(framework_path, 'Headers'))
|
||||
dest = "osx/#{sdk_version}/BridgeSupport/#{framework}.bridgesupport"
|
||||
dest = "osx/#{sdk_version}/BridgeSupport/child/#{framework}.bridgesupport" if is_handle_nested
|
||||
|
||||
linked_framework =
|
||||
case framework
|
||||
when 'CFNetwork', 'LaunchServices', 'Metadata' then 'CoreServices'
|
||||
when 'ColorSync', 'HIServices' then 'ApplicationServices'
|
||||
else framework
|
||||
end
|
||||
|
||||
unless File.exist?(dest)
|
||||
a = sdk_version.scan(/(\d+)\.(\d+)/)[0]
|
||||
sdk_version_headers = ((a[0].to_i * 100) + (a[1].to_i * 10)).to_s
|
||||
sh "../bin/gen_bridge_metadata --format complete --cflags \"-isysroot #{sdk_path} -mmacosx-version-min=#{sdk_version} -DTARGET_OS_MAC -D__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=#{sdk_version_headers} -D__STRICT_ANSI__ -F#{File.dirname(framework_path)} -framework #{framework}\" --framework #{framework_path} > #{dest}"
|
||||
sh "../bin/gen_bridge_metadata --format complete --cflags \"-isysroot #{sdk_path} -mmacosx-version-min=#{sdk_version} -DTARGET_OS_MAC -D__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=#{sdk_version_headers} -D__STRICT_ANSI__ -F#{File.dirname(framework_path)} -framework #{linked_framework}\" --framework #{framework_path} > #{dest}"
|
||||
apply_bridgesupport_fixes(dest)
|
||||
return dest
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user