diff options
author | Jacek Antonelli | 2008-12-01 17:39:58 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-01 17:40:06 -0600 |
commit | 7abecb48babe6a6f09bf6692ba55076546cfced9 (patch) | |
tree | 8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/cmake/CopyWinLibs.cmake | |
parent | Second Life viewer sources 1.21.6 (diff) | |
download | meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.zip meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.gz meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.bz2 meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.xz |
Second Life viewer sources 1.22.0-RC
Diffstat (limited to 'linden/indra/cmake/CopyWinLibs.cmake')
-rw-r--r-- | linden/indra/cmake/CopyWinLibs.cmake | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/linden/indra/cmake/CopyWinLibs.cmake b/linden/indra/cmake/CopyWinLibs.cmake index 345761a..b74ce4f 100644 --- a/linden/indra/cmake/CopyWinLibs.cmake +++ b/linden/indra/cmake/CopyWinLibs.cmake | |||
@@ -148,6 +148,61 @@ else(EXISTS ${internal_llkdu_path}) | |||
148 | 148 | ||
149 | endif (EXISTS ${internal_llkdu_path}) | 149 | endif (EXISTS ${internal_llkdu_path}) |
150 | 150 | ||
151 | # Copy MS C runtime dlls, required for packaging. | ||
152 | # *TODO - Adapt this to support VC9 | ||
153 | if (MSVC80) | ||
154 | FIND_PATH(debug_msvc8_redist_path msvcr80d.dll | ||
155 | PATHS | ||
156 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup\\VC;ProductDir]/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT | ||
157 | ) | ||
158 | |||
159 | if(EXISTS ${debug_msvc8_redist_path}) | ||
160 | set(debug_msvc8_files | ||
161 | msvcr80d.dll | ||
162 | msvcp80d.dll | ||
163 | Microsoft.VC80.DebugCRT.manifest | ||
164 | ) | ||
165 | |||
166 | copy_if_different( | ||
167 | ${debug_msvc8_redist_path} | ||
168 | "${CMAKE_CURRENT_BINARY_DIR}/Debug" | ||
169 | out_targets | ||
170 | ${debug_msvc8_files} | ||
171 | ) | ||
172 | set(all_targets ${all_targets} ${out_targets}) | ||
173 | endif (EXISTS ${debug_msvc8_redist_path}) | ||
174 | |||
175 | FIND_PATH(release_msvc8_redist_path msvcr80.dll | ||
176 | PATHS | ||
177 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup\\VC;ProductDir]/redist/x86/Microsoft.VC80.CRT | ||
178 | ) | ||
179 | |||
180 | if(EXISTS ${release_msvc8_redist_path}) | ||
181 | set(release_msvc8_files | ||
182 | msvcr80.dll | ||
183 | msvcp80.dll | ||
184 | Microsoft.VC80.CRT.manifest | ||
185 | ) | ||
186 | |||
187 | copy_if_different( | ||
188 | ${release_msvc8_redist_path} | ||
189 | "${CMAKE_CURRENT_BINARY_DIR}/Release" | ||
190 | out_targets | ||
191 | ${release_msvc8_files} | ||
192 | ) | ||
193 | set(all_targets ${all_targets} ${out_targets}) | ||
194 | |||
195 | copy_if_different( | ||
196 | ${release_msvc8_redist_path} | ||
197 | "${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo" | ||
198 | out_targets | ||
199 | ${release_msvc8_files} | ||
200 | ) | ||
201 | set(all_targets ${all_targets} ${out_targets}) | ||
202 | |||
203 | endif (EXISTS ${release_msvc8_redist_path}) | ||
204 | endif (MSVC80) | ||
205 | |||
151 | add_custom_target(copy_win_libs ALL DEPENDS ${all_targets}) | 206 | add_custom_target(copy_win_libs ALL DEPENDS ${all_targets}) |
152 | 207 | ||
153 | if(EXISTS ${internal_llkdu_path}) | 208 | if(EXISTS ${internal_llkdu_path}) |