aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/CopyWinLibs.cmake
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-09-07 16:01:42 -0700
committerArmin Weatherwax2010-09-23 15:38:27 +0200
commitfa2c390b870f5705941e36978b8a31dffb5d26db (patch)
tree2ab19d036772eca08a1d084821bfd2f82b39f3f6 /linden/indra/cmake/CopyWinLibs.cmake
parentFixed Windows compile error with WIND_BUFFER_SIZE_SEC (diff)
downloadmeta-impy-fa2c390b870f5705941e36978b8a31dffb5d26db.zip
meta-impy-fa2c390b870f5705941e36978b8a31dffb5d26db.tar.gz
meta-impy-fa2c390b870f5705941e36978b8a31dffb5d26db.tar.bz2
meta-impy-fa2c390b870f5705941e36978b8a31dffb5d26db.tar.xz
Fixed CopyWinLibs. Still a bunch of CMake errors and plugins don't load on Windows
Diffstat (limited to 'linden/indra/cmake/CopyWinLibs.cmake')
-rw-r--r--linden/indra/cmake/CopyWinLibs.cmake302
1 files changed, 173 insertions, 129 deletions
diff --git a/linden/indra/cmake/CopyWinLibs.cmake b/linden/indra/cmake/CopyWinLibs.cmake
index b544c15..72cef0c 100644
--- a/linden/indra/cmake/CopyWinLibs.cmake
+++ b/linden/indra/cmake/CopyWinLibs.cmake
@@ -6,6 +6,7 @@
6 6
7include(CMakeCopyIfDifferent) 7include(CMakeCopyIfDifferent)
8 8
9# Copying vivox's alut.dll breaks inworld audio, never use it
9set(vivox_src_dir "${CMAKE_SOURCE_DIR}/newview/vivox-runtime/i686-win32") 10set(vivox_src_dir "${CMAKE_SOURCE_DIR}/newview/vivox-runtime/i686-win32")
10set(vivox_files 11set(vivox_files
11 SLVoice.exe 12 SLVoice.exe
@@ -14,76 +15,20 @@ set(vivox_files
14 ortp.dll 15 ortp.dll
15 wrap_oal.dll 16 wrap_oal.dll
16 ) 17 )
18copy_if_different(
19 ${vivox_src_dir}
20 "${CMAKE_CURRENT_BINARY_DIR}/Debug"
21 out_targets
22 ${vivox_files}
23 )
24set(all_targets ${all_targets} ${out_targets})
17 25
18set(debug_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/debug") 26set(debug_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/debug")
19set(debug_files 27set(debug_files
20 alut.dll 28 alut.dll
21 freebl3.dll
22 js3250.dll
23 nspr4.dll
24 nss3.dll
25 nssckbi.dll
26 openal32.dll 29 openal32.dll
27 openjpegd.dll 30 openjpegd.dll
28 libhunspell.dll 31 libhunspell.dll
29 plc4.dll
30 plds4.dll
31 smime3.dll
32 softokn3.dll
33 ssl3.dll
34 xpcom.dll
35 xul.dll
36 windbgdlg.exe
37 iconv.dll
38 libxml2.dll
39 libcairo-2.dll
40 libfaad-2.dll
41 libgio-2.0-0.dll
42 libglib-2.0-0.dll
43 libgmodule-2.0-0.dll
44 libgobject-2.0-0.dll
45 libgthread-2.0-0.dll
46 charset.dll
47 intl.dll
48 libgcrypt-11.dll
49 libgnutls-26.dll
50 libgpg-error-0.dll
51 libgstapp.dll
52 libgstaudio.dll
53 libgstaudio-0.10.dll
54 libgstbase-0.10.dll
55 libgstcdda.dll
56 libgstcontroller-0.10.dll
57 libgstdataprotocol-0.10.dll
58 libgstdshow.dll
59 libgstfft.dll
60 libgstinterfaces.dll
61 libgstnet-0.10.dll
62 libgstnetbuffer.dll
63 libgstpbutils.dll
64 libgstreamer-0.10.dll
65 libgstriff.dll
66 libgstrtp.dll
67 libgstrtsp.dll
68 libgstsdp.dll
69 libgsttag.dll
70 libgstvideo.dll
71 libjpeg.dll
72 libmp3lame-0.dll
73 libneon-27.dll
74 libogg-0.dll
75 liboil-0.3-0.dll
76 libopenjpeg-2.dll
77 libpng12-0.dll
78 libschroedinger-1.0-0.dll
79 libspeex-1.dll
80 libtheora-0.dll
81 libvorbis-0.dll
82 libvorbisenc-2.dll
83 libxml2-2.dll
84 glew32.dll
85 xvidcore.dll
86 zlib1.dll
87 ) 32 )
88 33
89copy_if_different( 34copy_if_different(
@@ -94,82 +39,180 @@ copy_if_different(
94 ) 39 )
95set(all_targets ${all_targets} ${out_targets}) 40set(all_targets ${all_targets} ${out_targets})
96 41
42# Debug config runtime files required for the plugin test mule
43set(plugintest_debug_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/debug")
44set(plugintest_debug_files
45 libeay32.dll
46 libglib-2.0-0.dll
47 libgmodule-2.0-0.dll
48 libgobject-2.0-0.dll
49 libgthread-2.0-0.dll
50 qtcored4.dll
51 qtguid4.dll
52 qtnetworkd4.dll
53 qtopengld4.dll
54 qtwebkitd4.dll
55 ssleay32.dll
56 )
97copy_if_different( 57copy_if_different(
98 ${vivox_src_dir} 58 ${plugintest_debug_src_dir}
99 "${CMAKE_CURRENT_BINARY_DIR}/Debug" 59 "${CMAKE_CURRENT_BINARY_DIR}/../test_apps/llplugintest/Debug"
100 out_targets 60 out_targets
101 ${vivox_files} 61 ${plugintest_debug_files}
62 )
63set(all_targets ${all_targets} ${out_targets})
64
65# Debug config runtime files required for the plugin test mule (Qt image format plugins)
66set(plugintest_debug_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/debug/imageformats")
67set(plugintest_debug_files
68 qgifd4.dll
69 qicod4.dll
70 qjpegd4.dll
71 qmngd4.dll
72 qsvgd4.dll
73 qtiffd4.dll
74 )
75copy_if_different(
76 ${plugintest_debug_src_dir}
77 "${CMAKE_CURRENT_BINARY_DIR}/../test_apps/llplugintest/Debug/imageformats"
78 out_targets
79 ${plugintest_debug_files}
80 )
81set(all_targets ${all_targets} ${out_targets})
82
83copy_if_different(
84 ${plugintest_debug_src_dir}
85 "${CMAKE_CURRENT_BINARY_DIR}/llplugin/imageformats"
86 out_targets
87 ${plugintest_debug_files}
88 )
89set(all_targets ${all_targets} ${out_targets})
90
91# Release & ReleaseDebInfo config runtime files required for the plugin test mule
92set(plugintest_release_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release")
93set(plugintest_release_files
94 libeay32.dll
95 libglib-2.0-0.dll
96 libgmodule-2.0-0.dll
97 libgobject-2.0-0.dll
98 libgthread-2.0-0.dll
99 qtcore4.dll
100 qtgui4.dll
101 qtnetwork4.dll
102 qtopengl4.dll
103 qtwebkit4.dll
104 ssleay32.dll
105 )
106copy_if_different(
107 ${plugintest_release_src_dir}
108 "${CMAKE_CURRENT_BINARY_DIR}/../test_apps/llplugintest/Release"
109 out_targets
110 ${plugintest_release_files}
111 )
112set(all_targets ${all_targets} ${out_targets})
113
114copy_if_different(
115 ${plugintest_release_src_dir}
116 "${CMAKE_CURRENT_BINARY_DIR}/../test_apps/llplugintest/RelWithDebInfo"
117 out_targets
118 ${plugintest_release_files}
119 )
120set(all_targets ${all_targets} ${out_targets})
121
122# Release & ReleaseDebInfo config runtime files required for the plugin test mule (Qt image format plugins)
123set(plugintest_release_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release/imageformats")
124set(plugintest_release_files
125 qgif4.dll
126 qico4.dll
127 qjpeg4.dll
128 qmng4.dll
129 qsvg4.dll
130 qtiff4.dll
131 )
132copy_if_different(
133 ${plugintest_release_src_dir}
134 "${CMAKE_CURRENT_BINARY_DIR}/../test_apps/llplugintest/Release/imageformats"
135 out_targets
136 ${plugintest_release_files}
137 )
138set(all_targets ${all_targets} ${out_targets})
139
140copy_if_different(
141 ${plugintest_release_src_dir}
142 "${CMAKE_CURRENT_BINARY_DIR}/../test_apps/llplugintest/RelWithDebInfo/imageformats"
143 out_targets
144 ${plugintest_release_files}
145 )
146set(all_targets ${all_targets} ${out_targets})
147
148copy_if_different(
149 ${plugintest_release_src_dir}
150 "${CMAKE_CURRENT_BINARY_DIR}/Release/llplugin/imageformats"
151 out_targets
152 ${plugintest_release_files}
153 )
154set(all_targets ${all_targets} ${out_targets})
155
156copy_if_different(
157 ${plugintest_release_src_dir}
158 "${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/llplugin/imageformats"
159 out_targets
160 ${plugintest_release_files}
161 )
162set(all_targets ${all_targets} ${out_targets})
163
164# Debug config runtime files required for the plugins
165set(plugins_debug_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/debug")
166set(plugins_debug_files
167 libeay32.dll
168 qtcored4.dll
169 qtguid4.dll
170 qtnetworkd4.dll
171 qtopengld4.dll
172 qtwebkitd4.dll
173 ssleay32.dll
174 )
175copy_if_different(
176 ${plugins_debug_src_dir}
177 "${CMAKE_CURRENT_BINARY_DIR}/Debug/llplugin"
178 out_targets
179 ${plugins_debug_files}
180 )
181set(all_targets ${all_targets} ${out_targets})
182
183# Release & ReleaseDebInfo config runtime files required for the plugins
184set(plugins_release_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release")
185set(plugins_release_files
186 libeay32.dll
187 qtcore4.dll
188 qtgui4.dll
189 qtnetwork4.dll
190 qtopengl4.dll
191 qtwebkit4.dll
192 ssleay32.dll
193 )
194copy_if_different(
195 ${plugins_release_src_dir}
196 "${CMAKE_CURRENT_BINARY_DIR}/Release/llplugin"
197 out_targets
198 ${plugins_release_files}
199 )
200set(all_targets ${all_targets} ${out_targets})
201
202copy_if_different(
203 ${plugins_release_src_dir}
204 "${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/llplugin"
205 out_targets
206 ${plugins_release_files}
102 ) 207 )
103set(all_targets ${all_targets} ${out_targets}) 208set(all_targets ${all_targets} ${out_targets})
104 209
105set(release_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release") 210set(release_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release")
106set(release_files 211set(release_files
107 alut.dll 212 alut.dll
108 freebl3.dll
109 js3250.dll
110 nspr4.dll
111 nss3.dll
112 nssckbi.dll
113 openal32.dll 213 openal32.dll
114 openjpeg.dll 214 openjpeg.dll
115 libhunspell.dll 215 libhunspell.dll
116 plc4.dll
117 plds4.dll
118 smime3.dll
119 softokn3.dll
120 ssl3.dll
121 xpcom.dll
122 xul.dll
123 iconv.dll
124 libxml2.dll
125 libcairo-2.dll
126 libfaad-2.dll
127 libgio-2.0-0.dll
128 libglib-2.0-0.dll
129 libgmodule-2.0-0.dll
130 libgobject-2.0-0.dll
131 libgthread-2.0-0.dll
132 charset.dll
133 intl.dll
134 libgcrypt-11.dll
135 libgnutls-26.dll
136 libgpg-error-0.dll
137 libgstapp.dll
138 libgstaudio.dll
139 libgstaudio-0.10.dll
140 libgstbase-0.10.dll
141 libgstcdda.dll
142 libgstcontroller-0.10.dll
143 libgstdataprotocol-0.10.dll
144 libgstdshow.dll
145 libgstfft.dll
146 libgstinterfaces.dll
147 libgstnet-0.10.dll
148 libgstnetbuffer.dll
149 libgstpbutils.dll
150 libgstreamer-0.10.dll
151 libgstriff.dll
152 libgstrtp.dll
153 libgstrtsp.dll
154 libgstsdp.dll
155 libgsttag.dll
156 libgstvideo.dll
157 libjpeg.dll
158 libmp3lame-0.dll
159 libneon-27.dll
160 libogg-0.dll
161 liboil-0.3-0.dll
162 libopenjpeg-2.dll
163 libpng12-0.dll
164 libschroedinger-1.0-0.dll
165 libspeex-1.dll
166 libtheora-0.dll
167 libvorbis-0.dll
168 libvorbisenc-2.dll
169 libxml2-2.dll
170 glew32.dll
171 xvidcore.dll
172 zlib1.dll
173 ) 216 )
174 217
175copy_if_different( 218copy_if_different(
@@ -310,6 +353,7 @@ add_custom_target(copy_win_libs ALL
310 ${relwithdebinfo_appconfig_file} 353 ${relwithdebinfo_appconfig_file}
311 ${debug_appconfig_file} 354 ${debug_appconfig_file}
312 ) 355 )
356add_dependencies(copy_win_libs prepare)
313 357
314if(EXISTS ${internal_llkdu_path}) 358if(EXISTS ${internal_llkdu_path})
315 add_dependencies(copy_win_libs llkdu) 359 add_dependencies(copy_win_libs llkdu)