Copy Swift libraries on macOS

This commit is contained in:
James Turner 2020-03-30 13:32:57 +01:00
parent a2eb0d7b4c
commit 0ddf75b382

View File

@ -99,7 +99,7 @@ bins.each do |b|
`cp #{$prefixDir}/bin/#{b} #{outPath}`
end
puts "copying libraries"
puts "Copying OSG libraries"
$osgLibs.each do |l|
libFile = "lib#{l}.#{$osgSoVersion}.dylib"
`cp #{$prefixDir}/lib/#{libFile} #{$frameworksDir}`
@ -109,6 +109,12 @@ end
libFile = "libOpenThreads.#{$openThreadsSoVersion}.dylib"
`cp #{$prefixDir}/lib/#{libFile} #{$frameworksDir}`
# needed for SWIFT integration
otherLibs = ['dbus-1.3', 'event_core-2.2.1']
otherLibs.each do |l|
`cp #{$prefixDir}/lib/lib#{l}.dylib #{$frameworksDir}`
end
$osgPlugins.each do |p|
pluginFile = "osgdb_#{p}.dylib"
`cp #{$prefixDir}/lib/osgPlugins/#{pluginFile} #{osgPluginsDir}`