aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/CopyWinLibs.cmake
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-07-13 19:22:52 -0700
committerMcCabe Maxsted2011-09-08 16:33:50 -0700
commitdffdf95bbfa5b071063a43281a330e741cf60e8c (patch)
treeb173172c0b9844aac9cb63f2804e1f1729bc86f5 /linden/indra/cmake/CopyWinLibs.cmake
parentAdded basic copying of symbol files when the windows package project is run. ... (diff)
downloadmeta-impy-dffdf95bbfa5b071063a43281a330e741cf60e8c.zip
meta-impy-dffdf95bbfa5b071063a43281a330e741cf60e8c.tar.gz
meta-impy-dffdf95bbfa5b071063a43281a330e741cf60e8c.tar.bz2
meta-impy-dffdf95bbfa5b071063a43281a330e741cf60e8c.tar.xz
Ported SSE2 build target from Singularity, patch by Shyotl. Note that the package project still currently only supports 'Release'
Diffstat (limited to '')
-rw-r--r--linden/indra/cmake/CopyWinLibs.cmake94
1 files changed, 76 insertions, 18 deletions
diff --git a/linden/indra/cmake/CopyWinLibs.cmake b/linden/indra/cmake/CopyWinLibs.cmake
index 78c7c96..e03f542 100644
--- a/linden/indra/cmake/CopyWinLibs.cmake
+++ b/linden/indra/cmake/CopyWinLibs.cmake
@@ -177,6 +177,15 @@ copy_if_different(
177 ) 177 )
178set(all_targets ${all_targets} ${out_targets}) 178set(all_targets ${all_targets} ${out_targets})
179 179
180
181 copy_if_different(
182 ${plugintest_release_src_dir}
183 "${CMAKE_CURRENT_BINARY_DIR}/../test_apps/llplugintest/ReleaseSSE2"
184 out_targets
185 ${plugintest_release_files}
186 )
187set(all_targets ${all_targets} ${out_targets})
188
180# Release & ReleaseDebInfo config runtime files required for the plugin test mule (Qt image format plugins) 189# Release & ReleaseDebInfo config runtime files required for the plugin test mule (Qt image format plugins)
181set(plugintest_release_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release/imageformats") 190set(plugintest_release_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release/imageformats")
182set(plugintest_release_files 191set(plugintest_release_files
@@ -205,6 +214,14 @@ set(all_targets ${all_targets} ${out_targets})
205 214
206copy_if_different( 215copy_if_different(
207 ${plugintest_release_src_dir} 216 ${plugintest_release_src_dir}
217 "${CMAKE_CURRENT_BINARY_DIR}/../test_apps/llplugintest/ReleaseSSE2/imageformats"
218 out_targets
219 ${plugintest_release_files}
220 )
221set(all_targets ${all_targets} ${out_targets})
222
223copy_if_different(
224 ${plugintest_release_src_dir}
208 "${CMAKE_CURRENT_BINARY_DIR}/Release/llplugin/imageformats" 225 "${CMAKE_CURRENT_BINARY_DIR}/Release/llplugin/imageformats"
209 out_targets 226 out_targets
210 ${plugintest_release_files} 227 ${plugintest_release_files}
@@ -219,6 +236,14 @@ copy_if_different(
219 ) 236 )
220set(all_targets ${all_targets} ${out_targets}) 237set(all_targets ${all_targets} ${out_targets})
221 238
239copy_if_different(
240 ${plugintest_release_src_dir}
241 "${CMAKE_CURRENT_BINARY_DIR}/ReleaseSSE2/llplugin/imageformats"
242 out_targets
243 ${plugintest_release_files}
244 )
245set(all_targets ${all_targets} ${out_targets})
246
222# Debug config runtime files required for the plugins 247# Debug config runtime files required for the plugins
223set(plugins_debug_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/debug") 248set(plugins_debug_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/debug")
224set(plugins_debug_files 249set(plugins_debug_files
@@ -267,6 +292,14 @@ copy_if_different(
267 ) 292 )
268set(all_targets ${all_targets} ${out_targets}) 293set(all_targets ${all_targets} ${out_targets})
269 294
295copy_if_different(
296 ${plugins_release_src_dir}
297 "${CMAKE_CURRENT_BINARY_DIR}/ReleaseSSE2/llplugin"
298 out_targets
299 ${plugins_release_files}
300 )
301set(all_targets ${all_targets} ${out_targets})
302
270set(release_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release") 303set(release_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release")
271set(release_files 304set(release_files
272 alut.dll 305 alut.dll
@@ -364,14 +397,15 @@ copy_if_different(
364set(all_targets ${all_targets} ${out_targets}) 397set(all_targets ${all_targets} ${out_targets})
365 398
366copy_if_different( 399copy_if_different(
367 ${vivox_src_dir} 400 ${release_src_dir}
368 "${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo" 401 "${CMAKE_CURRENT_BINARY_DIR}/ReleaseSSE2"
369 out_targets 402 out_targets
370 ${vivox_files} 403 ${release_files}
371 ) 404 )
372set(all_targets ${all_targets} ${out_targets}) 405set(all_targets ${all_targets} ${out_targets})
373 406
374 407
408
375# Copy MS C runtime dlls, required for packaging. 409# Copy MS C runtime dlls, required for packaging.
376# We always need the VS 2005 redist. 410# We always need the VS 2005 redist.
377# *TODO - Adapt this to support VC9 411# *TODO - Adapt this to support VC9
@@ -442,6 +476,14 @@ if(EXISTS ${release_msvc8_redist_path})
442 ) 476 )
443 set(all_targets ${all_targets} ${out_targets}) 477 set(all_targets ${all_targets} ${out_targets})
444 478
479 copy_if_different(
480 ${release_msvc8_redist_path}
481 "${CMAKE_CURRENT_BINARY_DIR}/ReleaseSSE2"
482 out_targets
483 ${release_msvc8_files}
484 )
485 set(all_targets ${all_targets} ${out_targets})
486
445 set(release_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/Release/${VIEWER_BINARY_NAME}.exe.config) 487 set(release_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/Release/${VIEWER_BINARY_NAME}.exe.config)
446 add_custom_command( 488 add_custom_command(
447 OUTPUT ${release_appconfig_file} 489 OUTPUT ${release_appconfig_file}
@@ -455,25 +497,41 @@ if(EXISTS ${release_msvc8_redist_path})
455 COMMENT "Creating release app config file" 497 COMMENT "Creating release app config file"
456 ) 498 )
457 499
458 set(relwithdebinfo_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/${VIEWER_BINARY_NAME}.exe.config) 500
459 add_custom_command( 501 set(releasesse2_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/ReleaseSSE2/${VIEWER_BINARY_NAME}.exe.config)
460 OUTPUT ${relwithdebinfo_appconfig_file} 502 add_custom_command(
461 COMMAND ${PYTHON_EXECUTABLE} 503 OUTPUT ${releasesse2_appconfig_file}
462 ARGS 504 COMMAND ${PYTHON_EXECUTABLE}
463 ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py 505 ARGS
464 ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest 506 ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py
465 ${CMAKE_CURRENT_SOURCE_DIR}/Imprudence.exe.config 507 ${CMAKE_CURRENT_BINARY_DIR}/ReleaseSSE2/Microsoft.VC80.CRT.manifest
466 ${relwithdebinfo_appconfig_file} 508 ${CMAKE_CURRENT_SOURCE_DIR}/Imprudence.exe.config
467 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest 509 ${releasesse2_appconfig_file}
468 COMMENT "Creating relwithdebinfo app config file" 510 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ReleaseSSE2/Microsoft.VC80.CRT.manifest
469 ) 511 COMMENT "Creating release (SSE2 optimized) app config file"
470 512 )
471endif (EXISTS ${release_msvc8_redist_path}) 513
514 set(relwithdebinfo_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/${VIEWER_BINARY_NAME}.exe.config)
515 add_custom_command(
516 OUTPUT ${relwithdebinfo_appconfig_file}
517 COMMAND ${PYTHON_EXECUTABLE}
518 ARGS
519 ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py
520 ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest
521 ${CMAKE_CURRENT_SOURCE_DIR}/Imprudence.exe.config
522 ${relwithdebinfo_appconfig_file}
523 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest
524 COMMENT "Creating relwithdebinfo app config file"
525 )
526
527 endif (EXISTS ${release_msvc8_redist_path})
528endif (MSVC80)
472 529
473add_custom_target(copy_win_libs ALL 530add_custom_target(copy_win_libs ALL
474 DEPENDS 531 DEPENDS
475 ${all_targets} 532 ${all_targets}
476 ${release_appconfig_file} 533 ${release_appconfig_file}
534 ${releasesse2_appconfig_file}
477 ${relwithdebinfo_appconfig_file} 535 ${relwithdebinfo_appconfig_file}
478 ${debug_appconfig_file} 536 ${debug_appconfig_file}
479 ) 537 )