diff --git a/indra/CMakeLists.txt b/indra/CMakeLists.txt index 4b7b36735c..7b7e7c8348 100644 --- a/indra/CMakeLists.txt +++ b/indra/CMakeLists.txt @@ -36,6 +36,11 @@ else (OPENSIM) endif() message("compiling without OpenSim support") endif (OPENSIM) + +if (HAVOK_TPV) + add_definitions(-DHAVOK_TPV=1) + message("compiling with Havok libraries") +endif (HAVOK_TPV) # # Support for test builds diff --git a/indra/cmake/Variables.cmake b/indra/cmake/Variables.cmake index b74990ce7d..ea98beedb6 100644 --- a/indra/cmake/Variables.cmake +++ b/indra/cmake/Variables.cmake @@ -221,7 +221,7 @@ set(USE_PRECOMPILED_HEADERS ON CACHE BOOL "Enable use of precompiled header dire # When using Havok, we have to turn OpenSim support off if( HAVOK_TPV ) if( OPENSIM ) - message( "Compiling with Havok libraries, disabling OpenSim support" ) + message( "compiling with Havok libraries, disabling OpenSim support" ) endif( OPENSIM ) set( OPENSIM OFF ) diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index d680580d86..01551e55c3 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -2055,7 +2055,7 @@ bool LLAppViewer::cleanup() // FIRE-8385 Crash on exit in Havok. It is hard to say why it happens, as we only have the binary Havok blob. This is a hack around it. // Due to the fact the process is going to die anyway, the OS will clean up any reources left by not calling quitSystem. // The OpenSim version does not use Havok, it is okay to call shutdown then. -#ifdef OPENSIM +#ifndef HAVOK_TPV // shut down Havok LLPhysicsExtensions::quitSystem(); #endif // @@ -3694,10 +3694,12 @@ LLSD LLAppViewer::getViewerInfo() const //} // FIRE-8273: Add Open-sim indicator to About floater -#ifdef OPENSIM +#if defined OPENSIM info["BUILD_TYPE"] = LLTrans::getString("FSWithOpensim"); -#else +#elif defined HAVOK_TPV info["BUILD_TYPE"] = LLTrans::getString("FSWithHavok"); +#else + info["BUILD_TYPE"] = std::string(); #endif // OPENSIM // info["SKIN"] = gSavedSettings.getString("FSInternalSkinCurrent"); diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index c965f933b1..f440092db4 100644 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -410,7 +410,7 @@ BOOL LLFloaterModelPreview::postBuild() { validate_url = llformat("http://secondlife.%s.lindenlab.com/my/account/mesh.php", current_grid.c_str()); } -#ifdef OPENSIM // +#ifndef HAVOK_TPV // else { // TODO: Opensim: Set it to something reasonable diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp index 74d60ed234..943e3baa89 100644 --- a/indra/newview/llfloaterpathfindingconsole.cpp +++ b/indra/newview/llfloaterpathfindingconsole.cpp @@ -58,7 +58,7 @@ #include "pipeline.h" // For NoHavok alert -#ifdef OPENSIM +#ifndef HAVOK_TPV #include "llnotificationsutil.h" #endif // OPENSIM // @@ -251,7 +251,7 @@ void LLFloaterPathfindingConsole::onOpen(const LLSD& pKey) switchIntoTestPathMode(); } // Show an alert dialog if using the Opensim viewer as functionality will be limited without Havok -#ifdef OPENSIM +#ifndef HAVOK_TPV LLSD args; args["FEATURE"] = getString("no_havok"); LLNotificationsUtil::add("NoHavok", args);