diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index d8514030f..d3c46bafb 100644 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -1595,6 +1595,14 @@ if (LINUX) set(product ${VIEWER_BRANDING_NAME_CAMELCASE}-${ARCH}-${viewer_VERSION}) + if (FMODEX) + if(MANIFEST_LIBRARIES) + set(MANIFEST_LIBRARIES "${MANIFEST_LIBRARIES}|${FMODEX_LIBRARY}") + else(MANIFEST_LIBRARIES) + set(MANIFEST_LIBRARIES "--extra_libraries=${FMODEX_LIBRARY}") + endif(MANIFEST_LIBRARIES) + endif (FMODEX) + add_custom_command( OUTPUT ${product}.tar.bz2 COMMAND ${PYTHON_EXECUTABLE} @@ -1613,6 +1621,7 @@ if (LINUX) --dest=${CMAKE_CURRENT_BINARY_DIR}/packaged --touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/.${product}.touched --buildtype=${CMAKE_BUILD_TYPE} + ${MANIFEST_LIBRARIES} DEPENDS secondlife-stripped ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py ) diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py index e595d9e13..4775a72e9 100755 --- a/indra/newview/viewer_manifest.py +++ b/indra/newview/viewer_manifest.py @@ -809,6 +809,16 @@ class Linux_i686Manifest(LinuxManifest): self.end_prefix("lib") + if self.args['extra_libraries'] != None: + print self.args['extra_libraries'] + path_list = self.args['extra_libraries'].split('|') + for path in path_list: + path = os.path.realpath(path) + path_pair = path.rsplit('/', 1) + if self.prefix(src=path_pair[0], dst="lib"): + self.path(path_pair[1]) + self.end_prefix() + # Vivox runtimes if self.prefix(src="vivox-runtime/i686-linux", dst="bin"): self.path("SLVoice")