mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:29:47 +02:00
PR feedback and cmake fixes
This commit is contained in:
parent
fece438602
commit
a69cf31f4b
21 changed files with 63 additions and 16 deletions
|
@ -7,16 +7,18 @@
|
||||||
# See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
# See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
#
|
#
|
||||||
|
|
||||||
macro(LINK_HIFI_LIBRARIES)
|
function(LINK_HIFI_LIBRARIES)
|
||||||
|
|
||||||
file(RELATIVE_PATH RELATIVE_LIBRARY_DIR_PATH ${CMAKE_CURRENT_SOURCE_DIR} "${HIFI_LIBRARY_DIR}")
|
file(RELATIVE_PATH RELATIVE_LIBRARY_DIR_PATH ${CMAKE_CURRENT_SOURCE_DIR} "${HIFI_LIBRARY_DIR}")
|
||||||
|
|
||||||
set(LIBRARIES_TO_LINK ${ARGN})
|
set(LIBRARIES_TO_LINK ${ARGN})
|
||||||
|
foreach(HIFI_LIBRARY ${LIBRARIES_TO_LINK})
|
||||||
foreach(HIFI_LIBRARY ${LIBRARIES_TO_LINK})
|
|
||||||
if (NOT TARGET ${HIFI_LIBRARY})
|
if (NOT TARGET ${HIFI_LIBRARY})
|
||||||
add_subdirectory("${RELATIVE_LIBRARY_DIR_PATH}/${HIFI_LIBRARY}" "${RELATIVE_LIBRARY_DIR_PATH}/${HIFI_LIBRARY}")
|
add_subdirectory("${RELATIVE_LIBRARY_DIR_PATH}/${HIFI_LIBRARY}" "${RELATIVE_LIBRARY_DIR_PATH}/${HIFI_LIBRARY}")
|
||||||
endif ()
|
endif ()
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
foreach(HIFI_LIBRARY ${LIBRARIES_TO_LINK})
|
||||||
|
|
||||||
include_directories("${HIFI_LIBRARY_DIR}/${HIFI_LIBRARY}/src")
|
include_directories("${HIFI_LIBRARY_DIR}/${HIFI_LIBRARY}/src")
|
||||||
include_directories("${CMAKE_BINARY_DIR}/libraries/${HIFI_LIBRARY}/shaders")
|
include_directories("${CMAKE_BINARY_DIR}/libraries/${HIFI_LIBRARY}/shaders")
|
||||||
|
@ -29,4 +31,4 @@ macro(LINK_HIFI_LIBRARIES)
|
||||||
|
|
||||||
setup_memory_debugger()
|
setup_memory_debugger()
|
||||||
|
|
||||||
endmacro(LINK_HIFI_LIBRARIES)
|
endfunction()
|
||||||
|
|
|
@ -5071,7 +5071,6 @@ namespace render {
|
||||||
|
|
||||||
void Application::displaySide(RenderArgs* renderArgs, Camera& theCamera, bool selfAvatarOnly) {
|
void Application::displaySide(RenderArgs* renderArgs, Camera& theCamera, bool selfAvatarOnly) {
|
||||||
|
|
||||||
#if 1
|
|
||||||
// FIXME: This preDisplayRender call is temporary until we create a separate render::scene for the mirror rendering.
|
// FIXME: This preDisplayRender call is temporary until we create a separate render::scene for the mirror rendering.
|
||||||
// Then we can move this logic into the Avatar::simulate call.
|
// Then we can move this logic into the Avatar::simulate call.
|
||||||
auto myAvatar = getMyAvatar();
|
auto myAvatar = getMyAvatar();
|
||||||
|
@ -5149,8 +5148,6 @@ void Application::displaySide(RenderArgs* renderArgs, Camera& theCamera, bool se
|
||||||
// Before the deferred pass, let's try to use the render engine
|
// Before the deferred pass, let's try to use the render engine
|
||||||
_renderEngine->run();
|
_renderEngine->run();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::resetSensors(bool andReload) {
|
void Application::resetSensors(bool andReload) {
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
set(TARGET_NAME animation)
|
set(TARGET_NAME animation)
|
||||||
setup_hifi_library(Network Script)
|
setup_hifi_library(Network Script)
|
||||||
link_hifi_libraries(shared model fbx)
|
link_hifi_libraries(shared model fbx)
|
||||||
|
include_hifi_library_headers(networking)
|
||||||
|
include_hifi_library_headers(gpu)
|
||||||
|
|
||||||
target_nsight()
|
target_nsight()
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
set(TARGET_NAME audio-client)
|
set(TARGET_NAME audio-client)
|
||||||
setup_hifi_library(Network Multimedia)
|
setup_hifi_library(Network Multimedia)
|
||||||
link_hifi_libraries(audio plugins)
|
link_hifi_libraries(audio plugins)
|
||||||
|
include_hifi_library_headers(shared)
|
||||||
|
include_hifi_library_headers(networking)
|
||||||
|
|
||||||
# append audio includes to our list of includes to bubble
|
# append audio includes to our list of includes to bubble
|
||||||
target_include_directories(${TARGET_NAME} PUBLIC "${HIFI_LIBRARY_DIR}/audio/src")
|
target_include_directories(${TARGET_NAME} PUBLIC "${HIFI_LIBRARY_DIR}/audio/src")
|
||||||
|
|
|
@ -2,5 +2,17 @@ set(TARGET_NAME avatars-renderer)
|
||||||
AUTOSCRIBE_SHADER_LIB(gpu model render render-utils)
|
AUTOSCRIBE_SHADER_LIB(gpu model render render-utils)
|
||||||
setup_hifi_library(Widgets Network Script)
|
setup_hifi_library(Widgets Network Script)
|
||||||
link_hifi_libraries(shared gpu model animation model-networking script-engine render image render-utils)
|
link_hifi_libraries(shared gpu model animation model-networking script-engine render image render-utils)
|
||||||
|
include_hifi_library_headers(avatars)
|
||||||
|
include_hifi_library_headers(networking)
|
||||||
|
include_hifi_library_headers(fbx)
|
||||||
|
include_hifi_library_headers(recording)
|
||||||
|
include_hifi_library_headers(trackers)
|
||||||
|
include_hifi_library_headers(ktx)
|
||||||
|
include_hifi_library_headers(procedural)
|
||||||
|
include_hifi_library_headers(physics)
|
||||||
|
include_hifi_library_headers(entities-renderer)
|
||||||
|
include_hifi_library_headers(audio)
|
||||||
|
include_hifi_library_headers(entities)
|
||||||
|
include_hifi_library_headers(octree)
|
||||||
|
|
||||||
target_bullet()
|
target_bullet()
|
||||||
|
|
|
@ -5,6 +5,7 @@ setup_hifi_library(Script Qml)
|
||||||
|
|
||||||
# use setup_hifi_library macro to setup our project and link appropriate Qt modules
|
# use setup_hifi_library macro to setup our project and link appropriate Qt modules
|
||||||
link_hifi_libraries(shared)
|
link_hifi_libraries(shared)
|
||||||
|
include_hifi_library_headers(networking)
|
||||||
|
|
||||||
GroupSources("src/controllers")
|
GroupSources("src/controllers")
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,14 @@ set(TARGET_NAME display-plugins)
|
||||||
AUTOSCRIBE_SHADER_LIB(gpu display-plugins)
|
AUTOSCRIBE_SHADER_LIB(gpu display-plugins)
|
||||||
setup_hifi_library(OpenGL)
|
setup_hifi_library(OpenGL)
|
||||||
link_hifi_libraries(shared plugins ui-plugins gl gpu-gl ui render-utils)
|
link_hifi_libraries(shared plugins ui-plugins gl gpu-gl ui render-utils)
|
||||||
|
include_hifi_library_headers(gpu)
|
||||||
|
include_hifi_library_headers(model-networking)
|
||||||
|
include_hifi_library_headers(networking)
|
||||||
|
include_hifi_library_headers(model)
|
||||||
|
include_hifi_library_headers(fbx)
|
||||||
|
include_hifi_library_headers(image)
|
||||||
|
include_hifi_library_headers(ktx)
|
||||||
|
include_hifi_library_headers(render)
|
||||||
|
|
||||||
target_opengl()
|
target_opengl()
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
#include <QtCore/QProcessEnvironment>
|
#include <QtCore/QProcessEnvironment>
|
||||||
|
|
||||||
#include <ViewFrustum.h>
|
#include <ViewFrustum.h>
|
||||||
#include <controllers/Pose.h>
|
|
||||||
#include <gpu/Frame.h>
|
#include <gpu/Frame.h>
|
||||||
|
|
||||||
const QString DebugHmdDisplayPlugin::NAME("HMD Simulator");
|
const QString DebugHmdDisplayPlugin::NAME("HMD Simulator");
|
||||||
|
|
|
@ -2,6 +2,16 @@ set(TARGET_NAME entities-renderer)
|
||||||
AUTOSCRIBE_SHADER_LIB(gpu model procedural render render-utils)
|
AUTOSCRIBE_SHADER_LIB(gpu model procedural render render-utils)
|
||||||
setup_hifi_library(Widgets Network Script)
|
setup_hifi_library(Widgets Network Script)
|
||||||
link_hifi_libraries(shared gpu procedural model model-networking script-engine render render-utils image)
|
link_hifi_libraries(shared gpu procedural model model-networking script-engine render render-utils image)
|
||||||
|
include_hifi_library_headers(networking)
|
||||||
|
include_hifi_library_headers(gl)
|
||||||
|
include_hifi_library_headers(ktx)
|
||||||
|
include_hifi_library_headers(octree)
|
||||||
|
include_hifi_library_headers(audio)
|
||||||
|
include_hifi_library_headers(physics)
|
||||||
|
include_hifi_library_headers(animation)
|
||||||
|
include_hifi_library_headers(fbx)
|
||||||
|
include_hifi_library_headers(entities)
|
||||||
|
include_hifi_library_headers(avatars)
|
||||||
|
|
||||||
target_bullet()
|
target_bullet()
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
set(TARGET_NAME entities)
|
set(TARGET_NAME entities)
|
||||||
setup_hifi_library(Network Script)
|
setup_hifi_library(Network Script)
|
||||||
link_hifi_libraries(avatars shared audio octree model model-networking fbx networking animation)
|
link_hifi_libraries(avatars shared audio octree model model-networking fbx networking animation)
|
||||||
|
include_hifi_library_headers(networking)
|
||||||
|
include_hifi_library_headers(gpu)
|
||||||
|
|
||||||
target_bullet()
|
target_bullet()
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
set(TARGET_NAME fbx)
|
set(TARGET_NAME fbx)
|
||||||
setup_hifi_library()
|
setup_hifi_library()
|
||||||
link_hifi_libraries(shared model networking)
|
link_hifi_libraries(shared model networking)
|
||||||
|
include_hifi_library_headers(gpu)
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
set(TARGET_NAME ktx)
|
set(TARGET_NAME ktx)
|
||||||
setup_hifi_library()
|
setup_hifi_library()
|
||||||
link_hifi_libraries()
|
include_hifi_library_headers(shared)
|
|
@ -1,4 +1,4 @@
|
||||||
set(TARGET_NAME model-networking)
|
set(TARGET_NAME model-networking)
|
||||||
setup_hifi_library()
|
setup_hifi_library()
|
||||||
link_hifi_libraries(shared networking model fbx ktx image)
|
link_hifi_libraries(shared networking model fbx ktx image)
|
||||||
|
include_hifi_library_headers(gpu)
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
#include "AABox.h"
|
#include <AABox.h>
|
||||||
|
|
||||||
#include "gpu/Resource.h"
|
#include <gpu/Resource.h>
|
||||||
#include "gpu/Stream.h"
|
#include <gpu/Stream.h>
|
||||||
|
|
||||||
namespace model {
|
namespace model {
|
||||||
typedef gpu::BufferView::Index Index;
|
typedef gpu::BufferView::Index Index;
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
set(TARGET_NAME physics)
|
set(TARGET_NAME physics)
|
||||||
setup_hifi_library()
|
setup_hifi_library()
|
||||||
link_hifi_libraries(shared fbx entities model)
|
link_hifi_libraries(shared fbx entities model)
|
||||||
|
include_hifi_library_headers(networking)
|
||||||
|
include_hifi_library_headers(gpu)
|
||||||
|
include_hifi_library_headers(avatars)
|
||||||
|
include_hifi_library_headers(audio)
|
||||||
|
include_hifi_library_headers(octree)
|
||||||
|
include_hifi_library_headers(animation)
|
||||||
|
|
||||||
target_bullet()
|
target_bullet()
|
||||||
|
|
|
@ -4,6 +4,9 @@ AUTOSCRIBE_SHADER_LIB(gpu model render)
|
||||||
qt5_add_resources(QT_RESOURCES_FILE "${CMAKE_CURRENT_SOURCE_DIR}/res/fonts/fonts.qrc")
|
qt5_add_resources(QT_RESOURCES_FILE "${CMAKE_CURRENT_SOURCE_DIR}/res/fonts/fonts.qrc")
|
||||||
setup_hifi_library(Widgets OpenGL Network Qml Quick Script)
|
setup_hifi_library(Widgets OpenGL Network Qml Quick Script)
|
||||||
link_hifi_libraries(shared ktx gpu model model-networking render animation fbx entities image procedural)
|
link_hifi_libraries(shared ktx gpu model model-networking render animation fbx entities image procedural)
|
||||||
|
include_hifi_library_headers(networking)
|
||||||
|
include_hifi_library_headers(octree)
|
||||||
|
include_hifi_library_headers(audio)
|
||||||
|
|
||||||
if (NOT ANDROID)
|
if (NOT ANDROID)
|
||||||
target_nsight()
|
target_nsight()
|
||||||
|
|
|
@ -2,7 +2,8 @@ set(TARGET_NAME render)
|
||||||
AUTOSCRIBE_SHADER_LIB(gpu model)
|
AUTOSCRIBE_SHADER_LIB(gpu model)
|
||||||
setup_hifi_library()
|
setup_hifi_library()
|
||||||
|
|
||||||
|
link_hifi_libraries(shared ktx gpu model)
|
||||||
# render needs octree only for getAccuracyAngle(float, int)
|
# render needs octree only for getAccuracyAngle(float, int)
|
||||||
link_hifi_libraries(shared networking ktx gpu model octree)
|
include_hifi_library_headers(octree)
|
||||||
|
|
||||||
target_nsight()
|
target_nsight()
|
||||||
|
|
|
@ -71,7 +71,7 @@ namespace render {
|
||||||
Args() {}
|
Args() {}
|
||||||
|
|
||||||
Args(const gpu::ContextPointer& context,
|
Args(const gpu::ContextPointer& context,
|
||||||
QSharedPointer<QObject> renderData = QSharedPointer<OctreeRenderer>(nullptr),
|
QSharedPointer<QObject> renderData = QSharedPointer<QObject>(nullptr),
|
||||||
float sizeScale = 1.0f,
|
float sizeScale = 1.0f,
|
||||||
int boundaryLevelAdjust = 0,
|
int boundaryLevelAdjust = 0,
|
||||||
RenderMode renderMode = DEFAULT_RENDER_MODE,
|
RenderMode renderMode = DEFAULT_RENDER_MODE,
|
||||||
|
|
|
@ -19,7 +19,6 @@ namespace render {
|
||||||
class Args;
|
class Args;
|
||||||
}
|
}
|
||||||
|
|
||||||
class OctreeRenderer;
|
|
||||||
using RenderArgs = render::Args;
|
using RenderArgs = render::Args;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,5 +2,6 @@ set(TARGET_NAME trackers)
|
||||||
setup_hifi_library()
|
setup_hifi_library()
|
||||||
GroupSources("src")
|
GroupSources("src")
|
||||||
link_hifi_libraries(shared)
|
link_hifi_libraries(shared)
|
||||||
|
include_hifi_library_headers(octree)
|
||||||
|
|
||||||
target_bullet()
|
target_bullet()
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
set(TARGET_NAME ui-plugins)
|
set(TARGET_NAME ui-plugins)
|
||||||
setup_hifi_library(OpenGL)
|
setup_hifi_library(OpenGL)
|
||||||
link_hifi_libraries(shared plugins ui)
|
link_hifi_libraries(shared plugins ui)
|
||||||
|
include_hifi_library_headers(gpu)
|
Loading…
Reference in a new issue