aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/cmake/CopyWinLibs.cmake48
1 files changed, 47 insertions, 1 deletions
diff --git a/linden/indra/cmake/CopyWinLibs.cmake b/linden/indra/cmake/CopyWinLibs.cmake
index b1291df..6612528 100644
--- a/linden/indra/cmake/CopyWinLibs.cmake
+++ b/linden/indra/cmake/CopyWinLibs.cmake
@@ -169,6 +169,20 @@ if (MSVC80)
169 ${debug_msvc8_files} 169 ${debug_msvc8_files}
170 ) 170 )
171 set(all_targets ${all_targets} ${out_targets}) 171 set(all_targets ${all_targets} ${out_targets})
172
173 set(debug_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/Debug/${VIEWER_BINARY_NAME}.exe.config)
174 add_custom_command(
175 OUTPUT ${debug_appconfig_file}
176 COMMAND ${PYTHON_EXECUTABLE}
177 ARGS
178 ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py
179 ${CMAKE_CURRENT_BINARY_DIR}/Debug/Microsoft.VC80.DebugCRT.manifest
180 ${CMAKE_CURRENT_SOURCE_DIR}/SecondLifeDebug.exe.config
181 ${debug_appconfig_file}
182 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Debug/Microsoft.VC80.DebugCRT.manifest
183 COMMENT "Creating debug app config file"
184 )
185
172 endif (EXISTS ${debug_msvc8_redist_path}) 186 endif (EXISTS ${debug_msvc8_redist_path})
173 187
174 FIND_PATH(release_msvc8_redist_path msvcr80.dll 188 FIND_PATH(release_msvc8_redist_path msvcr80.dll
@@ -201,10 +215,42 @@ if (MSVC80)
201 ) 215 )
202 set(all_targets ${all_targets} ${out_targets}) 216 set(all_targets ${all_targets} ${out_targets})
203 217
218 set(release_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/Release/${VIEWER_BINARY_NAME}.exe.config)
219 add_custom_command(
220 OUTPUT ${release_appconfig_file}
221 COMMAND ${PYTHON_EXECUTABLE}
222 ARGS
223 ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py
224 ${CMAKE_CURRENT_BINARY_DIR}/Release/Microsoft.VC80.CRT.manifest
225 ${CMAKE_CURRENT_SOURCE_DIR}/SecondLife.exe.config
226 ${release_appconfig_file}
227 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Release/Microsoft.VC80.CRT.manifest
228 COMMENT "Creating release app config file"
229 )
230
231 set(relwithdebinfo_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/${VIEWER_BINARY_NAME}.exe.config)
232 add_custom_command(
233 OUTPUT ${relwithdebinfo_appconfig_file}
234 COMMAND ${PYTHON_EXECUTABLE}
235 ARGS
236 ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py
237 ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest
238 ${CMAKE_CURRENT_SOURCE_DIR}/SecondLife.exe.config
239 ${relwithdebinfo_appconfig_file}
240 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest
241 COMMENT "Creating relwithdebinfo app config file"
242 )
243
204 endif (EXISTS ${release_msvc8_redist_path}) 244 endif (EXISTS ${release_msvc8_redist_path})
205endif (MSVC80) 245endif (MSVC80)
206 246
207add_custom_target(copy_win_libs ALL DEPENDS ${all_targets}) 247add_custom_target(copy_win_libs ALL
248 DEPENDS
249 ${all_targets}
250 ${release_appconfig_file}
251 ${relwithdebinfo_appconfig_file}
252 ${debug_appconfig_file}
253 )
208 254
209if(EXISTS ${internal_llkdu_path}) 255if(EXISTS ${internal_llkdu_path})
210 add_dependencies(copy_win_libs llkdu) 256 add_dependencies(copy_win_libs llkdu)