diff options
Diffstat (limited to 'linden/indra/cmake')
-rw-r--r-- | linden/indra/cmake/CopyWinLibs.cmake | 171 | ||||
-rw-r--r-- | linden/indra/cmake/OPENAL.cmake | 13 | ||||
-rw-r--r-- | linden/indra/cmake/ViewerMiscLibs.cmake | 4 |
3 files changed, 97 insertions, 91 deletions
diff --git a/linden/indra/cmake/CopyWinLibs.cmake b/linden/indra/cmake/CopyWinLibs.cmake index add94dd..8767980 100644 --- a/linden/indra/cmake/CopyWinLibs.cmake +++ b/linden/indra/cmake/CopyWinLibs.cmake | |||
@@ -62,6 +62,7 @@ set(debug_files | |||
62 | libogg-0.dll | 62 | libogg-0.dll |
63 | liboil-0.3-0.dll | 63 | liboil-0.3-0.dll |
64 | libopenjpeg-2.dll | 64 | libopenjpeg-2.dll |
65 | libpng12-0.dll | ||
65 | libschroedinger-1.0-0.dll | 66 | libschroedinger-1.0-0.dll |
66 | libspeex-1.dll | 67 | libspeex-1.dll |
67 | libtheora-0.dll | 68 | libtheora-0.dll |
@@ -136,6 +137,7 @@ set(release_files | |||
136 | libogg-0.dll | 137 | libogg-0.dll |
137 | liboil-0.3-0.dll | 138 | liboil-0.3-0.dll |
138 | libopenjpeg-2.dll | 139 | libopenjpeg-2.dll |
140 | libpng12-0.dll | ||
139 | libschroedinger-1.0-0.dll | 141 | libschroedinger-1.0-0.dll |
140 | libspeex-1.dll | 142 | libspeex-1.dll |
141 | libtheora-0.dll | 143 | libtheora-0.dll |
@@ -165,103 +167,102 @@ set(all_targets ${all_targets} ${out_targets}) | |||
165 | 167 | ||
166 | 168 | ||
167 | # Copy MS C runtime dlls, required for packaging. | 169 | # Copy MS C runtime dlls, required for packaging. |
170 | # We always need the VS 2005 redist. | ||
168 | # *TODO - Adapt this to support VC9 | 171 | # *TODO - Adapt this to support VC9 |
169 | if (MSVC80) | 172 | FIND_PATH(debug_msvc8_redist_path msvcr80d.dll |
170 | FIND_PATH(debug_msvc8_redist_path msvcr80d.dll | 173 | PATHS |
171 | PATHS | 174 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup\\VC;ProductDir]/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT |
172 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup\\VC;ProductDir]/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT | 175 | NO_DEFAULT_PATH |
173 | NO_DEFAULT_PATH | 176 | NO_DEFAULT_PATH |
174 | NO_DEFAULT_PATH | 177 | ) |
178 | |||
179 | if(EXISTS ${debug_msvc8_redist_path}) | ||
180 | set(debug_msvc8_files | ||
181 | msvcr80d.dll | ||
182 | msvcp80d.dll | ||
183 | Microsoft.VC80.DebugCRT.manifest | ||
175 | ) | 184 | ) |
176 | 185 | ||
177 | if(EXISTS ${debug_msvc8_redist_path}) | 186 | copy_if_different( |
178 | set(debug_msvc8_files | 187 | ${debug_msvc8_redist_path} |
179 | msvcr80d.dll | 188 | "${CMAKE_CURRENT_BINARY_DIR}/Debug" |
180 | msvcp80d.dll | 189 | out_targets |
181 | Microsoft.VC80.DebugCRT.manifest | 190 | ${debug_msvc8_files} |
182 | ) | 191 | ) |
192 | set(all_targets ${all_targets} ${out_targets}) | ||
183 | 193 | ||
184 | copy_if_different( | 194 | set(debug_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/Debug/${VIEWER_BINARY_NAME}.exe.config) |
185 | ${debug_msvc8_redist_path} | 195 | add_custom_command( |
186 | "${CMAKE_CURRENT_BINARY_DIR}/Debug" | 196 | OUTPUT ${debug_appconfig_file} |
187 | out_targets | 197 | COMMAND ${PYTHON_EXECUTABLE} |
188 | ${debug_msvc8_files} | 198 | ARGS |
189 | ) | 199 | ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py |
190 | set(all_targets ${all_targets} ${out_targets}) | 200 | ${CMAKE_CURRENT_BINARY_DIR}/Debug/Microsoft.VC80.DebugCRT.manifest |
201 | ${CMAKE_CURRENT_SOURCE_DIR}/ImprudenceDebug.exe.config | ||
202 | ${debug_appconfig_file} | ||
203 | DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Debug/Microsoft.VC80.DebugCRT.manifest | ||
204 | COMMENT "Creating debug app config file" | ||
205 | ) | ||
191 | 206 | ||
192 | set(debug_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/Debug/${VIEWER_BINARY_NAME}.exe.config) | 207 | endif (EXISTS ${debug_msvc8_redist_path}) |
193 | add_custom_command( | ||
194 | OUTPUT ${debug_appconfig_file} | ||
195 | COMMAND ${PYTHON_EXECUTABLE} | ||
196 | ARGS | ||
197 | ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py | ||
198 | ${CMAKE_CURRENT_BINARY_DIR}/Debug/Microsoft.VC80.DebugCRT.manifest | ||
199 | ${CMAKE_CURRENT_SOURCE_DIR}/ImprudenceDebug.exe.config | ||
200 | ${debug_appconfig_file} | ||
201 | DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Debug/Microsoft.VC80.DebugCRT.manifest | ||
202 | COMMENT "Creating debug app config file" | ||
203 | ) | ||
204 | 208 | ||
205 | endif (EXISTS ${debug_msvc8_redist_path}) | 209 | FIND_PATH(release_msvc8_redist_path msvcr80.dll |
210 | PATHS | ||
211 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup\\VC;ProductDir]/redist/x86/Microsoft.VC80.CRT | ||
212 | NO_DEFAULT_PATH | ||
213 | NO_DEFAULT_PATH | ||
214 | ) | ||
206 | 215 | ||
207 | FIND_PATH(release_msvc8_redist_path msvcr80.dll | 216 | if(EXISTS ${release_msvc8_redist_path}) |
208 | PATHS | 217 | set(release_msvc8_files |
209 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup\\VC;ProductDir]/redist/x86/Microsoft.VC80.CRT | 218 | msvcr80.dll |
210 | NO_DEFAULT_PATH | 219 | msvcp80.dll |
211 | NO_DEFAULT_PATH | 220 | Microsoft.VC80.CRT.manifest |
212 | ) | 221 | ) |
213 | 222 | ||
214 | if(EXISTS ${release_msvc8_redist_path}) | 223 | copy_if_different( |
215 | set(release_msvc8_files | 224 | ${release_msvc8_redist_path} |
216 | msvcr80.dll | 225 | "${CMAKE_CURRENT_BINARY_DIR}/Release" |
217 | msvcp80.dll | 226 | out_targets |
218 | Microsoft.VC80.CRT.manifest | 227 | ${release_msvc8_files} |
219 | ) | 228 | ) |
220 | 229 | set(all_targets ${all_targets} ${out_targets}) | |
221 | copy_if_different( | ||
222 | ${release_msvc8_redist_path} | ||
223 | "${CMAKE_CURRENT_BINARY_DIR}/Release" | ||
224 | out_targets | ||
225 | ${release_msvc8_files} | ||
226 | ) | ||
227 | set(all_targets ${all_targets} ${out_targets}) | ||
228 | 230 | ||
229 | copy_if_different( | 231 | copy_if_different( |
230 | ${release_msvc8_redist_path} | 232 | ${release_msvc8_redist_path} |
231 | "${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo" | 233 | "${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo" |
232 | out_targets | 234 | out_targets |
233 | ${release_msvc8_files} | 235 | ${release_msvc8_files} |
234 | ) | 236 | ) |
235 | set(all_targets ${all_targets} ${out_targets}) | 237 | set(all_targets ${all_targets} ${out_targets}) |
236 | 238 | ||
237 | set(release_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/Release/${VIEWER_BINARY_NAME}.exe.config) | 239 | set(release_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/Release/${VIEWER_BINARY_NAME}.exe.config) |
238 | add_custom_command( | 240 | add_custom_command( |
239 | OUTPUT ${release_appconfig_file} | 241 | OUTPUT ${release_appconfig_file} |
240 | COMMAND ${PYTHON_EXECUTABLE} | 242 | COMMAND ${PYTHON_EXECUTABLE} |
241 | ARGS | 243 | ARGS |
242 | ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py | 244 | ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py |
243 | ${CMAKE_CURRENT_BINARY_DIR}/Release/Microsoft.VC80.CRT.manifest | 245 | ${CMAKE_CURRENT_BINARY_DIR}/Release/Microsoft.VC80.CRT.manifest |
244 | ${CMAKE_CURRENT_SOURCE_DIR}/Imprudence.exe.config | 246 | ${CMAKE_CURRENT_SOURCE_DIR}/Imprudence.exe.config |
245 | ${release_appconfig_file} | 247 | ${release_appconfig_file} |
246 | DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Release/Microsoft.VC80.CRT.manifest | 248 | DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Release/Microsoft.VC80.CRT.manifest |
247 | COMMENT "Creating release app config file" | 249 | COMMENT "Creating release app config file" |
248 | ) | 250 | ) |
249 | 251 | ||
250 | set(relwithdebinfo_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/${VIEWER_BINARY_NAME}.exe.config) | 252 | set(relwithdebinfo_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/${VIEWER_BINARY_NAME}.exe.config) |
251 | add_custom_command( | 253 | add_custom_command( |
252 | OUTPUT ${relwithdebinfo_appconfig_file} | 254 | OUTPUT ${relwithdebinfo_appconfig_file} |
253 | COMMAND ${PYTHON_EXECUTABLE} | 255 | COMMAND ${PYTHON_EXECUTABLE} |
254 | ARGS | 256 | ARGS |
255 | ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py | 257 | ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py |
256 | ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest | 258 | ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest |
257 | ${CMAKE_CURRENT_SOURCE_DIR}/Imprudence.exe.config | 259 | ${CMAKE_CURRENT_SOURCE_DIR}/Imprudence.exe.config |
258 | ${relwithdebinfo_appconfig_file} | 260 | ${relwithdebinfo_appconfig_file} |
259 | DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest | 261 | DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest |
260 | COMMENT "Creating relwithdebinfo app config file" | 262 | COMMENT "Creating relwithdebinfo app config file" |
261 | ) | 263 | ) |
262 | 264 | ||
263 | endif (EXISTS ${release_msvc8_redist_path}) | 265 | endif (EXISTS ${release_msvc8_redist_path}) |
264 | endif (MSVC80) | ||
265 | 266 | ||
266 | add_custom_target(copy_win_libs ALL | 267 | add_custom_target(copy_win_libs ALL |
267 | DEPENDS | 268 | DEPENDS |
diff --git a/linden/indra/cmake/OPENAL.cmake b/linden/indra/cmake/OPENAL.cmake index 71cbd67..60abef3 100644 --- a/linden/indra/cmake/OPENAL.cmake +++ b/linden/indra/cmake/OPENAL.cmake | |||
@@ -14,10 +14,11 @@ if (OPENAL) | |||
14 | use_prebuilt_binary(openal) | 14 | use_prebuilt_binary(openal) |
15 | 15 | ||
16 | if (WINDOWS) | 16 | if (WINDOWS) |
17 | find_library(OPENAL_LIB | 17 | set(OPENAL_LIB |
18 | NAMES openal32 | 18 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/openal32.lib |
19 | PATHS ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release | 19 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/openal32.lib |
20 | ) | 20 | ) |
21 | |||
21 | elseif (DARWIN) | 22 | elseif (DARWIN) |
22 | # Look for for system's OpenAL.framework | 23 | # Look for for system's OpenAL.framework |
23 | find_library(OPENAL_LIB | 24 | find_library(OPENAL_LIB |
@@ -59,9 +60,9 @@ if (OPENAL) | |||
59 | # ALUT_LIB | 60 | # ALUT_LIB |
60 | 61 | ||
61 | if (WINDOWS) | 62 | if (WINDOWS) |
62 | find_library(ALUT_LIB | 63 | set(ALUT_LIB |
63 | NAMES alut freealut | 64 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/alut.lib |
64 | PATHS ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release | 65 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/alut.lib |
65 | ) | 66 | ) |
66 | elseif (DARWIN) | 67 | elseif (DARWIN) |
67 | find_library( ALUT_LIB | 68 | find_library( ALUT_LIB |
diff --git a/linden/indra/cmake/ViewerMiscLibs.cmake b/linden/indra/cmake/ViewerMiscLibs.cmake index 2a8abda..7bd306b 100644 --- a/linden/indra/cmake/ViewerMiscLibs.cmake +++ b/linden/indra/cmake/ViewerMiscLibs.cmake | |||
@@ -7,3 +7,7 @@ if (NOT STANDALONE) | |||
7 | use_prebuilt_binary(fontconfig) | 7 | use_prebuilt_binary(fontconfig) |
8 | endif(NOT STANDALONE) | 8 | endif(NOT STANDALONE) |
9 | 9 | ||
10 | if (WINDOWS) | ||
11 | use_prebuilt_binary(dbghelp) | ||
12 | endif (WINDOWS) | ||
13 | |||