aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/CMakeLists.txt')
-rw-r--r--linden/indra/newview/CMakeLists.txt62
1 files changed, 40 insertions, 22 deletions
diff --git a/linden/indra/newview/CMakeLists.txt b/linden/indra/newview/CMakeLists.txt
index f971f97..93c6e5f 100644
--- a/linden/indra/newview/CMakeLists.txt
+++ b/linden/indra/newview/CMakeLists.txt
@@ -5,6 +5,7 @@ project(viewer)
5include(00-Common) 5include(00-Common)
6include(Boost) 6include(Boost)
7include(BuildVersion) 7include(BuildVersion)
8include(DBusGlib)
8include(DirectX) 9include(DirectX)
9include(ELFIO) 10include(ELFIO)
10include(FMOD) 11include(FMOD)
@@ -124,6 +125,7 @@ set(viewer_SOURCE_FILES
124 llfloateravatarinfo.cpp 125 llfloateravatarinfo.cpp
125 llfloateravatarpicker.cpp 126 llfloateravatarpicker.cpp
126 llfloateravatartextures.cpp 127 llfloateravatartextures.cpp
128 llfloaterbeacons.cpp
127 llfloaterbuildoptions.cpp 129 llfloaterbuildoptions.cpp
128 llfloaterbulkpermission.cpp 130 llfloaterbulkpermission.cpp
129 llfloaterbump.cpp 131 llfloaterbump.cpp
@@ -199,6 +201,7 @@ set(viewer_SOURCE_FILES
199 llglsandbox.cpp 201 llglsandbox.cpp
200 llgroupmgr.cpp 202 llgroupmgr.cpp
201 llgroupnotify.cpp 203 llgroupnotify.cpp
204 llhomelocationresponder.cpp
202 llhoverview.cpp 205 llhoverview.cpp
203 llhudeffectbeam.cpp 206 llhudeffectbeam.cpp
204 llhudeffect.cpp 207 llhudeffect.cpp
@@ -517,6 +520,7 @@ set(viewer_HEADER_FILES
517 llfloateravatarinfo.h 520 llfloateravatarinfo.h
518 llfloateravatarpicker.h 521 llfloateravatarpicker.h
519 llfloateravatartextures.h 522 llfloateravatartextures.h
523 llfloaterbeacons.h
520 llfloaterbuildoptions.h 524 llfloaterbuildoptions.h
521 llfloaterbulkpermission.h 525 llfloaterbulkpermission.h
522 llfloaterbump.h 526 llfloaterbump.h
@@ -591,6 +595,7 @@ set(viewer_HEADER_FILES
591 llgivemoney.h 595 llgivemoney.h
592 llgroupmgr.h 596 llgroupmgr.h
593 llgroupnotify.h 597 llgroupnotify.h
598 llhomelocationresponder.h
594 llhoverview.h 599 llhoverview.h
595 llhudeffect.h 600 llhudeffect.h
596 llhudeffectbeam.h 601 llhudeffectbeam.h
@@ -873,6 +878,7 @@ endif (DARWIN)
873 878
874if (LINUX) 879if (LINUX)
875 LIST(APPEND viewer_SOURCE_FILES llappviewerlinux.cpp) 880 LIST(APPEND viewer_SOURCE_FILES llappviewerlinux.cpp)
881 LIST(APPEND viewer_SOURCE_FILES llappviewerlinux_api_dbus.cpp)
876 LIST(APPEND CMAKE_EXE_LINKER_FLAGS -Wl,--as-needed) 882 LIST(APPEND CMAKE_EXE_LINKER_FLAGS -Wl,--as-needed)
877 883
878 set(viewer_LIBRARIES 884 set(viewer_LIBRARIES
@@ -1022,6 +1028,7 @@ set(viewer_XUI_FILES
1022 skins/default/xui/en-us/floater_audio_volume.xml 1028 skins/default/xui/en-us/floater_audio_volume.xml
1023 skins/default/xui/en-us/floater_avatar_picker.xml 1029 skins/default/xui/en-us/floater_avatar_picker.xml
1024 skins/default/xui/en-us/floater_avatar_textures.xml 1030 skins/default/xui/en-us/floater_avatar_textures.xml
1031 skins/default/xui/en-us/floater_beacons.xml
1025 skins/default/xui/en-us/floater_build_options.xml 1032 skins/default/xui/en-us/floater_build_options.xml
1026 skins/default/xui/en-us/floater_bulk_perms.xml 1033 skins/default/xui/en-us/floater_bulk_perms.xml
1027 skins/default/xui/en-us/floater_bumps.xml 1034 skins/default/xui/en-us/floater_bumps.xml
@@ -1241,6 +1248,16 @@ set_source_files_properties(${viewer_CHARACTER_FILES}
1241 1248
1242list(APPEND viewer_SOURCE_FILES ${viewer_CHARACTER_FILES}) 1249list(APPEND viewer_SOURCE_FILES ${viewer_CHARACTER_FILES})
1243 1250
1251if (WINDOWS)
1252 file(GLOB viewer_INSTALLER_FILES installers/windows/*.nsi)
1253
1254 source_group("Installer Files" FILES ${viewer_INSTALLER_FILES})
1255
1256 set_source_files_properties(${viewer_INSTALLER_FILES}
1257 PROPERTIES HEADER_FILE_ONLY TRUE)
1258
1259 list(APPEND viewer_SOURCE_FILES ${viewer_INSTALLER_FILES})
1260endif (WINDOWS)
1244 1261
1245if (OPENAL) 1262if (OPENAL)
1246 set(LLSTARTUP_COMPILE_FLAGS "${LLSTARTUP_COMPILE_FLAGS} -DLL_OPENAL") 1263 set(LLSTARTUP_COMPILE_FLAGS "${LLSTARTUP_COMPILE_FLAGS} -DLL_OPENAL")
@@ -1260,6 +1277,7 @@ if (FMOD)
1260 PROPERTIES 1277 PROPERTIES
1261 BUILD_WITH_INSTALL_RPATH 1 1278 BUILD_WITH_INSTALL_RPATH 1
1262 INSTALL_NAME_DIR "@executable_path/../Resources" 1279 INSTALL_NAME_DIR "@executable_path/../Resources"
1280 LINK_FLAGS "-unexported_symbols_list ../newview/fmod_hidden_symbols.exp"
1263 ) 1281 )
1264 endif (DARWIN) 1282 endif (DARWIN)
1265 set(FMODWRAPPER_LIBRARY fmodwrapper) 1283 set(FMODWRAPPER_LIBRARY fmodwrapper)
@@ -1274,24 +1292,24 @@ list(APPEND viewer_SOURCE_FILES ${viewer_HEADER_FILES})
1274set_source_files_properties(${viewer_HEADER_FILES} 1292set_source_files_properties(${viewer_HEADER_FILES}
1275 PROPERTIES HEADER_FILE_ONLY TRUE) 1293 PROPERTIES HEADER_FILE_ONLY TRUE)
1276 1294
1277add_executable(imprudence-bin 1295add_executable(${VIEWER_BINARY_NAME}
1278 WIN32 1296 WIN32
1279 MACOSX_BUNDLE 1297 MACOSX_BUNDLE
1280 ${viewer_SOURCE_FILES} 1298 ${viewer_SOURCE_FILES}
1281 ) 1299 )
1282check_message_template(imprudence-bin) 1300check_message_template(${VIEWER_BINARY_NAME})
1283 1301
1284set(PACKAGE OFF CACHE BOOL 1302set(PACKAGE OFF CACHE BOOL
1285 "Add a package target that builds an installer package.") 1303 "Add a package target that builds an installer package.")
1286 1304
1287if (WINDOWS) 1305if (WINDOWS)
1288 if(MSVC71) 1306 if(MSVC71)
1289 set(release_flags "/MAP:Release/imprudence-bin.map /MAPINFO:LINES") 1307 set(release_flags "/MAP:Release/${VIEWER_BINARY_NAME}.map /MAPINFO:LINES")
1290 else(MSVC71) 1308 else(MSVC71)
1291 set(release_flags "/MAP:Release/imprudence-bin.map") 1309 set(release_flags "/MAP:Release/${VIEWER_BINARY_NAME}.map")
1292 endif(MSVC71) 1310 endif(MSVC71)
1293 1311
1294 set_target_properties(imprudence-bin 1312 set_target_properties(${VIEWER_BINARY_NAME}
1295 PROPERTIES 1313 PROPERTIES
1296 LINK_FLAGS "/debug /NODEFAULTLIB:MSVCRT /SUBSYSTEM:WINDOWS" 1314 LINK_FLAGS "/debug /NODEFAULTLIB:MSVCRT /SUBSYSTEM:WINDOWS"
1297 LINK_FLAGS_DEBUG "/NODEFAULTLIB:LIBCMT /NODEFAULTLIB:MSVCRTD" 1315 LINK_FLAGS_DEBUG "/NODEFAULTLIB:LIBCMT /NODEFAULTLIB:MSVCRTD"
@@ -1301,20 +1319,20 @@ if (WINDOWS)
1301 # sets the 'working directory' for debugging from visual studio. 1319 # sets the 'working directory' for debugging from visual studio.
1302 if (NOT UNATTENDED) 1320 if (NOT UNATTENDED)
1303 add_custom_command( 1321 add_custom_command(
1304 TARGET imprudence-bin PRE_BUILD 1322 TARGET ${VIEWER_BINARY_NAME} PRE_BUILD
1305 COMMAND ${CMAKE_SOURCE_DIR}/tools/vstool/vstool.exe 1323 COMMAND ${CMAKE_SOURCE_DIR}/tools/vstool/vstool.exe
1306 ARGS 1324 ARGS
1307 --solution 1325 --solution
1308 ${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}.sln 1326 ${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}.sln
1309 --workingdir 1327 --workingdir
1310 imprudence-bin 1328 ${VIEWER_BINARY_NAME}
1311 ${CMAKE_CURRENT_SOURCE_DIR} 1329 ${CMAKE_CURRENT_SOURCE_DIR}
1312 COMMENT "Setting the imprudence-bin working directory for debugging." 1330 COMMENT "Setting the ${VIEWER_BINARY_NAME} working directory for debugging."
1313 ) 1331 )
1314 endif (NOT UNATTENDED) 1332 endif (NOT UNATTENDED)
1315 1333
1316 add_custom_command( 1334 add_custom_command(
1317 TARGET imprudence-bin PRE_BUILD 1335 TARGET ${VIEWER_BINARY_NAME} PRE_BUILD
1318 COMMAND ${CMAKE_COMMAND} 1336 COMMAND ${CMAKE_COMMAND}
1319 ARGS 1337 ARGS
1320 -E 1338 -E
@@ -1325,7 +1343,7 @@ if (WINDOWS)
1325 ) 1343 )
1326 1344
1327 add_custom_command( 1345 add_custom_command(
1328 TARGET imprudence-bin PRE_BUILD 1346 TARGET ${VIEWER_BINARY_NAME} PRE_BUILD
1329 COMMAND ${CMAKE_COMMAND} 1347 COMMAND ${CMAKE_COMMAND}
1330 ARGS 1348 ARGS
1331 -E 1349 -E
@@ -1335,10 +1353,10 @@ if (WINDOWS)
1335 COMMENT "Copying message.xml to the runtime folder." 1353 COMMENT "Copying message.xml to the runtime folder."
1336 ) 1354 )
1337 1355
1338 add_dependencies(imprudence-bin copy_win_libs) 1356 add_dependencies(${VIEWER_BINARY_NAME} copy_win_libs)
1339 1357
1340 if (EXISTS ${CMAKE_SOURCE_DIR}/copy_win_scripts) 1358 if (EXISTS ${CMAKE_SOURCE_DIR}/copy_win_scripts)
1341 add_dependencies(imprudence-bin copy_win_scripts) 1359 add_dependencies(${VIEWER_BINARY_NAME} copy_win_scripts)
1342 endif (EXISTS ${CMAKE_SOURCE_DIR}/copy_win_scripts) 1360 endif (EXISTS ${CMAKE_SOURCE_DIR}/copy_win_scripts)
1343 1361
1344 add_custom_command( 1362 add_custom_command(
@@ -1348,14 +1366,14 @@ if (WINDOWS)
1348 ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py 1366 ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
1349 --configuration=${CMAKE_CFG_INTDIR} 1367 --configuration=${CMAKE_CFG_INTDIR}
1350 --channel=${VIEWER_CHANNEL} 1368 --channel=${VIEWER_CHANNEL}
1351 --login_channel=${VIEWER_CHANNEL} 1369 --login_channel=${VIEWER_LOGIN_CHANNEL}
1352 --grid=${GRID} 1370 --grid=${GRID}
1353 --source=${CMAKE_CURRENT_SOURCE_DIR} 1371 --source=${CMAKE_CURRENT_SOURCE_DIR}
1354 --artwork=${ARTWORK_DIR} 1372 --artwork=${ARTWORK_DIR}
1355 --build=${CMAKE_CURRENT_BINARY_DIR} 1373 --build=${CMAKE_CURRENT_BINARY_DIR}
1356 --dest=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR} 1374 --dest=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}
1357 --touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/touched.bat 1375 --touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/touched.bat
1358 DEPENDS imprudence-bin ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py 1376 DEPENDS ${VIEWER_BINARY_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
1359 ) 1377 )
1360 if (PACKAGE) 1378 if (PACKAGE)
1361 add_custom_target(package ALL DEPENDS ${CMAKE_CFG_INTDIR}/touched.bat) 1379 add_custom_target(package ALL DEPENDS ${CMAKE_CFG_INTDIR}/touched.bat)
@@ -1363,7 +1381,7 @@ if (WINDOWS)
1363 endif (PACKAGE) 1381 endif (PACKAGE)
1364endif (WINDOWS) 1382endif (WINDOWS)
1365 1383
1366target_link_libraries(imprudence-bin 1384target_link_libraries(${VIEWER_BINARY_NAME}
1367 ${LLAUDIO_LIBRARIES} 1385 ${LLAUDIO_LIBRARIES}
1368 ${LLCHARACTER_LIBRARIES} 1386 ${LLCHARACTER_LIBRARIES}
1369 ${LLIMAGE_LIBRARIES} 1387 ${LLIMAGE_LIBRARIES}
@@ -1385,6 +1403,7 @@ target_link_libraries(imprudence-bin
1385 ${BOOST_PROGRAM_OPTIONS_LIBRARY} 1403 ${BOOST_PROGRAM_OPTIONS_LIBRARY}
1386 ${BOOST_REGEX_LIBRARY} 1404 ${BOOST_REGEX_LIBRARY}
1387 ${BOOST_SIGNALS_LIBRARY} 1405 ${BOOST_SIGNALS_LIBRARY}
1406 ${DBUSGLIB_LIBRARIES}
1388 ${OPENGL_LIBRARIES} 1407 ${OPENGL_LIBRARIES}
1389 ${FMODWRAPPER_LIBRARY} 1408 ${FMODWRAPPER_LIBRARY}
1390 ${OPENGL_LIBRARIES} 1409 ${OPENGL_LIBRARIES}
@@ -1395,7 +1414,6 @@ target_link_libraries(imprudence-bin
1395 ${NDOF_LIBRARY} 1414 ${NDOF_LIBRARY}
1396 ${WINDOWS_LIBRARIES} 1415 ${WINDOWS_LIBRARIES}
1397 ${XMLRPCEPI_LIBRARIES} 1416 ${XMLRPCEPI_LIBRARIES}
1398 ${ZLIB_LIBRARIES}
1399 ${ELFIO_LIBRARIES} 1417 ${ELFIO_LIBRARIES}
1400 ) 1418 )
1401 1419
@@ -1409,7 +1427,7 @@ if (LINUX)
1409 add_custom_command( 1427 add_custom_command(
1410 OUTPUT imprudence-stripped 1428 OUTPUT imprudence-stripped
1411 COMMAND strip 1429 COMMAND strip
1412 ARGS --strip-debug -o imprudence-stripped imprudence-bin 1430 ARGS --strip-debug -o imprudence-stripped ${VIEWER_BINARY_NAME}
1413 DEPENDS imprudence-bin 1431 DEPENDS imprudence-bin
1414 ) 1432 )
1415 1433
@@ -1422,7 +1440,7 @@ if (LINUX)
1422 ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py 1440 ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
1423 --grid=${GRID} 1441 --grid=${GRID}
1424 --channel=${VIEWER_CHANNEL} 1442 --channel=${VIEWER_CHANNEL}
1425 --login_channel=${VIEWER_CHANNEL} 1443 --login_channel=${VIEWER_LOGIN_CHANNEL}
1426 --installer_name=${product} 1444 --installer_name=${product}
1427 --arch=${ARCH} 1445 --arch=${ARCH}
1428 --source=${CMAKE_CURRENT_SOURCE_DIR} 1446 --source=${CMAKE_CURRENT_SOURCE_DIR}
@@ -1442,7 +1460,7 @@ endif (LINUX)
1442if (DARWIN) 1460if (DARWIN)
1443 set(product "Imprudence") 1461 set(product "Imprudence")
1444 set_target_properties( 1462 set_target_properties(
1445 imprudence-bin 1463 ${VIEWER_BINARY_NAME}
1446 PROPERTIES 1464 PROPERTIES
1447 OUTPUT_NAME "${product}" 1465 OUTPUT_NAME "${product}"
1448 MACOSX_BUNDLE_INFO_STRING "info string - localize me" 1466 MACOSX_BUNDLE_INFO_STRING "info string - localize me"
@@ -1456,7 +1474,7 @@ if (DARWIN)
1456 ) 1474 )
1457 1475
1458 add_custom_command( 1476 add_custom_command(
1459 TARGET imprudence-bin POST_BUILD 1477 TARGET ${VIEWER_BINARY_NAME} POST_BUILD
1460 COMMAND ${PYTHON_EXECUTABLE} 1478 COMMAND ${PYTHON_EXECUTABLE}
1461 ARGS 1479 ARGS
1462 ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py 1480 ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
@@ -1467,11 +1485,11 @@ if (DARWIN)
1467 --artwork=${ARTWORK_DIR} 1485 --artwork=${ARTWORK_DIR}
1468 --build=${CMAKE_CURRENT_BINARY_DIR} 1486 --build=${CMAKE_CURRENT_BINARY_DIR}
1469 --dest=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${product}.app 1487 --dest=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${product}.app
1470 DEPENDS imprudence-bin ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py 1488 DEPENDS ${VIEWER_BINARY_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
1471 ) 1489 )
1472 1490
1473 if (PACKAGE) 1491 if (PACKAGE)
1474 add_custom_target(package ALL DEPENDS imprudence-bin) 1492 add_custom_target(package ALL DEPENDS ${VIEWER_BINARY_NAME})
1475 add_dependencies(package mac-updater mac-crash-logger) 1493 add_dependencies(package mac-updater mac-crash-logger)
1476 1494
1477 add_custom_command( 1495 add_custom_command(