diff options
author | Jacek Antonelli | 2009-01-13 00:19:34 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-01-13 00:19:34 -0600 |
commit | 106b2a600c59404ef6bb95b77f8bbf271b659baa (patch) | |
tree | 4f9394f0ca34003347de3dffff40efd8a3a43c6c /linden/indra/newview/CMakeLists.txt | |
parent | Merge 1.1.0 alpha into quickfilter (diff) | |
parent | Merge commit 'mccabe/1.1.0a-gstreamer' into 1.1.0a (diff) | |
download | meta-impy-106b2a600c59404ef6bb95b77f8bbf271b659baa.zip meta-impy-106b2a600c59404ef6bb95b77f8bbf271b659baa.tar.gz meta-impy-106b2a600c59404ef6bb95b77f8bbf271b659baa.tar.bz2 meta-impy-106b2a600c59404ef6bb95b77f8bbf271b659baa.tar.xz |
Merge branch '1.1.0a-gstreamer' into next
Diffstat (limited to 'linden/indra/newview/CMakeLists.txt')
-rw-r--r-- | linden/indra/newview/CMakeLists.txt | 60 |
1 files changed, 35 insertions, 25 deletions
diff --git a/linden/indra/newview/CMakeLists.txt b/linden/indra/newview/CMakeLists.txt index ddf6897..0205ceb 100644 --- a/linden/indra/newview/CMakeLists.txt +++ b/linden/indra/newview/CMakeLists.txt | |||
@@ -8,6 +8,7 @@ include(BuildVersion) | |||
8 | include(DirectX) | 8 | include(DirectX) |
9 | include(ELFIO) | 9 | include(ELFIO) |
10 | include(FMOD) | 10 | include(FMOD) |
11 | include(OPENAL) | ||
11 | include(FindOpenGL) | 12 | include(FindOpenGL) |
12 | include(LLAudio) | 13 | include(LLAudio) |
13 | include(LLCharacter) | 14 | include(LLCharacter) |
@@ -31,7 +32,6 @@ include(NDOF) | |||
31 | include(TemplateCheck) | 32 | include(TemplateCheck) |
32 | include(UI) | 33 | include(UI) |
33 | include(UnixInstall) | 34 | include(UnixInstall) |
34 | include(LLKDU) | ||
35 | include(ViewerMiscLibs) | 35 | include(ViewerMiscLibs) |
36 | 36 | ||
37 | if (WINDOWS) | 37 | if (WINDOWS) |
@@ -56,6 +56,7 @@ include_directories( | |||
56 | ${LLXML_INCLUDE_DIRS} | 56 | ${LLXML_INCLUDE_DIRS} |
57 | ${LSCRIPT_INCLUDE_DIRS} | 57 | ${LSCRIPT_INCLUDE_DIRS} |
58 | ${LSCRIPT_INCLUDE_DIRS}/lscript_compile | 58 | ${LSCRIPT_INCLUDE_DIRS}/lscript_compile |
59 | ${GSTREAMER_INCLUDE_DIRS} | ||
59 | ) | 60 | ) |
60 | 61 | ||
61 | set(viewer_SOURCE_FILES | 62 | set(viewer_SOURCE_FILES |
@@ -430,6 +431,9 @@ set(viewer_SOURCE_FILES | |||
430 | pipeline.cpp | 431 | pipeline.cpp |
431 | ) | 432 | ) |
432 | 433 | ||
434 | set(VIEWER_BINARY_NAME "imprudence-bin" CACHE STRING | ||
435 | "The name of the viewer executable to create.") | ||
436 | |||
433 | if (LINUX) | 437 | if (LINUX) |
434 | # We can't set these flags for Darwin, because they get passed to | 438 | # We can't set these flags for Darwin, because they get passed to |
435 | # the PPC compiler. Ugh. | 439 | # the PPC compiler. Ugh. |
@@ -850,8 +854,8 @@ if (DARWIN) | |||
850 | secondlife.icns | 854 | secondlife.icns |
851 | macview.r | 855 | macview.r |
852 | gpu_table.txt | 856 | gpu_table.txt |
853 | Info-SecondLife.plist | 857 | Info-Imprudence.plist |
854 | SecondLife.nib/ | 858 | Imprudence.nib/ |
855 | # CMake doesn't seem to support Xcode language variants well just yet | 859 | # CMake doesn't seem to support Xcode language variants well just yet |
856 | English.lproj/InfoPlist.strings | 860 | English.lproj/InfoPlist.strings |
857 | English.lproj/language.txt | 861 | English.lproj/language.txt |
@@ -1239,8 +1243,13 @@ set_source_files_properties(${viewer_CHARACTER_FILES} | |||
1239 | 1243 | ||
1240 | list(APPEND viewer_SOURCE_FILES ${viewer_CHARACTER_FILES}) | 1244 | list(APPEND viewer_SOURCE_FILES ${viewer_CHARACTER_FILES}) |
1241 | 1245 | ||
1246 | |||
1247 | if (OPENAL) | ||
1248 | set(LLSTARTUP_COMPILE_FLAGS "${LLSTARTUP_COMPILE_FLAGS} -DLL_OPENAL") | ||
1249 | endif (OPENAL) | ||
1250 | |||
1242 | if (FMOD) | 1251 | if (FMOD) |
1243 | set_source_files_properties(llstartup.cpp PROPERTIES COMPILE_FLAGS -DLL_FMOD) | 1252 | set(LLSTARTUP_COMPILE_FLAGS "${LLSTARTUP_COMPILE_FLAGS} -DLL_FMOD") |
1244 | 1253 | ||
1245 | if (NOT WINDOWS) | 1254 | if (NOT WINDOWS) |
1246 | set(fmodwrapper_SOURCE_FILES fmodwrapper.cpp) | 1255 | set(fmodwrapper_SOURCE_FILES fmodwrapper.cpp) |
@@ -1260,6 +1269,8 @@ if (FMOD) | |||
1260 | endif (NOT WINDOWS) | 1269 | endif (NOT WINDOWS) |
1261 | endif (FMOD) | 1270 | endif (FMOD) |
1262 | 1271 | ||
1272 | set_source_files_properties(llstartup.cpp PROPERTIES COMPILE_FLAGS "${LLSTARTUP_COMPILE_FLAGS}") | ||
1273 | |||
1263 | list(APPEND viewer_SOURCE_FILES ${viewer_HEADER_FILES}) | 1274 | list(APPEND viewer_SOURCE_FILES ${viewer_HEADER_FILES}) |
1264 | 1275 | ||
1265 | set_source_files_properties(${viewer_HEADER_FILES} | 1276 | set_source_files_properties(${viewer_HEADER_FILES} |
@@ -1272,10 +1283,6 @@ add_executable(imprudence-bin | |||
1272 | ) | 1283 | ) |
1273 | check_message_template(imprudence-bin) | 1284 | check_message_template(imprudence-bin) |
1274 | 1285 | ||
1275 | if (LLKDU_LIBRARY) | ||
1276 | add_dependencies(imprudence-bin ${LLKDU_LIBRARY}) | ||
1277 | endif (LLKDU_LIBRARY) | ||
1278 | |||
1279 | set(PACKAGE OFF CACHE BOOL | 1286 | set(PACKAGE OFF CACHE BOOL |
1280 | "Add a package target that builds an installer package.") | 1287 | "Add a package target that builds an installer package.") |
1281 | 1288 | ||
@@ -1467,24 +1474,27 @@ if (DARWIN) | |||
1467 | ) | 1474 | ) |
1468 | 1475 | ||
1469 | if (PACKAGE) | 1476 | if (PACKAGE) |
1470 | add_custom_target(package | 1477 | add_custom_target(package ALL DEPENDS imprudence-bin) |
1471 | COMMAND | ||
1472 | ${PYTHON_EXECUTABLE} | ||
1473 | ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py | ||
1474 | --grid=${GRID} | ||
1475 | --configuration=${CMAKE_CFG_INTDIR} | ||
1476 | --channel=${VIEWER_CHANNEL} | ||
1477 | --login_channel=${VIEWER_CHANNEL} | ||
1478 | --source=${CMAKE_CURRENT_SOURCE_DIR} | ||
1479 | --artwork=${ARTWORK_DIR} | ||
1480 | --build=${CMAKE_CURRENT_BINARY_DIR} | ||
1481 | --dest=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${product}.app | ||
1482 | --touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/.${product}.touched | ||
1483 | DEPENDS | ||
1484 | imprudence-bin | ||
1485 | ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py | ||
1486 | ) | ||
1487 | add_dependencies(package mac-updater mac-crash-logger) | 1478 | add_dependencies(package mac-updater mac-crash-logger) |
1479 | |||
1480 | add_custom_command( | ||
1481 | TARGET package POST_BUILD | ||
1482 | COMMAND ${PYTHON_EXECUTABLE} | ||
1483 | ARGS | ||
1484 | ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py | ||
1485 | --grid=${GRID} | ||
1486 | --configuration=${CMAKE_CFG_INTDIR} | ||
1487 | --channel=${VIEWER_CHANNEL} | ||
1488 | --login_channel=${VIEWER_LOGIN_CHANNEL} | ||
1489 | --source=${CMAKE_CURRENT_SOURCE_DIR} | ||
1490 | --artwork=${ARTWORK_DIR} | ||
1491 | --build=${CMAKE_CURRENT_BINARY_DIR} | ||
1492 | --dest=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${product}.app | ||
1493 | --touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/.${product}.touched | ||
1494 | DEPENDS | ||
1495 | ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py | ||
1496 | ) | ||
1497 | |||
1488 | endif (PACKAGE) | 1498 | endif (PACKAGE) |
1489 | endif (DARWIN) | 1499 | endif (DARWIN) |
1490 | 1500 | ||