aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/cmake')
-rw-r--r--linden/indra/cmake/CopyWinLibs.cmake52
1 files changed, 51 insertions, 1 deletions
diff --git a/linden/indra/cmake/CopyWinLibs.cmake b/linden/indra/cmake/CopyWinLibs.cmake
index 11f70b9..52f000f 100644
--- a/linden/indra/cmake/CopyWinLibs.cmake
+++ b/linden/indra/cmake/CopyWinLibs.cmake
@@ -190,6 +190,20 @@ if (MSVC80)
190 ${debug_msvc8_files} 190 ${debug_msvc8_files}
191 ) 191 )
192 set(all_targets ${all_targets} ${out_targets}) 192 set(all_targets ${all_targets} ${out_targets})
193
194 set(debug_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/Debug/${VIEWER_BINARY_NAME}.exe.config)
195 add_custom_command(
196 OUTPUT ${debug_appconfig_file}
197 COMMAND ${PYTHON_EXECUTABLE}
198 ARGS
199 ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py
200 ${CMAKE_CURRENT_BINARY_DIR}/Debug/Microsoft.VC80.DebugCRT.manifest
201 ${CMAKE_CURRENT_SOURCE_DIR}/SecondLifeDebug.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 )
206
193 endif (EXISTS ${debug_msvc8_redist_path}) 207 endif (EXISTS ${debug_msvc8_redist_path})
194 208
195 FIND_PATH(release_msvc8_redist_path msvcr80.dll 209 FIND_PATH(release_msvc8_redist_path msvcr80.dll
@@ -222,7 +236,43 @@ if (MSVC80)
222 ) 236 )
223 set(all_targets ${all_targets} ${out_targets}) 237 set(all_targets ${all_targets} ${out_targets})
224 238
239 set(release_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/Release/${VIEWER_BINARY_NAME}.exe.config)
240 add_custom_command(
241 OUTPUT ${release_appconfig_file}
242 COMMAND ${PYTHON_EXECUTABLE}
243 ARGS
244 ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py
245 ${CMAKE_CURRENT_BINARY_DIR}/Release/Microsoft.VC80.CRT.manifest
246 ${CMAKE_CURRENT_SOURCE_DIR}/SecondLife.exe.config
247 ${release_appconfig_file}
248 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Release/Microsoft.VC80.CRT.manifest
249 COMMENT "Creating release app config file"
250 )
251
252 set(relwithdebinfo_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/${VIEWER_BINARY_NAME}.exe.config)
253 add_custom_command(
254 OUTPUT ${relwithdebinfo_appconfig_file}
255 COMMAND ${PYTHON_EXECUTABLE}
256 ARGS
257 ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py
258 ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest
259 ${CMAKE_CURRENT_SOURCE_DIR}/SecondLife.exe.config
260 ${relwithdebinfo_appconfig_file}
261 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest
262 COMMENT "Creating relwithdebinfo app config file"
263 )
264
225 endif (EXISTS ${release_msvc8_redist_path}) 265 endif (EXISTS ${release_msvc8_redist_path})
226endif (MSVC80) 266endif (MSVC80)
227 267
228add_custom_target(copy_win_libs ALL DEPENDS ${all_targets}) 268add_custom_target(copy_win_libs ALL
269 DEPENDS
270 ${all_targets}
271 ${release_appconfig_file}
272 ${relwithdebinfo_appconfig_file}
273 ${debug_appconfig_file}
274 )
275
276if(EXISTS ${internal_llkdu_path})
277 add_dependencies(copy_win_libs llkdu)
278endif(EXISTS ${internal_llkdu_path})