From 0ddf75b3824b7812f8073bd8ae60d565cdb89708 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 30 Mar 2020 13:32:57 +0100 Subject: [PATCH] Copy Swift libraries on macOS --- hudson_mac_package_release.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hudson_mac_package_release.rb b/hudson_mac_package_release.rb index 4b5c27d..445a775 100755 --- a/hudson_mac_package_release.rb +++ b/hudson_mac_package_release.rb @@ -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}`