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 | |
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')
28 files changed, 167 insertions, 190 deletions
diff --git a/linden/indra/cmake/00-Common.cmake b/linden/indra/cmake/00-Common.cmake index 240853a..bf2d2c3 100644 --- a/linden/indra/cmake/00-Common.cmake +++ b/linden/indra/cmake/00-Common.cmake | |||
@@ -49,6 +49,10 @@ if (WINDOWS) | |||
49 | ) | 49 | ) |
50 | 50 | ||
51 | if(MSVC80 OR MSVC90) | 51 | if(MSVC80 OR MSVC90) |
52 | set(CMAKE_CXX_FLAGS_RELEASE | ||
53 | "${CMAKE_CXX_FLAGS_RELEASE} -D_SECURE_STL=0 -D_HAS_ITERATOR_DEBUGGING=0" | ||
54 | CACHE STRING "C++ compiler release options" FORCE) | ||
55 | |||
52 | add_definitions( | 56 | add_definitions( |
53 | /Zc:wchar_t- | 57 | /Zc:wchar_t- |
54 | ) | 58 | ) |
@@ -165,6 +169,10 @@ if (DARWIN) | |||
165 | set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_CXX_LINK_FLAGS}") | 169 | set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_CXX_LINK_FLAGS}") |
166 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mlong-branch") | 170 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mlong-branch") |
167 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mlong-branch") | 171 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mlong-branch") |
172 | # NOTE: it's critical that the optimization flag is put in front. | ||
173 | # NOTE: it's critical to have both CXX_FLAGS and C_FLAGS covered. | ||
174 | set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O0 ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}") | ||
175 | set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O0 ${CMAKE_C_FLAGS_RELWITHDEBINFO}") | ||
168 | endif (DARWIN) | 176 | endif (DARWIN) |
169 | 177 | ||
170 | 178 | ||
diff --git a/linden/indra/cmake/APR.cmake b/linden/indra/cmake/APR.cmake index 2a96d70..523d8ee 100644 --- a/linden/indra/cmake/APR.cmake +++ b/linden/indra/cmake/APR.cmake | |||
@@ -15,23 +15,17 @@ if (STANDALONE) | |||
15 | else (STANDALONE) | 15 | else (STANDALONE) |
16 | use_prebuilt_binary(apr_suite) | 16 | use_prebuilt_binary(apr_suite) |
17 | if (WINDOWS) | 17 | if (WINDOWS) |
18 | set(WINLIBS_PREBUILT_DEBUG_DIR | ||
19 | ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/debug | ||
20 | ) | ||
21 | set(WINLIBS_PREBUILT_RELEASE_DIR | ||
22 | ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release | ||
23 | ) | ||
24 | set(APR_LIBRARIES | 18 | set(APR_LIBRARIES |
25 | debug ${WINLIBS_PREBUILT_DEBUG_DIR}/apr-1.lib | 19 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/apr-1.lib |
26 | optimized ${WINLIBS_PREBUILT_RELEASE_DIR}/apr-1.lib | 20 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/apr-1.lib |
27 | ) | 21 | ) |
28 | set(APRUTIL_LIBRARIES | 22 | set(APRUTIL_LIBRARIES |
29 | debug ${WINLIBS_PREBUILT_DEBUG_DIR}/aprutil-1.lib | 23 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/aprutil-1.lib |
30 | optimized ${WINLIBS_PREBUILT_RELEASE_DIR}/aprutil-1.lib | 24 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/aprutil-1.lib |
31 | ) | 25 | ) |
32 | set(APRICONV_LIBRARIES | 26 | set(APRICONV_LIBRARIES |
33 | debug ${WINLIBS_PREBUILT_DEBUG_DIR}/apriconv-1.lib | 27 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/apriconv-1.lib |
34 | optimized ${WINLIBS_PREBUILT_RELEASE_DIR}/apriconv-1.lib | 28 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/apriconv-1.lib |
35 | ) | 29 | ) |
36 | elseif (DARWIN) | 30 | elseif (DARWIN) |
37 | set(APR_LIBRARIES | 31 | set(APR_LIBRARIES |
@@ -42,10 +36,11 @@ else (STANDALONE) | |||
42 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/libaprutil-1.a | 36 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/libaprutil-1.a |
43 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libaprutil-1.a | 37 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libaprutil-1.a |
44 | ) | 38 | ) |
45 | set(APRICONV_LIBRARIES apriconv-1) | 39 | set(APRICONV_LIBRARIES iconv) |
46 | else (WINDOWS) | 40 | else (WINDOWS) |
47 | set(APR_LIBRARIES apr-1) | 41 | set(APR_LIBRARIES apr-1) |
48 | set(APRUTIL_LIBRARIES aprutil-1) | 42 | set(APRUTIL_LIBRARIES aprutil-1) |
43 | set(APRICONV_LIBRARIES iconv) | ||
49 | endif (WINDOWS) | 44 | endif (WINDOWS) |
50 | set(APR_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/apr-1) | 45 | set(APR_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/apr-1) |
51 | 46 | ||
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}) |
diff --git a/linden/indra/cmake/DBusGlib.cmake b/linden/indra/cmake/DBusGlib.cmake new file mode 100644 index 0000000..cfc4ccd --- /dev/null +++ b/linden/indra/cmake/DBusGlib.cmake | |||
@@ -0,0 +1,29 @@ | |||
1 | # -*- cmake -*- | ||
2 | include(Prebuilt) | ||
3 | |||
4 | if (STANDALONE) | ||
5 | include(FindPkgConfig) | ||
6 | |||
7 | pkg_check_modules(DBUSGLIB REQUIRED dbus-glib-1) | ||
8 | |||
9 | elseif (LINUX) | ||
10 | use_prebuilt_binary(dbusglib) | ||
11 | set(DBUSGLIB_FOUND ON FORCE BOOL) | ||
12 | set(DBUSGLIB_INCLUDE_DIRS | ||
13 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0 | ||
14 | ) | ||
15 | # We don't need to explicitly link against dbus-glib itself, because | ||
16 | # the viewer probes for the system's copy at runtime. | ||
17 | set(DBUSGLIB_LIBRARIES | ||
18 | gobject-2.0 | ||
19 | glib-2.0 | ||
20 | ) | ||
21 | endif (STANDALONE) | ||
22 | |||
23 | if (DBUSGLIB_FOUND) | ||
24 | set(DBUSGLIB ON CACHE BOOL "Build with dbus-glib message bus support.") | ||
25 | endif (DBUSGLIB_FOUND) | ||
26 | |||
27 | if (DBUSGLIB) | ||
28 | add_definitions(-DLL_DBUS_ENABLED=1) | ||
29 | endif (DBUSGLIB) | ||
diff --git a/linden/indra/cmake/DirectX.cmake b/linden/indra/cmake/DirectX.cmake index 4d2d5e0..d406f37 100644 --- a/linden/indra/cmake/DirectX.cmake +++ b/linden/indra/cmake/DirectX.cmake | |||
@@ -3,12 +3,13 @@ | |||
3 | if (VIEWER AND WINDOWS) | 3 | if (VIEWER AND WINDOWS) |
4 | find_path(DIRECTX_INCLUDE_DIR dxdiag.h | 4 | find_path(DIRECTX_INCLUDE_DIR dxdiag.h |
5 | "$ENV{DXSDK_DIR}/Include" | 5 | "$ENV{DXSDK_DIR}/Include" |
6 | "C:/Program Files/Microsoft DirectX SDK (June 2008)/Include" | 6 | "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2008)/Include" |
7 | "C:/Program Files/Microsoft DirectX SDK (March 2008)/Include" | 7 | "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (June 2008)/Include" |
8 | "C:/Program Files/Microsoft DirectX SDK (November 2007)/Include" | 8 | "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (March 2008)/Include" |
9 | "C:/Program Files/Microsoft DirectX SDK (August 2007)/Include" | 9 | "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (November 2007)/Include" |
10 | "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2007)/Include" | ||
10 | "C:/DX90SDK/Include" | 11 | "C:/DX90SDK/Include" |
11 | "C:/Program Files/DX90SDK/Include" | 12 | "$ENV{PROGRAMFILES}/DX90SDK/Include" |
12 | ) | 13 | ) |
13 | if (DIRECTX_INCLUDE_DIR) | 14 | if (DIRECTX_INCLUDE_DIR) |
14 | include_directories(${DIRECTX_INCLUDE_DIR}) | 15 | include_directories(${DIRECTX_INCLUDE_DIR}) |
@@ -22,12 +23,13 @@ if (VIEWER AND WINDOWS) | |||
22 | 23 | ||
23 | find_path(DIRECTX_LIBRARY_DIR dxguid.lib | 24 | find_path(DIRECTX_LIBRARY_DIR dxguid.lib |
24 | "$ENV{DXSDK_DIR}/Lib/x86" | 25 | "$ENV{DXSDK_DIR}/Lib/x86" |
25 | "C:/Program Files/Microsoft DirectX SDK (June 2008)/Lib/x86" | 26 | "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2008)/Lib/x86" |
26 | "C:/Program Files/Microsoft DirectX SDK (March 2008)/Lib/x86" | 27 | "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (June 2008)/Lib/x86" |
27 | "C:/Program Files/Microsoft DirectX SDK (November 2007)/Lib/x86" | 28 | "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (March 2008)/Lib/x86" |
28 | "C:/Program Files/Microsoft DirectX SDK (August 2007)/Lib/x86" | 29 | "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (November 2007)/Lib/x86" |
30 | "$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2007)/Lib/x86" | ||
29 | "C:/DX90SDK/Lib" | 31 | "C:/DX90SDK/Lib" |
30 | "C:/Program Files/DX90SDK/Lib" | 32 | "$ENV{PROGRAMFILES}/DX90SDK/Lib" |
31 | ) | 33 | ) |
32 | if (DIRECTX_LIBRARY_DIR) | 34 | if (DIRECTX_LIBRARY_DIR) |
33 | if (DIRECTX_FIND_QUIETLY) | 35 | if (DIRECTX_FIND_QUIETLY) |
diff --git a/linden/indra/cmake/FindMono.cmake b/linden/indra/cmake/FindMono.cmake index f0a0705..c36d725 100644 --- a/linden/indra/cmake/FindMono.cmake +++ b/linden/indra/cmake/FindMono.cmake | |||
@@ -14,29 +14,29 @@ | |||
14 | # Removed the check for gmcs | 14 | # Removed the check for gmcs |
15 | 15 | ||
16 | FIND_PROGRAM (MONO_EXECUTABLE mono | 16 | FIND_PROGRAM (MONO_EXECUTABLE mono |
17 | "C:/Program Files/Mono-1.9.1/bin" | 17 | "$ENV{PROGRAMFILES}/Mono-1.9.1/bin" |
18 | "C:/Program Files/Mono-1.2.6/bin" | 18 | "$ENV{PROGRAMFILES}/Mono-1.2.6/bin" |
19 | /bin | 19 | /bin |
20 | /usr/bin | 20 | /usr/bin |
21 | /usr/local/bin | 21 | /usr/local/bin |
22 | ) | 22 | ) |
23 | FIND_PROGRAM (MCS_EXECUTABLE mcs | 23 | FIND_PROGRAM (MCS_EXECUTABLE mcs |
24 | "C:/Program Files/Mono-1.9.1/bin" | 24 | "$ENV{PROGRAMFILES}/Mono-1.9.1/bin" |
25 | "C:/Program Files/Mono-1.2.6/bin" | 25 | "$ENV{PROGRAMFILES}/Mono-1.2.6/bin" |
26 | /bin | 26 | /bin |
27 | /usr/bin | 27 | /usr/bin |
28 | /usr/local/bin | 28 | /usr/local/bin |
29 | ) | 29 | ) |
30 | FIND_PROGRAM (GMCS_EXECUTABLE gmcs | 30 | FIND_PROGRAM (GMCS_EXECUTABLE gmcs |
31 | "C:/Program Files/Mono-1.9.1/bin" | 31 | "$ENV{PROGRAMFILES}/Mono-1.9.1/bin" |
32 | "C:/Program Files/Mono-1.2.6/bin" | 32 | "$ENV{PROGRAMFILES}/Mono-1.2.6/bin" |
33 | /bin | 33 | /bin |
34 | /usr/bin | 34 | /usr/bin |
35 | /usr/local/bin | 35 | /usr/local/bin |
36 | ) | 36 | ) |
37 | FIND_PROGRAM (GACUTIL_EXECUTABLE gacutil | 37 | FIND_PROGRAM (GACUTIL_EXECUTABLE gacutil |
38 | "C:/Program Files/Mono-1.9.1/bin" | 38 | "$ENV{PROGRAMFILES}/Mono-1.9.1/bin" |
39 | "C:/Program Files/Mono-1.2.6/bin" | 39 | "$ENV{PROGRAMFILES}/Mono-1.2.6/bin" |
40 | /bin | 40 | /bin |
41 | /usr/bin | 41 | /usr/bin |
42 | /usr/local/bin | 42 | /usr/local/bin |
@@ -44,7 +44,7 @@ FIND_PROGRAM (GACUTIL_EXECUTABLE gacutil | |||
44 | FIND_PROGRAM (ILASM_EXECUTABLE | 44 | FIND_PROGRAM (ILASM_EXECUTABLE |
45 | ilasm | 45 | ilasm |
46 | NO_DEFAULT_PATH | 46 | NO_DEFAULT_PATH |
47 | PATHS "C:/Program Files/Mono-1.9.1/bin" "C:/Apps/Mono-1.2.6/bin" "C:/Program Files/Mono-1.2.6/bin" /bin /usr/bin /usr/local/bin | 47 | PATHS "$ENV{PROGRAMFILES}/Mono-1.9.1/bin" "$ENV{PROGRAMFILES}/Mono-1.2.6/bin" /bin /usr/bin /usr/local/bin |
48 | ) | 48 | ) |
49 | 49 | ||
50 | SET (MONO_FOUND FALSE) | 50 | SET (MONO_FOUND FALSE) |
diff --git a/linden/indra/cmake/GooglePerfTools.cmake b/linden/indra/cmake/GooglePerfTools.cmake index 9b3eca0..25e9f6d 100644 --- a/linden/indra/cmake/GooglePerfTools.cmake +++ b/linden/indra/cmake/GooglePerfTools.cmake | |||
@@ -19,10 +19,14 @@ if (GOOGLE_PERFTOOLS_FOUND) | |||
19 | set(USE_GOOGLE_PERFTOOLS ON CACHE BOOL "Build with Google PerfTools support.") | 19 | set(USE_GOOGLE_PERFTOOLS ON CACHE BOOL "Build with Google PerfTools support.") |
20 | endif (GOOGLE_PERFTOOLS_FOUND) | 20 | endif (GOOGLE_PERFTOOLS_FOUND) |
21 | 21 | ||
22 | # XXX Disable temporarily, until we have compilation issues on 64-bit | ||
23 | # Etch sorted. | ||
24 | set(USE_GOOGLE_PERFTOOLS OFF) | ||
25 | |||
22 | if (USE_GOOGLE_PERFTOOLS) | 26 | if (USE_GOOGLE_PERFTOOLS) |
23 | set(TCMALLOC_FLAG -DLL_USE_TCMALLOC=1) | 27 | set(TCMALLOC_FLAG -DLL_USE_TCMALLOC=1) |
24 | include_directories(${GOOGLE_PERFTOOLS_INCLUDE_DIR}) | 28 | include_directories(${GOOGLE_PERFTOOLS_INCLUDE_DIR}) |
25 | set(GOOGLE_PERFTOOLS_LIBRARIES ${TCMALLOC_LIBRARIES} ${STACKTRACE_LIBRARIES}) | 29 | set(GOOGLE_PERFTOOLS_LIBRARIES ${TCMALLOC_LIBRARIES} ${STACKTRACE_LIBRARIES} ${PROFILER_LIBRARIES}) |
26 | else (USE_GOOGLE_PERFTOOLS) | 30 | else (USE_GOOGLE_PERFTOOLS) |
27 | set(TCMALLOC_FLAG -ULL_USE_TCMALLOC) | 31 | set(TCMALLOC_FLAG -ULL_USE_TCMALLOC) |
28 | endif (USE_GOOGLE_PERFTOOLS) | 32 | endif (USE_GOOGLE_PERFTOOLS) |
diff --git a/linden/indra/cmake/LLAudio.cmake b/linden/indra/cmake/LLAudio.cmake index 7b9f254..eff643d 100644 --- a/linden/indra/cmake/LLAudio.cmake +++ b/linden/indra/cmake/LLAudio.cmake | |||
@@ -6,10 +6,4 @@ set(LLAUDIO_INCLUDE_DIRS | |||
6 | ${LIBS_OPEN_DIR}/llaudio | 6 | ${LIBS_OPEN_DIR}/llaudio |
7 | ) | 7 | ) |
8 | 8 | ||
9 | set(LLAUDIO_LIBRARIES | 9 | set(LLAUDIO_LIBRARIES llaudio) |
10 | llaudio | ||
11 | ${VORBISENC_LIBRARIES} | ||
12 | ${VORBISFILE_LIBRARIES} | ||
13 | ${VORBIS_LIBRARIES} | ||
14 | ${OGG_LIBRARIES} | ||
15 | ) | ||
diff --git a/linden/indra/cmake/LLCharacter.cmake b/linden/indra/cmake/LLCharacter.cmake index c74092c..9b2f5c4 100644 --- a/linden/indra/cmake/LLCharacter.cmake +++ b/linden/indra/cmake/LLCharacter.cmake | |||
@@ -4,6 +4,4 @@ set(LLCHARACTER_INCLUDE_DIRS | |||
4 | ${LIBS_OPEN_DIR}/llcharacter | 4 | ${LIBS_OPEN_DIR}/llcharacter |
5 | ) | 5 | ) |
6 | 6 | ||
7 | set(LLCHARACTER_LIBRARIES | 7 | set(LLCHARACTER_LIBRARIES llcharacter) |
8 | llcharacter | ||
9 | ) | ||
diff --git a/linden/indra/cmake/LLCommon.cmake b/linden/indra/cmake/LLCommon.cmake index f4b251e..410766e 100644 --- a/linden/indra/cmake/LLCommon.cmake +++ b/linden/indra/cmake/LLCommon.cmake | |||
@@ -12,10 +12,4 @@ set(LLCOMMON_INCLUDE_DIRS | |||
12 | ${Boost_INCLUDE_DIRS} | 12 | ${Boost_INCLUDE_DIRS} |
13 | ) | 13 | ) |
14 | 14 | ||
15 | set(LLCOMMON_LIBRARIES | 15 | set(LLCOMMON_LIBRARIES llcommon) |
16 | llcommon | ||
17 | ${APRUTIL_LIBRARIES} | ||
18 | ${APR_LIBRARIES} | ||
19 | ${EXPAT_LIBRARIES} | ||
20 | ${ZLIB_LIBRARIES} | ||
21 | ) | ||
diff --git a/linden/indra/cmake/LLCrashLogger.cmake b/linden/indra/cmake/LLCrashLogger.cmake index 7b362d0..f2cb83e 100644 --- a/linden/indra/cmake/LLCrashLogger.cmake +++ b/linden/indra/cmake/LLCrashLogger.cmake | |||
@@ -4,6 +4,4 @@ set(LLCRASHLOGGER_INCLUDE_DIRS | |||
4 | ${LIBS_OPEN_DIR}/llcrashlogger | 4 | ${LIBS_OPEN_DIR}/llcrashlogger |
5 | ) | 5 | ) |
6 | 6 | ||
7 | set(LLCRASHLOGGER_LIBRARIES | 7 | set(LLCRASHLOGGER_LIBRARIES llcrashlogger) |
8 | llcrashlogger | ||
9 | ) | ||
diff --git a/linden/indra/cmake/LLDatabase.cmake b/linden/indra/cmake/LLDatabase.cmake index c3cf622..6526101 100644 --- a/linden/indra/cmake/LLDatabase.cmake +++ b/linden/indra/cmake/LLDatabase.cmake | |||
@@ -7,7 +7,4 @@ set(LLDATABASE_INCLUDE_DIRS | |||
7 | ${MYSQL_INCLUDE_DIR} | 7 | ${MYSQL_INCLUDE_DIR} |
8 | ) | 8 | ) |
9 | 9 | ||
10 | set(LLDATABASE_LIBRARIES | 10 | set(LLDATABASE_LIBRARIES lldatabase) |
11 | lldatabase | ||
12 | ${MYSQL_LIBRARIES} | ||
13 | ) | ||
diff --git a/linden/indra/cmake/LLImage.cmake b/linden/indra/cmake/LLImage.cmake index 8874fa5..ec3da89 100644 --- a/linden/indra/cmake/LLImage.cmake +++ b/linden/indra/cmake/LLImage.cmake | |||
@@ -8,8 +8,4 @@ set(LLIMAGE_INCLUDE_DIRS | |||
8 | ${JPEG_INCLUDE_DIRS} | 8 | ${JPEG_INCLUDE_DIRS} |
9 | ) | 9 | ) |
10 | 10 | ||
11 | set(LLIMAGE_LIBRARIES | 11 | set(LLIMAGE_LIBRARIES llimage) |
12 | llimage | ||
13 | ${JPEG_LIBRARIES} | ||
14 | ${PNG_LIBRARIES} | ||
15 | ) | ||
diff --git a/linden/indra/cmake/LLImageJ2COJ.cmake b/linden/indra/cmake/LLImageJ2COJ.cmake index 91973e0..1bcf205 100644 --- a/linden/indra/cmake/LLImageJ2COJ.cmake +++ b/linden/indra/cmake/LLImageJ2COJ.cmake | |||
@@ -2,7 +2,4 @@ | |||
2 | 2 | ||
3 | include(OpenJPEG) | 3 | include(OpenJPEG) |
4 | 4 | ||
5 | set(LLIMAGEJ2COJ_LIBRARIES | 5 | set(LLIMAGEJ2COJ_LIBRARIES llimagej2coj) |
6 | llimagej2coj | ||
7 | ${OPENJPEG_LIBRARIES} | ||
8 | ) | ||
diff --git a/linden/indra/cmake/LLInventory.cmake b/linden/indra/cmake/LLInventory.cmake index 7d5f492..c3dc077 100644 --- a/linden/indra/cmake/LLInventory.cmake +++ b/linden/indra/cmake/LLInventory.cmake | |||
@@ -4,6 +4,4 @@ set(LLINVENTORY_INCLUDE_DIRS | |||
4 | ${LIBS_OPEN_DIR}/llinventory | 4 | ${LIBS_OPEN_DIR}/llinventory |
5 | ) | 5 | ) |
6 | 6 | ||
7 | set(LLINVENTORY_LIBRARIES | 7 | set(LLINVENTORY_LIBRARIES llinventory) |
8 | llinventory | ||
9 | ) | ||
diff --git a/linden/indra/cmake/LLKDU.cmake b/linden/indra/cmake/LLKDU.cmake index a02b5d9..f103dcf 100644 --- a/linden/indra/cmake/LLKDU.cmake +++ b/linden/indra/cmake/LLKDU.cmake | |||
@@ -5,8 +5,6 @@ if (NOT STANDALONE AND EXISTS ${LIBS_CLOSED_DIR}/llkdu) | |||
5 | use_prebuilt_binary(kdu) | 5 | use_prebuilt_binary(kdu) |
6 | if (WINDOWS) | 6 | if (WINDOWS) |
7 | set(KDU_LIBRARY debug kdu_cored optimized kdu_core) | 7 | set(KDU_LIBRARY debug kdu_cored optimized kdu_core) |
8 | elseif (LINUX) | ||
9 | set(KDU_LIBRARY kdu_v42R) | ||
10 | else (WINDOWS) | 8 | else (WINDOWS) |
11 | set(KDU_LIBRARY kdu) | 9 | set(KDU_LIBRARY kdu) |
12 | endif (WINDOWS) | 10 | endif (WINDOWS) |
diff --git a/linden/indra/cmake/LLMath.cmake b/linden/indra/cmake/LLMath.cmake index 8afd45e..893920a 100644 --- a/linden/indra/cmake/LLMath.cmake +++ b/linden/indra/cmake/LLMath.cmake | |||
@@ -4,6 +4,4 @@ set(LLMATH_INCLUDE_DIRS | |||
4 | ${LIBS_OPEN_DIR}/llmath | 4 | ${LIBS_OPEN_DIR}/llmath |
5 | ) | 5 | ) |
6 | 6 | ||
7 | set(LLMATH_LIBRARIES | 7 | set(LLMATH_LIBRARIES llmath) |
8 | llmath | ||
9 | ) | ||
diff --git a/linden/indra/cmake/LLMedia.cmake b/linden/indra/cmake/LLMedia.cmake index b7bf11c..91c7818 100644 --- a/linden/indra/cmake/LLMedia.cmake +++ b/linden/indra/cmake/LLMedia.cmake | |||
@@ -7,9 +7,4 @@ set(LLMEDIA_INCLUDE_DIRS | |||
7 | ${LIBS_OPEN_DIR}/llmedia | 7 | ${LIBS_OPEN_DIR}/llmedia |
8 | ) | 8 | ) |
9 | 9 | ||
10 | set(LLMEDIA_LIBRARIES | 10 | set(LLMEDIA_LIBRARIES llmedia) |
11 | llmedia | ||
12 | ${GSTREAMER_LIBRARIES} | ||
13 | ${GSTREAMER_PLUGINS_BASE_LIBRARIES} | ||
14 | ${QUICKTIME_LIBRARY} | ||
15 | ) | ||
diff --git a/linden/indra/cmake/LLMessage.cmake b/linden/indra/cmake/LLMessage.cmake index 1cea03a..0143d04 100644 --- a/linden/indra/cmake/LLMessage.cmake +++ b/linden/indra/cmake/LLMessage.cmake | |||
@@ -12,11 +12,4 @@ set(LLMESSAGE_INCLUDE_DIRS | |||
12 | ${OPENSSL_INCLUDE_DIRS} | 12 | ${OPENSSL_INCLUDE_DIRS} |
13 | ) | 13 | ) |
14 | 14 | ||
15 | set(LLMESSAGE_LIBRARIES | 15 | set(LLMESSAGE_LIBRARIES llmessage) |
16 | llmessage | ||
17 | ${CURL_LIBRARIES} | ||
18 | ${CARES_LIBRARIES} | ||
19 | ${OPENSSL_LIBRARIES} | ||
20 | ${CRYPTO_LIBRARIES} | ||
21 | ${XMLRPCEPI_LIBRARIES} | ||
22 | ) | ||
diff --git a/linden/indra/cmake/LLPhysics.cmake b/linden/indra/cmake/LLPhysics.cmake deleted file mode 100644 index 3ae390e..0000000 --- a/linden/indra/cmake/LLPhysics.cmake +++ /dev/null | |||
@@ -1,76 +0,0 @@ | |||
1 | # -*- cmake -*- | ||
2 | include(Prebuilt) | ||
3 | |||
4 | use_prebuilt_binary(havok) | ||
5 | |||
6 | set(HAVOK_VERSION 460) | ||
7 | |||
8 | set(LLPHYSICS_INCLUDE_DIRS | ||
9 | ${LIBS_SERVER_DIR}/llphysics | ||
10 | ${LIBS_PREBUILT_DIR}/include/havok/hk${HAVOK_VERSION}/common | ||
11 | ${LIBS_PREBUILT_DIR}/include/havok/hk${HAVOK_VERSION}/physics | ||
12 | ) | ||
13 | |||
14 | add_definitions(-DLL_CURRENT_HAVOK_VERSION=${HAVOK_VERSION}) | ||
15 | |||
16 | if (LINUX OR DARWIN) | ||
17 | if (DARWIN) | ||
18 | link_directories( | ||
19 | ${LIBS_PREBUILT_DIR}/universal-darwin/lib_release/havok/hk460 | ||
20 | ) | ||
21 | else (DARWIN) | ||
22 | link_directories( | ||
23 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release/havok/hk460 | ||
24 | ) | ||
25 | endif (DARWIN) | ||
26 | |||
27 | set(LLPHYSICS_LIBRARIES | ||
28 | llphysics | ||
29 | hkcompat | ||
30 | hkutilities | ||
31 | hkvisualize | ||
32 | hkdynamics | ||
33 | hkvehicle | ||
34 | hkcollide | ||
35 | hkinternal | ||
36 | hkconstraintsolver | ||
37 | hkmath | ||
38 | hkscenedata | ||
39 | hkserialize | ||
40 | hkgraphicsogl | ||
41 | hkgraphicsbridge | ||
42 | hkgraphics | ||
43 | hkdemoframework | ||
44 | hkbase | ||
45 | ) | ||
46 | elseif (WINDOWS) | ||
47 | if (MSVC71) | ||
48 | set(HK_DEBUG ${WINLIBS_PREBUILT_DEBUG_DIR}/havok/hk460) | ||
49 | set(HK_RELEASE ${WINLIBS_PREBUILT_RELEASE_DIR}/havok/hk460) | ||
50 | else (MSVC71) | ||
51 | set(HK_DEBUG ${WINLIBS_PREBUILT_DEBUG_DIR}/havok/hk460_net_8-0) | ||
52 | set(HK_RELEASE ${WINLIBS_PREBUILT_RELEASE_DIR}/havok/hk460_net_8-0) | ||
53 | endif (MSVC71) | ||
54 | |||
55 | set(HAVOK_LIBS | ||
56 | hkbase | ||
57 | hkdynamics | ||
58 | hkmath | ||
59 | hkcollide | ||
60 | hkutilities | ||
61 | hkvisualize | ||
62 | hkinternal | ||
63 | hkconstraintsolver | ||
64 | hkcompat | ||
65 | hkserialize | ||
66 | hkvehicle | ||
67 | hkscenedata | ||
68 | ) | ||
69 | |||
70 | set(LLPHYSICS_LIBRARIES llphysics) | ||
71 | |||
72 | foreach(lib ${HAVOK_LIBS}) | ||
73 | list(APPEND LLPHYSICS_LIBRARIES | ||
74 | debug ${HK_DEBUG}/${lib} optimized ${HK_RELEASE}/${lib}) | ||
75 | endforeach(lib) | ||
76 | endif (LINUX OR DARWIN) | ||
diff --git a/linden/indra/cmake/LLPrimitive.cmake b/linden/indra/cmake/LLPrimitive.cmake index 0426ae5..d397b78 100644 --- a/linden/indra/cmake/LLPrimitive.cmake +++ b/linden/indra/cmake/LLPrimitive.cmake | |||
@@ -4,6 +4,4 @@ set(LLPRIMITIVE_INCLUDE_DIRS | |||
4 | ${LIBS_OPEN_DIR}/llprimitive | 4 | ${LIBS_OPEN_DIR}/llprimitive |
5 | ) | 5 | ) |
6 | 6 | ||
7 | set(LLPRIMITIVE_LIBRARIES | 7 | set(LLPRIMITIVE_LIBRARIES llprimitive) |
8 | llprimitive | ||
9 | ) | ||
diff --git a/linden/indra/cmake/LLScene.cmake b/linden/indra/cmake/LLScene.cmake index d1c32b3..96ad508 100644 --- a/linden/indra/cmake/LLScene.cmake +++ b/linden/indra/cmake/LLScene.cmake | |||
@@ -4,6 +4,4 @@ set(LLSCENE_INCLUDE_DIRS | |||
4 | ${LIBS_SERVER_DIR}/llscene | 4 | ${LIBS_SERVER_DIR}/llscene |
5 | ) | 5 | ) |
6 | 6 | ||
7 | set(LLSCENE_LIBRARIES | 7 | set(LLSCENE_LIBRARIES llscene) |
8 | llscene | ||
9 | ) | ||
diff --git a/linden/indra/cmake/LLUI.cmake b/linden/indra/cmake/LLUI.cmake index d1287de..34de571 100644 --- a/linden/indra/cmake/LLUI.cmake +++ b/linden/indra/cmake/LLUI.cmake | |||
@@ -4,6 +4,4 @@ set(LLUI_INCLUDE_DIRS | |||
4 | ${LIBS_OPEN_DIR}/llui | 4 | ${LIBS_OPEN_DIR}/llui |
5 | ) | 5 | ) |
6 | 6 | ||
7 | set(LLUI_LIBRARIES | 7 | set(LLUI_LIBRARIES llui) |
8 | llui | ||
9 | ) | ||
diff --git a/linden/indra/cmake/LLVFS.cmake b/linden/indra/cmake/LLVFS.cmake index 5ce3d25..0fe87cd 100644 --- a/linden/indra/cmake/LLVFS.cmake +++ b/linden/indra/cmake/LLVFS.cmake | |||
@@ -5,9 +5,3 @@ set(LLVFS_INCLUDE_DIRS | |||
5 | ) | 5 | ) |
6 | 6 | ||
7 | set(LLVFS_LIBRARIES llvfs) | 7 | set(LLVFS_LIBRARIES llvfs) |
8 | |||
9 | if (DARWIN) | ||
10 | include(CMakeFindFrameworks) | ||
11 | find_library(CARBON_LIBRARY Carbon) | ||
12 | list(APPEND LLVFS_LIBRARIES ${CARBON_LIBRARY}) | ||
13 | endif (DARWIN) | ||
diff --git a/linden/indra/cmake/LLXML.cmake b/linden/indra/cmake/LLXML.cmake index 1ce93c0..64dfdb6 100644 --- a/linden/indra/cmake/LLXML.cmake +++ b/linden/indra/cmake/LLXML.cmake | |||
@@ -1,13 +1,12 @@ | |||
1 | # -*- cmake -*- | 1 | # -*- cmake -*- |
2 | 2 | ||
3 | include(Boost) | ||
3 | include(EXPAT) | 4 | include(EXPAT) |
4 | 5 | ||
5 | set(LLXML_INCLUDE_DIRS | 6 | set(LLXML_INCLUDE_DIRS |
6 | ${LIBS_OPEN_DIR}/llxml | 7 | ${LIBS_OPEN_DIR}/llxml |
8 | ${Boost_INCLUDE_DIRS} | ||
7 | ${EXPAT_INCLUDE_DIRS} | 9 | ${EXPAT_INCLUDE_DIRS} |
8 | ) | 10 | ) |
9 | 11 | ||
10 | set(LLXML_LIBRARIES | 12 | set(LLXML_LIBRARIES llxml) |
11 | llxml | ||
12 | ${EXPAT_LIBRARIES} | ||
13 | ) | ||
diff --git a/linden/indra/cmake/Linking.cmake b/linden/indra/cmake/Linking.cmake index c9748e3..167c5dd 100644 --- a/linden/indra/cmake/Linking.cmake +++ b/linden/indra/cmake/Linking.cmake | |||
@@ -7,15 +7,15 @@ if (NOT STANDALONE) | |||
7 | set(ARCH_PREBUILT_DIRS_DEBUG ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib/debug) | 7 | set(ARCH_PREBUILT_DIRS_DEBUG ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib/debug) |
8 | elseif (LINUX) | 8 | elseif (LINUX) |
9 | if (VIEWER) | 9 | if (VIEWER) |
10 | set(ARCH_PREBUILT_DIRS | 10 | set(ARCH_PREBUILT_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release_client) |
11 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release_client) | ||
12 | set(ARCH_PREBUILT_DIRS_RELEASE ${ARCH_PREBUILT_DIRS}) | ||
13 | set(ARCH_PREBUILT_DIRS_DEBUG ${ARCH_PREBUILT_DIRS}) | ||
14 | else (VIEWER) | 11 | else (VIEWER) |
15 | set(ARCH_PREBUILT_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release) | 12 | set(ARCH_PREBUILT_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release) |
16 | endif (VIEWER) | 13 | endif (VIEWER) |
14 | set(ARCH_PREBUILT_DIRS_RELEASE ${ARCH_PREBUILT_DIRS}) | ||
15 | set(ARCH_PREBUILT_DIRS_DEBUG ${ARCH_PREBUILT_DIRS}) | ||
17 | elseif (DARWIN) | 16 | elseif (DARWIN) |
18 | set(ARCH_PREBUILT_DIRS_RELEASE ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release) | 17 | set(ARCH_PREBUILT_DIRS_RELEASE ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release) |
18 | set(ARCH_PREBUILT_DIRS ${ARCH_PREBUILT_DIRS_RELEASE}) | ||
19 | set(ARCH_PREBUILT_DIRS_DEBUG ${ARCH_PREBUILT_DIRS_RELEASE}) | 19 | set(ARCH_PREBUILT_DIRS_DEBUG ${ARCH_PREBUILT_DIRS_RELEASE}) |
20 | endif (WINDOWS) | 20 | endif (WINDOWS) |
21 | endif (NOT STANDALONE) | 21 | endif (NOT STANDALONE) |
diff --git a/linden/indra/cmake/Python.cmake b/linden/indra/cmake/Python.cmake index e9505fb..4f86d32 100644 --- a/linden/indra/cmake/Python.cmake +++ b/linden/indra/cmake/Python.cmake | |||
@@ -9,6 +9,7 @@ if (WINDOWS) | |||
9 | NAMES python25.exe python23.exe python.exe | 9 | NAMES python25.exe python23.exe python.exe |
10 | NO_DEFAULT_PATH # added so that cmake does not find cygwin python | 10 | NO_DEFAULT_PATH # added so that cmake does not find cygwin python |
11 | PATHS | 11 | PATHS |
12 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.6\\InstallPath] | ||
12 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.5\\InstallPath] | 13 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.5\\InstallPath] |
13 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.4\\InstallPath] | 14 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.4\\InstallPath] |
14 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.3\\InstallPath] | 15 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.3\\InstallPath] |
diff --git a/linden/indra/cmake/QuickTime.cmake b/linden/indra/cmake/QuickTime.cmake index b79ac11..4352709 100644 --- a/linden/indra/cmake/QuickTime.cmake +++ b/linden/indra/cmake/QuickTime.cmake | |||
@@ -9,13 +9,29 @@ if (DARWIN) | |||
9 | include(CMakeFindFrameworks) | 9 | include(CMakeFindFrameworks) |
10 | find_library(QUICKTIME_LIBRARY QuickTime) | 10 | find_library(QUICKTIME_LIBRARY QuickTime) |
11 | elseif (WINDOWS) | 11 | elseif (WINDOWS) |
12 | set(QUICKTIME_SDK_DIR "C:\\Program Files\\QuickTime SDK" | 12 | set(QUICKTIME_SDK_DIR "$ENV{PROGRAMFILES}/QuickTime SDK" |
13 | CACHE PATH "Location of the QuickTime SDK.") | 13 | CACHE PATH "Location of the QuickTime SDK.") |
14 | find_library(QUICKTIME_LIBRARY qtmlclient | 14 | |
15 | find_library(DEBUG_QUICKTIME_LIBRARY qtmlclient | ||
16 | PATHS | ||
17 | ${ARCH_PREBUILT_DIRS_DEBUG} | ||
18 | "${QUICKTIME_SDK_DIR}\\libraries" | ||
19 | ) | ||
20 | |||
21 | find_library(RELEASE_QUICKTIME_LIBRARY qtmlclient | ||
15 | PATHS | 22 | PATHS |
16 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib/release | 23 | ${ARCH_PREBUILT_DIRS_RELEASE} |
17 | "${QUICKTIME_SDK_DIR}\\libraries" | 24 | "${QUICKTIME_SDK_DIR}\\libraries" |
18 | ) | 25 | ) |
26 | |||
27 | if (DEBUG_QUICKTIME_LIBRARY AND RELEASE_QUICKTIME_LIBRARY) | ||
28 | set(QUICKTIME_LIBRARY | ||
29 | optimized ${RELEASE_QUICKTIME_LIBRARY} | ||
30 | debug ${DEBUG_QUICKTIME_LIBRARY} | ||
31 | ) | ||
32 | |||
33 | endif (DEBUG_QUICKTIME_LIBRARY AND RELEASE_QUICKTIME_LIBRARY) | ||
34 | |||
19 | include_directories( | 35 | include_directories( |
20 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/quicktime | 36 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/quicktime |
21 | "${QUICKTIME_SDK_DIR}\\CIncludes" | 37 | "${QUICKTIME_SDK_DIR}\\CIncludes" |