diff options
Diffstat (limited to 'linden/indra/cmake')
-rw-r--r-- | linden/indra/cmake/00-Common.cmake | 18 | ||||
-rw-r--r-- | linden/indra/cmake/CopyWinLibs.cmake | 8 | ||||
-rw-r--r-- | linden/indra/cmake/Python.cmake | 11 | ||||
-rw-r--r-- | linden/indra/cmake/UnixInstall.cmake | 4 | ||||
-rw-r--r-- | linden/indra/cmake/Variables.cmake | 11 | ||||
-rw-r--r-- | linden/indra/cmake/gpg.vs.cmake | 6 | ||||
-rw-r--r-- | linden/indra/cmake/libgcrypt.cmake | 8 | ||||
-rw-r--r-- | linden/indra/cmake/libgpg-error.cmake | 8 | ||||
-rw-r--r-- | linden/indra/cmake/libotr.cmake | 8 | ||||
-rw-r--r-- | linden/indra/cmake/libotrb.cmake | 4 |
10 files changed, 68 insertions, 18 deletions
diff --git a/linden/indra/cmake/00-Common.cmake b/linden/indra/cmake/00-Common.cmake index 1a24a41..9ff5906 100644 --- a/linden/indra/cmake/00-Common.cmake +++ b/linden/indra/cmake/00-Common.cmake | |||
@@ -1,6 +1,6 @@ | |||
1 | # -*- cmake -*- | 1 | # -*- cmake -*- |
2 | # | 2 | # |
3 | # Compilation options shared by all Second Life components. | 3 | # Compilation options shared by all components. |
4 | 4 | ||
5 | include(Variables) | 5 | include(Variables) |
6 | 6 | ||
@@ -69,6 +69,10 @@ if (WINDOWS) | |||
69 | /MP | 69 | /MP |
70 | ) | 70 | ) |
71 | 71 | ||
72 | add_definitions( | ||
73 | /DUSE_OTR=1 | ||
74 | ) | ||
75 | |||
72 | if(MSVC80 OR MSVC90) | 76 | if(MSVC80 OR MSVC90) |
73 | set(CMAKE_CXX_FLAGS_RELEASE | 77 | set(CMAKE_CXX_FLAGS_RELEASE |
74 | "${CMAKE_CXX_FLAGS_RELEASE} -D_SECURE_STL=0 -D_HAS_ITERATOR_DEBUGGING=0" | 78 | "${CMAKE_CXX_FLAGS_RELEASE} -D_SECURE_STL=0 -D_HAS_ITERATOR_DEBUGGING=0" |
@@ -149,6 +153,10 @@ if (LINUX) | |||
149 | -pthread | 153 | -pthread |
150 | ) | 154 | ) |
151 | 155 | ||
156 | add_definitions( | ||
157 | -DUSE_OTR=1 | ||
158 | ) | ||
159 | |||
152 | if (SERVER) | 160 | if (SERVER) |
153 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth-60") | 161 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth-60") |
154 | if (EXISTS /etc/debian_version) | 162 | if (EXISTS /etc/debian_version) |
@@ -172,7 +180,8 @@ if (LINUX) | |||
172 | endif (SERVER) | 180 | endif (SERVER) |
173 | 181 | ||
174 | if (VIEWER) | 182 | if (VIEWER) |
175 | add_definitions(-DAPPID=imprudence) | 183 | # Hmm, APPID does not seem to be used anywhere, but might be used implicitly somewhere. It also does not like being "meta-impy", so changing this to stop it bitching. |
184 | add_definitions(-DAPPID=metaImpy) | ||
176 | add_definitions(-fvisibility=hidden) | 185 | add_definitions(-fvisibility=hidden) |
177 | # don't catch SIGCHLD in our base application class for the viewer - some of our 3rd party libs may need their *own* SIGCHLD handler to work. Sigh! The viewer doesn't need to catch SIGCHLD anyway. | 186 | # don't catch SIGCHLD in our base application class for the viewer - some of our 3rd party libs may need their *own* SIGCHLD handler to work. Sigh! The viewer doesn't need to catch SIGCHLD anyway. |
178 | add_definitions(-DLL_IGNORE_SIGCHLD) | 187 | add_definitions(-DLL_IGNORE_SIGCHLD) |
@@ -195,6 +204,11 @@ endif (LINUX) | |||
195 | 204 | ||
196 | if (DARWIN) | 205 | if (DARWIN) |
197 | add_definitions(-DLL_DARWIN=1) | 206 | add_definitions(-DLL_DARWIN=1) |
207 | |||
208 | add_definitions( | ||
209 | -DUSE_OTR=1 | ||
210 | ) | ||
211 | |||
198 | set(CMAKE_CXX_LINK_FLAGS "-Wl,-headerpad_max_install_names,-search_paths_first") | 212 | set(CMAKE_CXX_LINK_FLAGS "-Wl,-headerpad_max_install_names,-search_paths_first") |
199 | set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_CXX_LINK_FLAGS}") | 213 | set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_CXX_LINK_FLAGS}") |
200 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mlong-branch -msse3 -mssse3 -w") | 214 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mlong-branch -msse3 -mssse3 -w") |
diff --git a/linden/indra/cmake/CopyWinLibs.cmake b/linden/indra/cmake/CopyWinLibs.cmake index 78c7c96..e7f1aa3 100644 --- a/linden/indra/cmake/CopyWinLibs.cmake +++ b/linden/indra/cmake/CopyWinLibs.cmake | |||
@@ -1,7 +1,7 @@ | |||
1 | # -*- cmake -*- | 1 | # -*- cmake -*- |
2 | 2 | ||
3 | # The copy_win_libs folder contains file lists and a script used to | 3 | # The copy_win_libs folder contains file lists and a script used to |
4 | # copy dlls, exes and such needed to run Imprudence from within | 4 | # copy dlls, exes and such needed to run meta-impy from within |
5 | # VisualStudio. | 5 | # VisualStudio. |
6 | 6 | ||
7 | include(CMakeCopyIfDifferent) | 7 | include(CMakeCopyIfDifferent) |
@@ -404,7 +404,7 @@ if(EXISTS ${debug_msvc8_redist_path}) | |||
404 | ARGS | 404 | ARGS |
405 | ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py | 405 | ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py |
406 | ${CMAKE_CURRENT_BINARY_DIR}/Debug/Microsoft.VC80.DebugCRT.manifest | 406 | ${CMAKE_CURRENT_BINARY_DIR}/Debug/Microsoft.VC80.DebugCRT.manifest |
407 | ${CMAKE_CURRENT_SOURCE_DIR}/ImprudenceDebug.exe.config | 407 | ${CMAKE_CURRENT_SOURCE_DIR}/meta-impyDebug.exe.config |
408 | ${debug_appconfig_file} | 408 | ${debug_appconfig_file} |
409 | DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Debug/Microsoft.VC80.DebugCRT.manifest | 409 | DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Debug/Microsoft.VC80.DebugCRT.manifest |
410 | COMMENT "Creating debug app config file" | 410 | COMMENT "Creating debug app config file" |
@@ -449,7 +449,7 @@ if(EXISTS ${release_msvc8_redist_path}) | |||
449 | ARGS | 449 | ARGS |
450 | ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py | 450 | ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py |
451 | ${CMAKE_CURRENT_BINARY_DIR}/Release/Microsoft.VC80.CRT.manifest | 451 | ${CMAKE_CURRENT_BINARY_DIR}/Release/Microsoft.VC80.CRT.manifest |
452 | ${CMAKE_CURRENT_SOURCE_DIR}/Imprudence.exe.config | 452 | ${CMAKE_CURRENT_SOURCE_DIR}/meta-impy.exe.config |
453 | ${release_appconfig_file} | 453 | ${release_appconfig_file} |
454 | DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Release/Microsoft.VC80.CRT.manifest | 454 | DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Release/Microsoft.VC80.CRT.manifest |
455 | COMMENT "Creating release app config file" | 455 | COMMENT "Creating release app config file" |
@@ -462,7 +462,7 @@ if(EXISTS ${release_msvc8_redist_path}) | |||
462 | ARGS | 462 | ARGS |
463 | ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py | 463 | ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py |
464 | ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest | 464 | ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest |
465 | ${CMAKE_CURRENT_SOURCE_DIR}/Imprudence.exe.config | 465 | ${CMAKE_CURRENT_SOURCE_DIR}/meta-impy.exe.config |
466 | ${relwithdebinfo_appconfig_file} | 466 | ${relwithdebinfo_appconfig_file} |
467 | DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest | 467 | DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest |
468 | COMMENT "Creating relwithdebinfo app config file" | 468 | COMMENT "Creating relwithdebinfo app config file" |
diff --git a/linden/indra/cmake/Python.cmake b/linden/indra/cmake/Python.cmake index e4257f4..6cdd559 100644 --- a/linden/indra/cmake/Python.cmake +++ b/linden/indra/cmake/Python.cmake | |||
@@ -6,15 +6,15 @@ if (WINDOWS) | |||
6 | # On Windows, explicitly avoid Cygwin Python. | 6 | # On Windows, explicitly avoid Cygwin Python. |
7 | 7 | ||
8 | find_program(PYTHON_EXECUTABLE | 8 | find_program(PYTHON_EXECUTABLE |
9 | NAMES python25.exe python23.exe python.exe | 9 | NAMES python27.exe python26.exe python25.exe python24.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.7\\InstallPath] | 12 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.7\\InstallPath] |
13 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.6\\InstallPath] | 13 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.6\\InstallPath] |
14 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.5\\InstallPath] | 14 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.5\\InstallPath] |
15 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.4\\InstallPath] | 15 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.4\\InstallPath] |
16 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.3\\InstallPath] | 16 | [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.3\\InstallPath] |
17 | [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.7\\InstallPath] | 17 | [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.7\\InstallPath] |
18 | [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.6\\InstallPath] | 18 | [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.6\\InstallPath] |
19 | [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.5\\InstallPath] | 19 | [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.5\\InstallPath] |
20 | [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.4\\InstallPath] | 20 | [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\2.4\\InstallPath] |
@@ -23,7 +23,7 @@ if (WINDOWS) | |||
23 | elseif (EXISTS /etc/debian_version) | 23 | elseif (EXISTS /etc/debian_version) |
24 | # On Debian and Ubuntu, avoid Python 2.4 if possible. | 24 | # On Debian and Ubuntu, avoid Python 2.4 if possible. |
25 | 25 | ||
26 | find_program(PYTHON_EXECUTABLE python2.5 python2.3 python PATHS /usr/bin) | 26 | find_program(PYTHON_EXECUTABLE python2.7 python2.6 python2.5 python2.3 python PATHS /usr/bin) |
27 | 27 | ||
28 | if (PYTHON_EXECUTABLE) | 28 | if (PYTHON_EXECUTABLE) |
29 | set(PYTHONINTERP_FOUND ON) | 29 | set(PYTHONINTERP_FOUND ON) |
@@ -33,7 +33,7 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | |||
33 | 33 | ||
34 | string(REPLACE ":" ";" PATH_LIST "$ENV{PATH}") | 34 | string(REPLACE ":" ";" PATH_LIST "$ENV{PATH}") |
35 | find_program(PYTHON_EXECUTABLE | 35 | find_program(PYTHON_EXECUTABLE |
36 | NAMES python python25 python24 python23 | 36 | NAMES python python27 python26 python25 python24 python23 |
37 | NO_DEFAULT_PATH # Avoid searching non-standard locations first | 37 | NO_DEFAULT_PATH # Avoid searching non-standard locations first |
38 | PATHS | 38 | PATHS |
39 | /bin | 39 | /bin |
@@ -54,3 +54,4 @@ if (NOT PYTHON_EXECUTABLE) | |||
54 | endif (NOT PYTHON_EXECUTABLE) | 54 | endif (NOT PYTHON_EXECUTABLE) |
55 | 55 | ||
56 | mark_as_advanced(PYTHON_EXECUTABLE) | 56 | mark_as_advanced(PYTHON_EXECUTABLE) |
57 | |||
diff --git a/linden/indra/cmake/UnixInstall.cmake b/linden/indra/cmake/UnixInstall.cmake index 0234dee..73f6714 100644 --- a/linden/indra/cmake/UnixInstall.cmake +++ b/linden/indra/cmake/UnixInstall.cmake | |||
@@ -21,11 +21,11 @@ if (INSTALL) | |||
21 | set(INSTALL_SHARE_DIR ${INSTALL_PREFIX}/share CACHE PATH | 21 | set(INSTALL_SHARE_DIR ${INSTALL_PREFIX}/share CACHE PATH |
22 | "Installation directory for read-only shared files.") | 22 | "Installation directory for read-only shared files.") |
23 | 23 | ||
24 | set(APP_BINARY_DIR ${INSTALL_LIBRARY_DIR}/imprudence-${viewer_VERSION} | 24 | set(APP_BINARY_DIR ${INSTALL_LIBRARY_DIR}/meta-impy-${viewer_VERSION} |
25 | CACHE PATH | 25 | CACHE PATH |
26 | "Installation directory for binaries.") | 26 | "Installation directory for binaries.") |
27 | 27 | ||
28 | set(APP_SHARE_DIR ${INSTALL_SHARE_DIR}/imprudence-${viewer_VERSION} | 28 | set(APP_SHARE_DIR ${INSTALL_SHARE_DIR}/meta-impy-${viewer_VERSION} |
29 | CACHE PATH | 29 | CACHE PATH |
30 | "Installation directory for read-only data files.") | 30 | "Installation directory for read-only data files.") |
31 | endif (INSTALL) | 31 | endif (INSTALL) |
diff --git a/linden/indra/cmake/Variables.cmake b/linden/indra/cmake/Variables.cmake index eb9c004..65fe841 100644 --- a/linden/indra/cmake/Variables.cmake +++ b/linden/indra/cmake/Variables.cmake | |||
@@ -1,6 +1,6 @@ | |||
1 | # -*- cmake -*- | 1 | # -*- cmake -*- |
2 | # | 2 | # |
3 | # Definitions of variables used throughout the Second Life build | 3 | # Definitions of variables used throughout the build |
4 | # process. | 4 | # process. |
5 | # | 5 | # |
6 | # Platform variables: | 6 | # Platform variables: |
@@ -42,6 +42,7 @@ endif (EXISTS ${CMAKE_SOURCE_DIR}/Server.cmake) | |||
42 | 42 | ||
43 | if (${CMAKE_SYSTEM_NAME} MATCHES "Windows") | 43 | if (${CMAKE_SYSTEM_NAME} MATCHES "Windows") |
44 | set(WINDOWS ON BOOL FORCE) | 44 | set(WINDOWS ON BOOL FORCE) |
45 | set(USE_OTR 0) | ||
45 | set(ARCH i686) | 46 | set(ARCH i686) |
46 | set(LL_ARCH ${ARCH}_win32) | 47 | set(LL_ARCH ${ARCH}_win32) |
47 | set(LL_ARCH_DIR ${ARCH}-win32) | 48 | set(LL_ARCH_DIR ${ARCH}-win32) |
@@ -73,14 +74,14 @@ endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | |||
73 | # Default deploy grid | 74 | # Default deploy grid |
74 | set(GRID agni CACHE STRING "Target Grid") | 75 | set(GRID agni CACHE STRING "Target Grid") |
75 | 76 | ||
76 | set(VIEWER ON CACHE BOOL "Build Second Life viewer.") | 77 | set(VIEWER ON CACHE BOOL "Build the viewer.") |
77 | set(VIEWER_CHANNEL "Imprudence" CACHE STRING "Viewer Channel Name") | 78 | set(VIEWER_CHANNEL "meta-impy" CACHE STRING "Viewer Channel Name") |
78 | set(VIEWER_LOGIN_CHANNEL ${VIEWER_CHANNEL} CACHE STRING "Fake login channel for A/B Testing") | 79 | set(VIEWER_LOGIN_CHANNEL ${VIEWER_CHANNEL} CACHE STRING "Fake login channel for A/B Testing") |
79 | 80 | ||
80 | set(STANDALONE OFF CACHE BOOL "Do not use Imprudence-supplied prebuilt libraries.") | 81 | set(STANDALONE OFF CACHE BOOL "Do not use meta-impy-supplied prebuilt libraries.") |
81 | 82 | ||
82 | if (NOT STANDALONE AND EXISTS ${CMAKE_SOURCE_DIR}/llphysics) | 83 | if (NOT STANDALONE AND EXISTS ${CMAKE_SOURCE_DIR}/llphysics) |
83 | set(SERVER ON CACHE BOOL "Build Second Life server software.") | 84 | set(SERVER ON CACHE BOOL "Build the server software.") |
84 | endif (NOT STANDALONE AND EXISTS ${CMAKE_SOURCE_DIR}/llphysics) | 85 | endif (NOT STANDALONE AND EXISTS ${CMAKE_SOURCE_DIR}/llphysics) |
85 | 86 | ||
86 | if (LINUX AND SERVER AND VIEWER) | 87 | if (LINUX AND SERVER AND VIEWER) |
diff --git a/linden/indra/cmake/gpg.vs.cmake b/linden/indra/cmake/gpg.vs.cmake new file mode 100644 index 0000000..a5220f4 --- /dev/null +++ b/linden/indra/cmake/gpg.vs.cmake | |||
@@ -0,0 +1,6 @@ | |||
1 | # -*- cmake -*- | ||
2 | |||
3 | # gpg.vs is just a place to put windows specific nastyness needed to | ||
4 | # make the libgcrypt, libgpg-error, and libotr compile. | ||
5 | |||
6 | set(gpg.vs_INCLUDE_DIRS ) | ||
diff --git a/linden/indra/cmake/libgcrypt.cmake b/linden/indra/cmake/libgcrypt.cmake new file mode 100644 index 0000000..0134618 --- /dev/null +++ b/linden/indra/cmake/libgcrypt.cmake | |||
@@ -0,0 +1,8 @@ | |||
1 | # -*- cmake -*- | ||
2 | |||
3 | set(LIBGCRYPT_INCLUDE_DIRS | ||
4 | ) | ||
5 | |||
6 | set(LIBGCRYPT_LIBRARIES | ||
7 | libgcrypt | ||
8 | ) | ||
diff --git a/linden/indra/cmake/libgpg-error.cmake b/linden/indra/cmake/libgpg-error.cmake new file mode 100644 index 0000000..71deeaa --- /dev/null +++ b/linden/indra/cmake/libgpg-error.cmake | |||
@@ -0,0 +1,8 @@ | |||
1 | # -*- cmake -*- | ||
2 | |||
3 | set(LIBGPG-ERROR_INCLUDE_DIRS | ||
4 | ) | ||
5 | |||
6 | set(LIBGPG-ERROR_LIBRARIES | ||
7 | libgpg-error | ||
8 | ) | ||
diff --git a/linden/indra/cmake/libotr.cmake b/linden/indra/cmake/libotr.cmake new file mode 100644 index 0000000..3c07be2 --- /dev/null +++ b/linden/indra/cmake/libotr.cmake | |||
@@ -0,0 +1,8 @@ | |||
1 | # -*- cmake -*- | ||
2 | |||
3 | set(LIBOTR_INCLUDE_DIRS | ||
4 | ) | ||
5 | |||
6 | set(LIBOTR_LIBRARIES | ||
7 | libotr | ||
8 | ) | ||
diff --git a/linden/indra/cmake/libotrb.cmake b/linden/indra/cmake/libotrb.cmake new file mode 100644 index 0000000..eb8522f --- /dev/null +++ b/linden/indra/cmake/libotrb.cmake | |||
@@ -0,0 +1,4 @@ | |||
1 | # -*- cmake -*- | ||
2 | include(Prebuilt) | ||
3 | |||
4 | set(OTR_LIBRARY otr) | ||