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.txt87
1 files changed, 77 insertions, 10 deletions
diff --git a/linden/indra/newview/CMakeLists.txt b/linden/indra/newview/CMakeLists.txt
index 0871d16..ecbeb9b 100644
--- a/linden/indra/newview/CMakeLists.txt
+++ b/linden/indra/newview/CMakeLists.txt
@@ -15,6 +15,24 @@ include(HUNSPELL)
15include(FindOpenGL) 15include(FindOpenGL)
16include(JsonCpp) 16include(JsonCpp)
17include(LLAddBuildTest) 17include(LLAddBuildTest)
18
19# [$PLOTR$]
20include(libgpg-error)
21include(libgcrypt)
22
23if (WINDOWS)
24 include(libotr)
25 # on windows always build libotr from source and statically link in libgcrypt and libgpg-error
26endif (WINDOWS)
27if (DARWIN OR LINUX)
28 if (STATIC_LIBOTR_ETC)
29 include(libotr) # to build libotr from source and statically link in libgcrypt and libgpg-error
30 else (STATIC_LIBOTR_ETC)
31 include(libotrb)
32 endif (STATIC_LIBOTR_ETC)
33endif (DARWIN OR LINUX)
34# [/$PLOTR$]
35
18include(LLAudio) 36include(LLAudio)
19include(LLCharacter) 37include(LLCharacter)
20include(LLCommon) 38include(LLCommon)
@@ -37,7 +55,6 @@ include(GooglePerfTools)
37include(TemplateCheck) 55include(TemplateCheck)
38include(UI) 56include(UI)
39include(UnixInstall) 57include(UnixInstall)
40include(ViewerArtwork)
41include(ViewerMiscLibs) 58include(ViewerMiscLibs)
42 59
43if (WINDOWS) 60if (WINDOWS)
@@ -67,6 +84,21 @@ include_directories(
67 ${LSCRIPT_INCLUDE_DIRS}/lscript_compile 84 ${LSCRIPT_INCLUDE_DIRS}/lscript_compile
68 ) 85 )
69 86
87# [$PLOTR$]
88if (WINDOWS)
89 include_directories(
90 ../gpg.vs/inc.vs
91 ../gpg.vs/libgpg-error-1.1.vs/custom
92 ../gpg.vs/libgcrypt-1.2.2.vs/custom
93 )
94endif (WINDOWS)
95include_directories(
96 ${LIBGPG-ERROR_INCLUDE_DIRS}
97 ${LIBGCRYPT_INCLUDE_DIRS}
98 ../libotr/libotr-3.2.0/src
99)
100# [/$PLOTR$]
101
70set(viewer_SOURCE_FILES 102set(viewer_SOURCE_FILES
71 lggautocorrectfloater.cpp 103 lggautocorrectfloater.cpp
72 lggautocorrect.cpp 104 lggautocorrect.cpp
@@ -83,6 +115,7 @@ set(viewer_SOURCE_FILES
83 floatergriddefault.cpp 115 floatergriddefault.cpp
84 floatergridmanager.cpp 116 floatergridmanager.cpp
85 floaterlocalassetbrowse.cpp 117 floaterlocalassetbrowse.cpp
118 floaterotr.cpp
86 floatervoicelicense.cpp 119 floatervoicelicense.cpp
87 hbfloatergrouptitles.cpp 120 hbfloatergrouptitles.cpp
88 hippogridmanager.cpp 121 hippogridmanager.cpp
@@ -509,9 +542,14 @@ set(viewer_SOURCE_FILES
509 wlfloaterwindlightsend.cpp 542 wlfloaterwindlightsend.cpp
510 wlretrievesettings.cpp 543 wlretrievesettings.cpp
511 wlsettingsmanager.cpp 544 wlsettingsmanager.cpp
545# [/$PLOTR$]
546 otr_wrapper.cpp
547 otr_floater_smp_dialog.cpp
548 otr_floater_smp_progress.cpp
549# [/$PLOTR$]
512 ) 550 )
513 551
514set(VIEWER_BINARY_NAME "imprudence-bin" CACHE STRING 552set(VIEWER_BINARY_NAME "meta-impy-bin" CACHE STRING
515 "The name of the viewer executable to create.") 553 "The name of the viewer executable to create.")
516 554
517if (LINUX) 555if (LINUX)
@@ -542,6 +580,7 @@ set(viewer_HEADER_FILES
542 floatergriddefault.h 580 floatergriddefault.h
543 floatergridmanager.h 581 floatergridmanager.h
544 floaterlocalassetbrowse.h 582 floaterlocalassetbrowse.h
583 floaterotr.h
545 floatervoicelicense.h 584 floatervoicelicense.h
546 hbfloatergrouptitles.h 585 hbfloatergrouptitles.h
547 hippogridmanager.h 586 hippogridmanager.h
@@ -982,6 +1021,11 @@ set(viewer_HEADER_FILES
982 wlfloaterwindlightsend.h 1021 wlfloaterwindlightsend.h
983 wlretrievesettings.h 1022 wlretrievesettings.h
984 wlsettingsmanager.h 1023 wlsettingsmanager.h
1024# [$PLOTR$]
1025 otr_wrapper.h
1026 otr_floater_smp_dialog.h
1027 otr_floater_smp_progress.h
1028# [/$PLOTR$]
985 ) 1029 )
986 1030
987source_group("CMake Rules" FILES ViewerInstall.cmake) 1031source_group("CMake Rules" FILES ViewerInstall.cmake)
@@ -1008,7 +1052,7 @@ if (DARWIN)
1008 macview.r 1052 macview.r
1009 gpu_table.txt 1053 gpu_table.txt
1010 packaging/mac/Info.plist.in 1054 packaging/mac/Info.plist.in
1011 packaging/mac/SecondLife.nib/ 1055 packaging/mac/viewer.nib/
1012 # CMake doesn't seem to support Xcode language variants well just yet 1056 # CMake doesn't seem to support Xcode language variants well just yet
1013 packaging/mac/English.lproj/InfoPlist.strings 1057 packaging/mac/English.lproj/InfoPlist.strings
1014 packaging/mac/English.lproj/language.txt 1058 packaging/mac/English.lproj/language.txt
@@ -1030,9 +1074,19 @@ if (LINUX)
1030 LIST(APPEND viewer_SOURCE_FILES llappviewerlinux.cpp) 1074 LIST(APPEND viewer_SOURCE_FILES llappviewerlinux.cpp)
1031 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed") 1075 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed")
1032 1076
1077 # [$PLOTR$]
1078 if (STATIC_LIBOTR_ETC) # defined in .../linden/indra/CMakeLists.txt
1079 set(viewer_LIBRARIES
1080 Xinerama
1081 ${LIBGPG-ERROR_LDBRARIES}
1082 ${LIBGCRYPT-ERROR_LDBRARIES}
1083 )
1084 else (STATIC_LIBOTR_ETC) # below for dynamically linked, unmodified libotr
1033 set(viewer_LIBRARIES 1085 set(viewer_LIBRARIES
1034 Xinerama 1086 Xinerama
1035 ) 1087 )
1088 endif (STATIC_LIBOTR_ETC)
1089 # [/$PLOTR$]
1036endif (LINUX) 1090endif (LINUX)
1037 1091
1038if (WINDOWS) 1092if (WINDOWS)
@@ -1074,7 +1128,7 @@ if (WINDOWS)
1074 res/arrowdrag.cur 1128 res/arrowdrag.cur
1075 res/circleandline.cur 1129 res/circleandline.cur
1076 res/imp_icon.ico 1130 res/imp_icon.ico
1077 res/imprudence_icon.png 1131 res/meta-impy_icon.png
1078 res/llarrow.cur 1132 res/llarrow.cur
1079 res/llarrowdrag.cur 1133 res/llarrowdrag.cur
1080 res/llarrowdragmulti.cur 1134 res/llarrowdragmulti.cur
@@ -1201,19 +1255,15 @@ set(viewer_APPSETTINGS_FILES
1201 app_settings/cmd_line.xml 1255 app_settings/cmd_line.xml
1202 app_settings/default_grids.xml 1256 app_settings/default_grids.xml
1203 app_settings/grass.xml 1257 app_settings/grass.xml
1204 app_settings/high_graphics.xml
1205 app_settings/keys.ini 1258 app_settings/keys.ini
1206 app_settings/keywords.ini 1259 app_settings/keywords.ini
1207 app_settings/logcontrol.xml 1260 app_settings/logcontrol.xml
1208 app_settings/low_graphics.xml
1209 app_settings/mid_graphics.xml
1210 app_settings/settings.xml 1261 app_settings/settings.xml
1211 app_settings/settings_crash_behavior.xml 1262 app_settings/settings_crash_behavior.xml
1212 app_settings/settings_files.xml 1263 app_settings/settings_files.xml
1213 app_settings/settings_per_account.xml 1264 app_settings/settings_per_account.xml
1214 app_settings/std_bump.ini 1265 app_settings/std_bump.ini
1215 app_settings/trees.xml 1266 app_settings/trees.xml
1216 app_settings/ultra_graphics.xml
1217 app_settings/viewerart.xml 1267 app_settings/viewerart.xml
1218 ${CMAKE_SOURCE_DIR}/../etc/message.xml 1268 ${CMAKE_SOURCE_DIR}/../etc/message.xml
1219 ${CMAKE_SOURCE_DIR}/../scripts/messages/message_template.msg 1269 ${CMAKE_SOURCE_DIR}/../scripts/messages/message_template.msg
@@ -1290,7 +1340,7 @@ add_executable(${VIEWER_BINARY_NAME}
1290 MACOSX_BUNDLE 1340 MACOSX_BUNDLE
1291 ${viewer_SOURCE_FILES} 1341 ${viewer_SOURCE_FILES}
1292 ) 1342 )
1293check_message_template(${VIEWER_BINARY_NAME}) 1343#check_message_template(${VIEWER_BINARY_NAME})
1294 1344
1295 1345
1296# NOTE: This variable is DEPRECATED, and should not be used anymore. 1346# NOTE: This variable is DEPRECATED, and should not be used anymore.
@@ -1393,7 +1443,25 @@ if (WINDOWS)
1393 endif (PACKAGE) 1443 endif (PACKAGE)
1394endif (WINDOWS) 1444endif (WINDOWS)
1395 1445
1446# [$PLOTR$]
1447if (WINDOWS)
1448 set(otr_link_libs ${LIBGPG-ERROR_LIBRARIES}
1449 ${LIBGCRYPT_LIBRARIES}
1450 ${LIBOTR_LIBRARIES}
1451 )
1452else (WINDOWS)
1453 if (STATIC_LIBOTR_ETC)
1454 set(otr_link_libs ${LIBOTR_LIBRARIES}
1455 ) # statically linked libotr, built from source
1456 else (STATIC_LIBOTR_ETC)
1457 set(otr_link_libs ${OTR_LIBRARY}
1458 )
1459 endif (STATIC_LIBOTR_ETC)
1460endif (WINDOWS)
1461# [/$PLOTR$]
1462
1396target_link_libraries(${VIEWER_BINARY_NAME} 1463target_link_libraries(${VIEWER_BINARY_NAME}
1464 ${otr_link_libs}
1397 ${LLAUDIO_LIBRARIES} 1465 ${LLAUDIO_LIBRARIES}
1398 ${LLCHARACTER_LIBRARIES} 1466 ${LLCHARACTER_LIBRARIES}
1399 ${LLIMAGE_LIBRARIES} 1467 ${LLIMAGE_LIBRARIES}
@@ -1439,7 +1507,6 @@ set(ARTWORK_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH
1439 1507
1440 1508
1441if (LINUX) 1509if (LINUX)
1442
1443 string(REPLACE "-bin" "-stripped" 1510 string(REPLACE "-bin" "-stripped"
1444 VIEWER_STRIPPED_NAME ${VIEWER_BINARY_NAME}) 1511 VIEWER_STRIPPED_NAME ${VIEWER_BINARY_NAME})
1445 1512