From b95b4a33bd49fca1d00b6f869d2bef9a517b4365 Mon Sep 17 00:00:00 2001 From: Nicky Date: Wed, 8 Aug 2012 20:17:03 +0200 Subject: [PATCH] Enable ndPhysicsstub so we get mesh upload again. --- indra/cmake/LLPhysicsExtensions.cmake | 22 ++++++++++++++++++---- indra/newview/CMakeLists.txt | 10 +++++++++- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/indra/cmake/LLPhysicsExtensions.cmake b/indra/cmake/LLPhysicsExtensions.cmake index 72ac35e02b..2c4ce77096 100644 --- a/indra/cmake/LLPhysicsExtensions.cmake +++ b/indra/cmake/LLPhysicsExtensions.cmake @@ -17,11 +17,25 @@ if (HAVOK) set(LLPHYSICSEXTENSIONS_SRC_DIR ${LIBS_PREBUILT_DIR}/llphysicsextensions/src) set(LLPHYSICSEXTENSIONS_LIBRARIES llphysicsextensions) + # include paths for LLs version and ours are different. + set(LLPHYSICSEXTENSIONS_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/llphysicsextensions) + # + else (HAVOK) - use_prebuilt_binary(llphysicsextensions_stub) - set(LLPHYSICSEXTENSIONS_SRC_DIR ${LIBS_PREBUILT_DIR}/llphysicsextensions/stub) - set(LLPHYSICSEXTENSIONS_LIBRARIES llphysicsextensionsstub) + use_prebuilt_binary( ndPhysicsStub ) + +# Don't set this variable, there is no need to build any stub source if using ndPhysicsStub +# set(LLPHYSICSEXTENSIONS_SRC_DIR ${LIBS_PREBUILT_DIR}/llphysicsextensions/stub) +# + + set(LLPHYSICSEXTENSIONS_LIBRARIES nd_hacdConvexDecomposition hacd nd_Pathing ) + + # include paths for LLs version and ours are different. + set(LLPHYSICSEXTENSIONS_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/ ) + # endif (HAVOK) -set(LLPHYSICSEXTENSIONS_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/llphysicsextensions) +# include paths for LLs version and ours are different. +#set(LLPHYSICSEXTENSIONS_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/llphysicsextensions) +# \ No newline at end of file diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index 02de70691e..dd0cd4c120 100644 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -47,7 +47,15 @@ include(GLOD) include(CMakeCopyIfDifferent) include(Growl) -add_subdirectory(${LLPHYSICSEXTENSIONS_SRC_DIR} llphysicsextensions) +# if using ndPhysicsstub this variable will be unset, we don't need to build any stub code viewer side in that case +if( LLPHYSICSEXTENSIONS_SRC_DIR ) +# + + add_subdirectory(${LLPHYSICSEXTENSIONS_SRC_DIR} llphysicsextensions) + +# +endif( LLPHYSICSEXTENSIONS_SRC_DIR ) +# include_directories( ${DBUSGLIB_INCLUDE_DIRS}