diff options
author | Jacek Antonelli | 2010-11-14 02:04:26 -0600 |
---|---|---|
committer | Jacek Antonelli | 2010-11-14 02:27:50 -0600 |
commit | e888b19adc3d7293a4d69962ba0fdebeeeb01793 (patch) | |
tree | f1bcaf22a7bbb7fe2acc9efd3a8f25dc56165ea6 /linden/indra | |
parent | Use proper install_name for Mac libllcommon. (diff) | |
download | meta-impy-e888b19adc3d7293a4d69962ba0fdebeeeb01793.zip meta-impy-e888b19adc3d7293a4d69962ba0fdebeeeb01793.tar.gz meta-impy-e888b19adc3d7293a4d69962ba0fdebeeeb01793.tar.bz2 meta-impy-e888b19adc3d7293a4d69962ba0fdebeeeb01793.tar.xz |
Simplified install of libllcommon in Mac manifest.
Diffstat (limited to 'linden/indra')
-rwxr-xr-x | linden/indra/newview/viewer_manifest.py | 66 |
1 files changed, 21 insertions, 45 deletions
diff --git a/linden/indra/newview/viewer_manifest.py b/linden/indra/newview/viewer_manifest.py index 948e88e..56c2410 100755 --- a/linden/indra/newview/viewer_manifest.py +++ b/linden/indra/newview/viewer_manifest.py | |||
@@ -740,63 +740,39 @@ class DarwinManifest(ViewerManifest): | |||
740 | #self.path("vivox-runtime/universal-darwin/SLVoiceAgent.app", "SLVoiceAgent.app") | 740 | #self.path("vivox-runtime/universal-darwin/SLVoiceAgent.app", "SLVoiceAgent.app") |
741 | 741 | ||
742 | libdir = "../../libraries/universal-darwin/lib_release" | 742 | libdir = "../../libraries/universal-darwin/lib_release" |
743 | dylibs = {} | 743 | |
744 | 744 | self.path(os.path.join(os.pardir, | |
745 | #for lib in "llkdu", "llcommon": | 745 | "llcommon", |
746 | for lib in "llcommon": | 746 | self.args['configuration'], |
747 | libfile = "lib%s.dylib" % lib | 747 | "libllcommon.dylib"), |
748 | try: | 748 | dst="libllcommon.dylib") |
749 | self.path(self.find_existing_file(os.path.join(os.pardir, | 749 | |
750 | lib, | ||
751 | self.args['configuration'], | ||
752 | libfile), | ||
753 | os.path.join(libdir, libfile)), | ||
754 | dst=libfile) | ||
755 | except RuntimeError: | ||
756 | print "Skipping %s" % libfile | ||
757 | dylibs[lib] = False | ||
758 | else: | ||
759 | dylibs[lib] = True | ||
760 | 750 | ||
761 | for libfile in ("libapr-1.0.3.7.dylib", | 751 | for libfile in ("libapr-1.0.3.7.dylib", |
762 | "libaprutil-1.0.3.8.dylib", | 752 | "libaprutil-1.0.3.8.dylib", |
763 | "libexpat.0.5.0.dylib"): | 753 | "libexpat.0.5.0.dylib"): |
764 | self.path(os.path.join(libdir, libfile), libfile) | 754 | self.path(os.path.join(libdir, libfile), libfile) |
765 | 755 | ||
766 | #libfmodwrapper.dylib | ||
767 | #self.path(self.args['configuration'] + "/libfmodwrapper.dylib", "libfmodwrapper.dylib") | ||
768 | |||
769 | # our apps | 756 | # our apps |
770 | # self.path("../mac_crash_logger/" + self.args['configuration'] + "/mac-crash-logger.app", "mac-crash-logger.app") | 757 | # self.path("../mac_crash_logger/" + self.args['configuration'] + "/mac-crash-logger.app", "mac-crash-logger.app") |
771 | # self.path("../mac_updater/" + self.args['configuration'] + "/mac-updater.app", "mac-updater.app") | 758 | # self.path("../mac_updater/" + self.args['configuration'] + "/mac-updater.app", "mac-updater.app") |
772 | 759 | ||
773 | # our apps dependencies on shared libs | ||
774 | if dylibs["llcommon"]: | ||
775 | # mac_crash_logger_res_path = self.dst_path_of("mac-crash-logger.app/Contents/Resources") | ||
776 | # mac_updater_res_path = self.dst_path_of("mac-updater.app/Contents/Resources") | ||
777 | slplugin_res_path = self.dst_path_of("SLPlugin.app/Contents/Resources") | ||
778 | for libfile in ("libllcommon.dylib", | ||
779 | "libapr-1.0.3.7.dylib", | ||
780 | "libaprutil-1.0.3.8.dylib", | ||
781 | "libexpat.0.5.0.dylib", | ||
782 | ): | ||
783 | target_lib = os.path.join('../../..', libfile) | ||
784 | # self.run_command("ln -sf %(target)r %(link)r" % | ||
785 | # {'target': target_lib, | ||
786 | # 'link' : os.path.join(mac_crash_logger_res_path, libfile)} | ||
787 | # ) | ||
788 | # self.run_command("ln -sf %(target)r %(link)r" % | ||
789 | # {'target': target_lib, | ||
790 | # 'link' : os.path.join(mac_updater_res_path, libfile)} | ||
791 | # ) | ||
792 | self.run_command("ln -sf %(target)r %(link)r" % | ||
793 | {'target': target_lib, | ||
794 | 'link' : os.path.join(slplugin_res_path, libfile)} | ||
795 | ) | ||
796 | |||
797 | # plugin launcher | 760 | # plugin launcher |
798 | self.path("../llplugin/slplugin/" + self.args['configuration'] + "/SLPlugin.app", "SLPlugin.app") | 761 | self.path("../llplugin/slplugin/" + self.args['configuration'] + "/SLPlugin.app", "SLPlugin.app") |
799 | 762 | ||
763 | # symlinks for SLPlugin.app dependencies | ||
764 | slplugin_res_path = self.dst_path_of("SLPlugin.app/Contents/Resources") | ||
765 | for libfile in ("libllcommon.dylib", | ||
766 | "libapr-1.0.3.7.dylib", | ||
767 | "libaprutil-1.0.3.8.dylib", | ||
768 | "libexpat.0.5.0.dylib", | ||
769 | ): | ||
770 | target_lib = os.path.join('../../..', libfile) | ||
771 | self.run_command("ln -sf %(target)r %(link)r" % | ||
772 | {'target': target_lib, | ||
773 | 'link' : os.path.join(slplugin_res_path, libfile)} | ||
774 | ) | ||
775 | |||
800 | # plugins | 776 | # plugins |
801 | if self.prefix(src="", dst="llplugin"): | 777 | if self.prefix(src="", dst="llplugin"): |
802 | self.path("../media_plugins/quicktime/" + self.args['configuration'] + "/media_plugin_quicktime.dylib", "media_plugin_quicktime.dylib") | 778 | self.path("../media_plugins/quicktime/" + self.args['configuration'] + "/media_plugin_quicktime.dylib", "media_plugin_quicktime.dylib") |