summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2011-12-12 10:02:12 -0800
committerTodd Stinson <stinson@lindenlab.com>2011-12-12 10:02:12 -0800
commitec52f62228ada7cbf482b6b29d069faa0cebc670 (patch)
treeadfd8f867f38e8ad90befc0ce7c2f2c48bce3b3e /indra
parentd3299410427015ef59683ce4ea33d807a936295c (diff)
Adding the ability to pull in the pathing library as a prebuilt dependency.
Diffstat (limited to 'indra')
-rw-r--r--indra/cmake/Havok.cmake52
-rw-r--r--indra/cmake/LLPathingLib.cmake16
-rw-r--r--indra/newview/CMakeLists.txt5
3 files changed, 73 insertions, 0 deletions
diff --git a/indra/cmake/Havok.cmake b/indra/cmake/Havok.cmake
new file mode 100644
index 0000000000..1b355792d0
--- /dev/null
+++ b/indra/cmake/Havok.cmake
@@ -0,0 +1,52 @@
+# -*- cmake -*-
+include(Prebuilt)
+
+use_prebuilt_binary(havok)
+set(Havok_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/libraries/include/havok/Source)
+if (CMAKE_BUILD_TYPE MATCHES "Debug")
+ set(HAVOK_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/libraries/i686-win32/lib/debug/havok)
+else (CMAKE_BUILD_TYPE MATCHES "Debug")
+ set(HAVOK_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/libraries/i686-win32/lib/release/havok)
+endif (CMAKE_BUILD_TYPE MATCHES "Debug")
+
+find_library(HK_BASE_LIB hkBase PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_COMPAT_LIB hkCompat PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_GEOMETRY_UTILITIES_LIB hkGeometryUtilities PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_INTERNAL_LIB hkInternal PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_SERIALIZE_LIB hkSerialize PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_SCENEDATA_LIB hkSceneData PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_PHYS_COLLIDE_LIB hkpCollide PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_PHYS_UTILITIES_LIB hkpUtilities PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_PHYS_CONSTRAINTSOLVER_LIB hkpConstraintSolver PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_PHYS_DYNAMICS_LIB hkpDynamics PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_PHYS_INTERNAL_LIB hkpInternal PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_AI_INTERNAL_LIB hkaiInternal PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_AI_PATHFINDING_LIB hkaiPathfinding PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_AI_AIPHYSICSBRIDGE_LIB hkaiaiphysicsbridge PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_PHYS_UTILITIES_LIB hkputilities PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_CD_INTERNAL_LIB hkcdinternal PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_PHYS_VEHICLE_LIB hkpVehicle PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_VISUALIZE_LIB hkVisualize PATHS ${HAVOK_LIBRARY_PATH})
+find_library(HK_AI_VISUALIZE_LIB hkaiVisualize PATHS ${HAVOK_LIBRARY_PATH})
+
+set(HK_LIBRARIES
+ ${HK_BASE_LIB}
+ ${HK_COMPAT_LIB}
+ ${HK_GEOMETRY_UTILITIES_LIB}
+ ${HK_INTERNAL_LIB}
+ ${HK_SERIALIZE_LIB}
+ ${HK_SCENEDATA_LIB}
+ ${HK_PHYS_COLLIDE_LIB}
+ ${HK_PHYS_UTILITIES_LIB}
+ ${HK_PHYS_CONSTRAINTSOLVER_LIB}
+ ${HK_PHYS_DYNAMICS_LIB}
+ ${HK_PHYS_INTERNAL_LIB}
+ ${HK_AI_INTERNAL_LIB}
+ ${HK_AI_PATHFINDING_LIB}
+ ${HK_AI_AIPHYSICSBRIDGE_LIB}
+ ${HK_PHYS_UTILITIES_LIB}
+ ${HK_CD_INTERNAL_LIB}
+ ${HK_PHYS_VEHICLE_LIB}
+ ${HK_VISUALIZE_LIB}
+ ${HK_AI_VISUALIZE_LIB}
+)
diff --git a/indra/cmake/LLPathingLib.cmake b/indra/cmake/LLPathingLib.cmake
new file mode 100644
index 0000000000..b92190ad0a
--- /dev/null
+++ b/indra/cmake/LLPathingLib.cmake
@@ -0,0 +1,16 @@
+# -*- cmake -*-
+include(Prebuilt)
+
+use_prebuilt_binary(llpathinglib)
+set(LLPATHING_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/libraries/include)
+if (CMAKE_BUILD_TYPE MATCHES "Debug")
+ set(LLPATHING_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/lib/debug)
+else (CMAKE_BUILD_TYPE MATCHES "Debug")
+ set(LLPATHING_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/lib/release)
+endif (CMAKE_BUILD_TYPE MATCHES "Debug")
+
+find_library(LL_PATHING_LIB llpathinglib PATHS ${LLPATHING_LIBRARY_PATH})
+
+set(LLPATHING_LIBRARIES
+ ${LL_PATHING_LIB}
+)
diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt
index c998ab351c..c1fe1729e5 100644
--- a/indra/newview/CMakeLists.txt
+++ b/indra/newview/CMakeLists.txt
@@ -13,6 +13,7 @@ include(EXPAT)
include(FMOD)
include(OPENAL)
include(FindOpenGL)
+include(Havok)
include(JsonCpp)
include(LLAudio)
include(LLCharacter)
@@ -23,6 +24,7 @@ include(LLImageJ2COJ)
include(LLInventory)
include(LLMath)
include(LLMessage)
+include(LLPathingLib)
include(LLPlugin)
include(LLPrimitive)
include(LLRender)
@@ -52,6 +54,7 @@ include_directories(
${LLCHARACTER_INCLUDE_DIRS}
${LLCOMMON_INCLUDE_DIRS}
${LLCONVEXDECOMP_INCLUDE_DIRS}
+ ${LLPATHING_INCLUDE_DIRS}
${FMOD_INCLUDE_DIR}
${LLIMAGE_INCLUDE_DIRS}
${LLKDU_INCLUDE_DIRS}
@@ -1739,6 +1742,8 @@ endif (WINDOWS)
# To work around this, higher level modules should be listed before the modules
# that they depend upon. -brad
target_link_libraries(${VIEWER_BINARY_NAME}
+ ${LLPATHING_LIBRARIES}
+ ${HK_LIBRARIES}
${UPDATER_LIBRARIES}
${GOOGLE_PERFTOOLS_LIBRARIES}
${LLAUDIO_LIBRARIES}