Skip missing OSG plugins silently in Mac packaging
This commit is contained in:
parent
1ff0264a57
commit
4c54c5feb6
1 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
||||||
#!/usr/bin/ruby
|
#!/usr/bin/ruby
|
||||||
|
|
||||||
require 'ERB'
|
require 'ERB'
|
||||||
|
require 'fileutils' #I know, no underscore is not ruby-like
|
||||||
|
include FileUtils
|
||||||
|
|
||||||
$osgLibs = ['osgFX', 'osgParticle', 'osg', 'osgGA', 'osgText', 'osgUtil', 'osgSim', 'osgViewer', 'osgDB']
|
$osgLibs = ['osgFX', 'osgParticle', 'osg', 'osgGA', 'osgText', 'osgUtil', 'osgSim', 'osgViewer', 'osgDB']
|
||||||
$osgPlugins = ['ac', 'osg', 'freetype', 'qt', 'imageio', 'rgb', 'txf', 'mdl', '3ds']
|
$osgPlugins = ['ac', 'osg', 'freetype', 'qt', 'imageio', 'rgb', 'txf', 'mdl', '3ds']
|
||||||
|
@ -84,8 +86,11 @@ libFile = "libOpenThreads.#{$openThreadsSoVersion}.dylib"
|
||||||
|
|
||||||
$osgPlugins.each do |p|
|
$osgPlugins.each do |p|
|
||||||
pluginFile = "osgdb_#{p}.so"
|
pluginFile = "osgdb_#{p}.so"
|
||||||
`cp #{prefixDir}/lib/osgPlugins-#{osgVersion}/#{pluginFile} #{osgPluginsDir}`
|
sourcePath = "#{prefixDir}/lib/osgPlugins-#{osgVersion}/#{pluginFile}"
|
||||||
fix_install_names("#{osgPluginsDir}/#{pluginFile}")
|
if File.exists?(sourcePath)
|
||||||
|
`cp #{sourcePath} #{osgPluginsDir}`
|
||||||
|
fix_install_names("#{osgPluginsDir}/#{pluginFile}")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# custom ALUT
|
# custom ALUT
|
||||||
|
|
Loading…
Add table
Reference in a new issue