aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake
diff options
context:
space:
mode:
authorJacek Antonelli2009-06-08 00:41:31 -0500
committerJacek Antonelli2009-06-08 00:41:31 -0500
commit0e5df9bdf8d6b418bb6e25615e2ffc922d0f02aa (patch)
tree2c93d38e210832e737d09cff7561373d8d5453b2 /linden/indra/cmake
parentImprudence 1.1.0 released. (diff)
parentUpdated Imprudence to be based on SL 1.22.11. (ChangeLog Entry) (diff)
downloadmeta-impy-0e5df9bdf8d6b418bb6e25615e2ffc922d0f02aa.zip
meta-impy-0e5df9bdf8d6b418bb6e25615e2ffc922d0f02aa.tar.gz
meta-impy-0e5df9bdf8d6b418bb6e25615e2ffc922d0f02aa.tar.bz2
meta-impy-0e5df9bdf8d6b418bb6e25615e2ffc922d0f02aa.tar.xz
Merge branch 'sl-base-1.22' into next
Conflicts: linden/indra/newview/English.lproj/InfoPlist.strings linden/indra/newview/skins/default/xui/en-us/panel_chat_bar.xml
Diffstat (limited to 'linden/indra/cmake')
-rw-r--r--linden/indra/cmake/APR.cmake4
-rw-r--r--linden/indra/cmake/CopyWinLibs.cmake40
-rw-r--r--linden/indra/cmake/DBusGlib.cmake29
-rw-r--r--linden/indra/cmake/LLCharacter.cmake4
-rw-r--r--linden/indra/cmake/LLCommon.cmake8
-rw-r--r--linden/indra/cmake/LLCrashLogger.cmake4
-rw-r--r--linden/indra/cmake/LLDatabase.cmake5
-rw-r--r--linden/indra/cmake/LLImage.cmake6
-rw-r--r--linden/indra/cmake/LLImageJ2COJ.cmake5
-rw-r--r--linden/indra/cmake/LLInventory.cmake4
-rw-r--r--linden/indra/cmake/LLMath.cmake4
-rw-r--r--linden/indra/cmake/LLMessage.cmake9
-rw-r--r--linden/indra/cmake/LLPhysics.cmake76
-rw-r--r--linden/indra/cmake/LLPrimitive.cmake4
-rw-r--r--linden/indra/cmake/LLScene.cmake4
-rw-r--r--linden/indra/cmake/LLUI.cmake4
-rw-r--r--linden/indra/cmake/LLVFS.cmake6
-rw-r--r--linden/indra/cmake/LLXML.cmake5
18 files changed, 81 insertions, 140 deletions
diff --git a/linden/indra/cmake/APR.cmake b/linden/indra/cmake/APR.cmake
index 2563a98..088b3e6 100644
--- a/linden/indra/cmake/APR.cmake
+++ b/linden/indra/cmake/APR.cmake
@@ -23,6 +23,10 @@ else (STANDALONE)
23 debug ${ARCH_PREBUILT_DIRS_DEBUG}/aprutil-1.lib 23 debug ${ARCH_PREBUILT_DIRS_DEBUG}/aprutil-1.lib
24 optimized ${ARCH_PREBUILT_DIRS_RELEASE}/aprutil-1.lib 24 optimized ${ARCH_PREBUILT_DIRS_RELEASE}/aprutil-1.lib
25 ) 25 )
26 set(APRICONV_LIBRARIES
27 debug ${ARCH_PREBUILT_DIRS_DEBUG}/apriconv-1.lib
28 optimized ${ARCH_PREBUILT_DIRS_RELEASE}/apriconv-1.lib
29 )
26 # Doesn't need to link with iconv.dll 30 # Doesn't need to link with iconv.dll
27 set(APRICONV_LIBRARIES "") 31 set(APRICONV_LIBRARIES "")
28 elseif (DARWIN) 32 elseif (DARWIN)
diff --git a/linden/indra/cmake/CopyWinLibs.cmake b/linden/indra/cmake/CopyWinLibs.cmake
index 452292a..0c16d9f 100644
--- a/linden/indra/cmake/CopyWinLibs.cmake
+++ b/linden/indra/cmake/CopyWinLibs.cmake
@@ -174,10 +174,9 @@ set(all_targets ${all_targets} ${out_targets})
174 174
175set(vivox_src_dir "${CMAKE_SOURCE_DIR}/newview/vivox-runtime/i686-win32") 175set(vivox_src_dir "${CMAKE_SOURCE_DIR}/newview/vivox-runtime/i686-win32")
176set(vivox_files 176set(vivox_files
177 tntk.dll 177 SLVoice.exe
178 libeay32.dll 178 alut.dll
179 ssleay32.dll 179 vivoxsdk.dll
180 srtp.dll
181 ortp.dll 180 ortp.dll
182 wrap_oal.dll 181 wrap_oal.dll
183 ) 182 )
@@ -393,6 +392,37 @@ if (MSVC80)
393 [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup\\VC;ProductDir]/redist/x86/Microsoft.VC80.CRT 392 [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup\\VC;ProductDir]/redist/x86/Microsoft.VC80.CRT
394 ) 393 )
395 394
395# Copy MS C runtime dlls, required for packaging.
396# *TODO - Adapt this to support VC9
397if (MSVC80)
398 FIND_PATH(debug_msvc8_redist_path msvcr80d.dll
399 PATHS
400 [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup\\VC;ProductDir]/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT
401 NO_DEFAULT_PATH
402 )
403
404 if(EXISTS ${debug_msvc8_redist_path})
405 set(debug_msvc8_files
406 msvcr80d.dll
407 msvcp80d.dll
408 Microsoft.VC80.DebugCRT.manifest
409 )
410
411 copy_if_different(
412 ${debug_msvc8_redist_path}
413 "${CMAKE_CURRENT_BINARY_DIR}/Debug"
414 out_targets
415 ${debug_msvc8_files}
416 )
417 set(all_targets ${all_targets} ${out_targets})
418 endif (EXISTS ${debug_msvc8_redist_path})
419
420 FIND_PATH(release_msvc8_redist_path msvcr80.dll
421 PATHS
422 [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup\\VC;ProductDir]/redist/x86/Microsoft.VC80.CRT
423 NO_DEFAULT_PATH
424 )
425
396 if(EXISTS ${release_msvc8_redist_path}) 426 if(EXISTS ${release_msvc8_redist_path})
397 set(release_msvc8_files 427 set(release_msvc8_files
398 msvcr80.dll 428 msvcr80.dll
@@ -419,4 +449,4 @@ if (MSVC80)
419 endif (EXISTS ${release_msvc8_redist_path}) 449 endif (EXISTS ${release_msvc8_redist_path})
420endif (MSVC80) 450endif (MSVC80)
421 451
422add_custom_target(copy_win_libs ALL DEPENDS ${all_targets}) \ No newline at end of file 452add_custom_target(copy_win_libs ALL DEPENDS ${all_targets})
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 -*-
2include(Prebuilt)
3
4if (STANDALONE)
5 include(FindPkgConfig)
6
7 pkg_check_modules(DBUSGLIB REQUIRED dbus-glib-1)
8
9elseif (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 )
21endif (STANDALONE)
22
23if (DBUSGLIB_FOUND)
24 set(DBUSGLIB ON CACHE BOOL "Build with dbus-glib message bus support.")
25endif (DBUSGLIB_FOUND)
26
27if (DBUSGLIB)
28 add_definitions(-DLL_DBUS_ENABLED=1)
29endif (DBUSGLIB)
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
7set(LLCHARACTER_LIBRARIES 7set(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
15set(LLCOMMON_LIBRARIES 15set(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
7set(LLCRASHLOGGER_LIBRARIES 7set(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
10set(LLDATABASE_LIBRARIES 10set(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
11set(LLIMAGE_LIBRARIES 11set(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
3include(OpenJPEG) 3include(OpenJPEG)
4 4
5set(LLIMAGEJ2COJ_LIBRARIES 5set(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
7set(LLINVENTORY_LIBRARIES 7set(LLINVENTORY_LIBRARIES llinventory)
8 llinventory
9 )
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
7set(LLMATH_LIBRARIES 7set(LLMATH_LIBRARIES llmath)
8 llmath
9 )
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
15set(LLMESSAGE_LIBRARIES 15set(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 -*-
2include(Prebuilt)
3
4use_prebuilt_binary(havok)
5
6set(HAVOK_VERSION 460)
7
8set(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
14add_definitions(-DLL_CURRENT_HAVOK_VERSION=${HAVOK_VERSION})
15
16if (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 )
46elseif (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)
76endif (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
7set(LLPRIMITIVE_LIBRARIES 7set(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
7set(LLSCENE_LIBRARIES 7set(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
7set(LLUI_LIBRARIES 7set(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
7set(LLVFS_LIBRARIES llvfs) 7set(LLVFS_LIBRARIES llvfs)
8
9if (DARWIN)
10 include(CMakeFindFrameworks)
11 find_library(CARBON_LIBRARY Carbon)
12 list(APPEND LLVFS_LIBRARIES ${CARBON_LIBRARY})
13endif (DARWIN)
diff --git a/linden/indra/cmake/LLXML.cmake b/linden/indra/cmake/LLXML.cmake
index dd2ebca..64dfdb6 100644
--- a/linden/indra/cmake/LLXML.cmake
+++ b/linden/indra/cmake/LLXML.cmake
@@ -9,7 +9,4 @@ set(LLXML_INCLUDE_DIRS
9 ${EXPAT_INCLUDE_DIRS} 9 ${EXPAT_INCLUDE_DIRS}
10 ) 10 )
11 11
12set(LLXML_LIBRARIES 12set(LLXML_LIBRARIES llxml)
13 llxml
14 ${EXPAT_LIBRARIES}
15 )