Skip to content
Snippets Groups Projects
Commit 1b6cd23a authored by Brad Linden's avatar Brad Linden
Browse files

CMake and tests fixups after merge with main for DRTVWR-559

parent a548c169
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
......@@ -9,4 +9,3 @@ include(ZLIBNG)
include(JsonCpp)
include(XmlRpcEpi)
${TRACY_LIBRARY}
......@@ -2,5 +2,4 @@
include(Variables)
include(Mikktspace)
include(MESHOPTIMIZER)
# -*- cmake -*-
include(Variables)
include(FreeType)
include(GLH)
include(GLEXT)
set(LLRENDER_INCLUDE_DIRS
${LIBS_OPEN_DIR}/llrender
${GLH_INCLUDE_DIR}
${GLEXT_INCLUDE_DIR}
)
if (BUILD_HEADLESS)
set(LLRENDER_HEADLESS_LIBRARIES
llrenderheadless
)
endif (BUILD_HEADLESS)
set(LLRENDER_LIBRARIES
llrender
)
......@@ -11,11 +11,8 @@ if (USE_TRACY)
use_prebuilt_binary(tracy)
target_include_directories( ll::tracy SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/tracy)
set(TRACY_LIBRARY "TracyClient")
set(TRACY_LIBRARY "TracyClient")
# See: indra/llcommon/llprofiler.h
target_compile_definitions(ll::tracy INTERFACE LL_PROFILER_CONFIGURATION=3 )
set(TRACY_LIBRARY "TracyClient")
# See: indra/llcommon/llprofiler.h
add_compile_definitions(LL_PROFILER_CONFIGURATION=3)
endif (USE_TRACY)
......@@ -7,11 +7,8 @@ include(LLCommon)
include(LLCoreHttp)
include(LLPhysicsExtensions)
include(LLPrimitive)
include(LLRender)
include(GLH)
include(TinyGLTF)
${LLRENDER_INCLUDE_DIRS}
${TINYGLTF_INCLUDE_DIR}
set(llprimitive_SOURCE_FILES
lldaeloader.cpp
......@@ -68,6 +65,7 @@ target_link_libraries(llprimitive
llcorehttp
llxml
llcharacter
llrender
llphysicsextensions_impl
ll::colladadom
ll::pcre
......@@ -82,6 +80,7 @@ if (LL_TESTS)
llprimitive.cpp
llgltfmaterial.cpp
)
set_property(SOURCE llprimitive.cpp PROPERTY LL_TEST_ADDITIONAL_LIBRARIES llmessage)
LL_ADD_PROJECT_UNIT_TESTS(llprimitive "${llprimitive_TEST_SOURCE_FILES}")
endif (LL_TESTS)
......@@ -2229,8 +2229,8 @@ if (LL_TESTS)
set_source_files_properties(
llvocache.cpp
PROPERTIES
LL_TEST_ADDITIONAL_SOURCE_FILES
../llmessage/lldatapacker.cpp
LL_TEST_ADDITIONAL_SOURCE_FILES ../llmessage/lldatapacker.cpp
LL_TEST_ADDITIONAL_PROJECTS "llprimitive"
)
set(test_libs
......@@ -2251,7 +2251,6 @@ if (LL_TESTS)
LL_TEST_ADDITIONAL_LIBRARIES "${test_libs}"
)
set_source_files_properties(
llworldmap.cpp
llworldmipmap.cpp
......@@ -2271,6 +2270,7 @@ if (LL_TESTS)
PROPERTIES
LL_TEST_ADDITIONAL_SOURCE_FILES llversioninfo.cpp
)
set_property( SOURCE
${viewer_TEST_SOURCE_FILES}
PROPERTY
......
......@@ -554,8 +554,6 @@ void LLGLTFMaterialList::onAssetLoadComplete(const LLUUID& id, LLAssetType::ETyp
LL::WorkQueue::ptr_t main_queue = LL::WorkQueue::getInstance("mainloop");
LL::WorkQueue::ptr_t general_queue = LL::WorkQueue::getInstance("General");
typedef std::pair<U32, tinygltf::Model> return_data_t;
main_queue->postTo(
general_queue,
[id, asset_type, asset_data]() // Work done on general queue
......
......@@ -10,9 +10,9 @@
*/
// Precompiled header
#include "llviewerprecompiledheaders.h"
#include "../llviewerprecompiledheaders.h"
// associated header
#include "llviewercontrollistener.h"
#include "../llviewercontrollistener.h"
// STL headers
// std headers
// external library headers
......@@ -21,7 +21,6 @@
#include "../test/catch_and_store_what_in.h" // catch_what()
#include "commoncontrol.h"
#include "llcontrol.h" // LLControlGroup
#include "llviewercontrollistener.h"
/*****************************************************************************
* TUT
......
......@@ -28,15 +28,16 @@
#include "../llviewerprecompiledheaders.h"
#include "../test/lltut.h"
#include "llvocache.h"
#include "../llvocache.h"
#include "lldir.h"
#include "llhudobject.h"
#include "../llhudobject.h"
#include "llregionhandle.h"
#include "llsdutil.h"
#include "llsdserialize.h"
#include "llviewerobjectlist.h"
#include "llviewerregion.h"
#include "../llviewerobjectlist.h"
#include "../llviewerregion.h"
#include "lldir_stub.cpp"
#include "llvieweroctree_stub.cpp"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment