mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Decrease compile time (#886)
This commit is contained in:
parent
d6573048e7
commit
6362cfcc1b
6
dependencies/CMakeLists.txt
vendored
6
dependencies/CMakeLists.txt
vendored
@ -61,13 +61,15 @@ message(STATUS "Using flatbuffers compiler: " ${FLATBUFFERS_FLATC_EXECUTABLE})
|
||||
function(compile_flattbuffer_schema SRC_FBS OUTPUT_DIR)
|
||||
string(REGEX REPLACE "\\.fbs$" "_generated.h" GEN_HEADER ${SRC_FBS})
|
||||
set_property(SOURCE ${GEN_HEADER} PROPERTY SKIP_AUTOMOC ON)
|
||||
|
||||
if (ENABLE_AMLOGIC)
|
||||
add_custom_command(
|
||||
OUTPUT ${GEN_HEADER}
|
||||
COMMAND "${FLATBUFFERS_FLATC_EXECUTABLE}" -c --no-includes --gen-mutable
|
||||
--gen-object-api
|
||||
-o "${OUTPUT_DIR}"
|
||||
"${SRC_FBS}")
|
||||
"${SRC_FBS}"
|
||||
DEPENDS ${SRC_FBS})
|
||||
else()
|
||||
add_custom_command(
|
||||
OUTPUT ${GEN_HEADER}
|
||||
@ -75,7 +77,7 @@ function(compile_flattbuffer_schema SRC_FBS OUTPUT_DIR)
|
||||
--gen-object-api
|
||||
-o "${OUTPUT_DIR}"
|
||||
"${SRC_FBS}"
|
||||
DEPENDS flatc)
|
||||
DEPENDS flatc ${SRC_FBS})
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
|
@ -14,9 +14,12 @@
|
||||
#include <utils/VideoMode.h>
|
||||
#include <utils/Logger.h>
|
||||
|
||||
// flatbuffer FBS
|
||||
#include "hyperion_reply_generated.h"
|
||||
#include "hyperion_request_generated.h"
|
||||
#include <flatbuffers/flatbuffers.h>
|
||||
|
||||
namespace hyperionnet
|
||||
{
|
||||
class Reply;
|
||||
}
|
||||
|
||||
///
|
||||
/// Connection class to setup an connection to the hyperion server and execute commands.
|
||||
|
@ -7,6 +7,10 @@
|
||||
// flatbuffer includes
|
||||
#include <flatbufserver/FlatBufferConnection.h>
|
||||
|
||||
// flatbuffer FBS
|
||||
#include "hyperion_reply_generated.h"
|
||||
#include "hyperion_request_generated.h"
|
||||
|
||||
FlatBufferConnection::FlatBufferConnection(const QString& origin, const QString & address, const int& priority, const bool& skipReply)
|
||||
: _socket()
|
||||
, _origin(origin)
|
||||
|
Loading…
Reference in New Issue
Block a user