aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/CMakeLists.txt
diff options
context:
space:
mode:
authorJacek Antonelli2009-01-13 00:19:34 -0600
committerJacek Antonelli2009-01-13 00:19:34 -0600
commit106b2a600c59404ef6bb95b77f8bbf271b659baa (patch)
tree4f9394f0ca34003347de3dffff40efd8a3a43c6c /linden/indra/newview/CMakeLists.txt
parentMerge 1.1.0 alpha into quickfilter (diff)
parentMerge commit 'mccabe/1.1.0a-gstreamer' into 1.1.0a (diff)
downloadmeta-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.txt60
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)
8include(DirectX) 8include(DirectX)
9include(ELFIO) 9include(ELFIO)
10include(FMOD) 10include(FMOD)
11include(OPENAL)
11include(FindOpenGL) 12include(FindOpenGL)
12include(LLAudio) 13include(LLAudio)
13include(LLCharacter) 14include(LLCharacter)
@@ -31,7 +32,6 @@ include(NDOF)
31include(TemplateCheck) 32include(TemplateCheck)
32include(UI) 33include(UI)
33include(UnixInstall) 34include(UnixInstall)
34include(LLKDU)
35include(ViewerMiscLibs) 35include(ViewerMiscLibs)
36 36
37if (WINDOWS) 37if (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
61set(viewer_SOURCE_FILES 62set(viewer_SOURCE_FILES
@@ -430,6 +431,9 @@ set(viewer_SOURCE_FILES
430 pipeline.cpp 431 pipeline.cpp
431 ) 432 )
432 433
434set(VIEWER_BINARY_NAME "imprudence-bin" CACHE STRING
435 "The name of the viewer executable to create.")
436
433if (LINUX) 437if (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
1240list(APPEND viewer_SOURCE_FILES ${viewer_CHARACTER_FILES}) 1244list(APPEND viewer_SOURCE_FILES ${viewer_CHARACTER_FILES})
1241 1245
1246
1247if (OPENAL)
1248 set(LLSTARTUP_COMPILE_FLAGS "${LLSTARTUP_COMPILE_FLAGS} -DLL_OPENAL")
1249endif (OPENAL)
1250
1242if (FMOD) 1251if (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)
1261endif (FMOD) 1270endif (FMOD)
1262 1271
1272set_source_files_properties(llstartup.cpp PROPERTIES COMPILE_FLAGS "${LLSTARTUP_COMPILE_FLAGS}")
1273
1263list(APPEND viewer_SOURCE_FILES ${viewer_HEADER_FILES}) 1274list(APPEND viewer_SOURCE_FILES ${viewer_HEADER_FILES})
1264 1275
1265set_source_files_properties(${viewer_HEADER_FILES} 1276set_source_files_properties(${viewer_HEADER_FILES}
@@ -1272,10 +1283,6 @@ add_executable(imprudence-bin
1272 ) 1283 )
1273check_message_template(imprudence-bin) 1284check_message_template(imprudence-bin)
1274 1285
1275if (LLKDU_LIBRARY)
1276 add_dependencies(imprudence-bin ${LLKDU_LIBRARY})
1277endif (LLKDU_LIBRARY)
1278
1279set(PACKAGE OFF CACHE BOOL 1286set(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)
1489endif (DARWIN) 1499endif (DARWIN)
1490 1500