Packager now conditionally includes fmodex/fmod.dll if project is set to use them.
This commit is contained in:
@@ -1392,7 +1392,19 @@ if (WINDOWS)
|
|||||||
set(release_flags "/MAP:Release/${VIEWER_BINARY_NAME}.map")
|
set(release_flags "/MAP:Release/${VIEWER_BINARY_NAME}.map")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (FMOD)
|
||||||
|
if(MANIFEST_LIBRARIES)
|
||||||
|
set(MANIFEST_LIBRARIES "${MANIFEST_LIBRARIES}|${FMOD_BINARY_DIR}/fmod.dll")
|
||||||
|
else(MANIFEST_LIBRARIES)
|
||||||
|
set(MANIFEST_LIBRARIES "--extra_libraries=${FMOD_BINARY_DIR}/fmod.dll")
|
||||||
|
endif(MANIFEST_LIBRARIES)
|
||||||
|
endif (FMOD)
|
||||||
if (FMODEX)
|
if (FMODEX)
|
||||||
|
if(MANIFEST_LIBRARIES)
|
||||||
|
set(MANIFEST_LIBRARIES "${MANIFEST_LIBRARIES}|${FMODEX_BINARY_DIR}/fmodex.dll")
|
||||||
|
else(MANIFEST_LIBRARIES)
|
||||||
|
set(MANIFEST_LIBRARIES "--extra_libraries=${FMODEX_BINARY_DIR}/fmodex.dll")
|
||||||
|
endif(MANIFEST_LIBRARIES)
|
||||||
set(EXTRA_LINKER_FLAGS "/DELAYLOAD:fmodex.dll")
|
set(EXTRA_LINKER_FLAGS "/DELAYLOAD:fmodex.dll")
|
||||||
endif (FMODEX)
|
endif (FMODEX)
|
||||||
|
|
||||||
@@ -1461,6 +1473,7 @@ endif (FMODEX)
|
|||||||
--build=${CMAKE_CURRENT_BINARY_DIR}
|
--build=${CMAKE_CURRENT_BINARY_DIR}
|
||||||
--dest=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}
|
--dest=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}
|
||||||
--touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/touched.bat
|
--touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/touched.bat
|
||||||
|
${MANIFEST_LIBRARIES}
|
||||||
DEPENDS ${VIEWER_BINARY_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
|
DEPENDS ${VIEWER_BINARY_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -208,14 +208,14 @@ class WindowsManifest(ViewerManifest):
|
|||||||
self.path("dbghelp.dll")
|
self.path("dbghelp.dll")
|
||||||
|
|
||||||
# For using FMOD for sound... DJS
|
# For using FMOD for sound... DJS
|
||||||
if self.prefix(src="../../libraries/i686-win32/lib/release", dst=""):
|
#~if self.prefix(src="../../libraries/i686-win32/lib/release", dst=""):
|
||||||
try:
|
#~try:
|
||||||
self.path("fmod.dll")
|
#~self.path("fmod.dll")
|
||||||
pass
|
#~pass
|
||||||
except:
|
#~except:
|
||||||
print "Skipping fmod.dll - not found"
|
#~print "Skipping fmod.dll - not found"
|
||||||
pass
|
#~ pass
|
||||||
self.end_prefix()
|
#~self.end_prefix()
|
||||||
|
|
||||||
# For textures
|
# For textures
|
||||||
#if self.prefix(src="../../libraries/i686-win32/lib/release", dst=""):
|
#if self.prefix(src="../../libraries/i686-win32/lib/release", dst=""):
|
||||||
@@ -320,6 +320,15 @@ class WindowsManifest(ViewerManifest):
|
|||||||
self.path("wrap_oal.dll")
|
self.path("wrap_oal.dll")
|
||||||
self.end_prefix()
|
self.end_prefix()
|
||||||
|
|
||||||
|
if self.args['extra_libraries'] != None:
|
||||||
|
print self.args['extra_libraries']
|
||||||
|
path_list = self.args['extra_libraries'].split('|')
|
||||||
|
for path in path_list:
|
||||||
|
path_pair = path.rsplit('/', 1)
|
||||||
|
if self.prefix(src=path_pair[0], dst=""):
|
||||||
|
self.path(path_pair[1])
|
||||||
|
self.end_prefix()
|
||||||
|
|
||||||
# pull in the crash logger and updater from other projects
|
# pull in the crash logger and updater from other projects
|
||||||
self.path(src='../win_crash_logger/%s/windows-crash-logger.exe' % self.args['configuration'], dst="win_crash_logger.exe")
|
self.path(src='../win_crash_logger/%s/windows-crash-logger.exe' % self.args['configuration'], dst="win_crash_logger.exe")
|
||||||
self.path(src='../win_updater/%s/windows-updater.exe' % self.args['configuration'], dst="updater.exe")
|
self.path(src='../win_updater/%s/windows-updater.exe' % self.args['configuration'], dst="updater.exe")
|
||||||
|
|||||||
Reference in New Issue
Block a user