|
|
|
|
@ -649,14 +649,16 @@ if(DISCORD_INTEGRATION)
|
|
|
|
|
) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
list(APPEND libdevilutionx_SRCS |
|
|
|
|
dapi/Server.cpp |
|
|
|
|
dapi/Backend/DAPIBackendCore/DAPIProtoClient.cpp |
|
|
|
|
dapi/Backend/Messages/command.proto |
|
|
|
|
dapi/Backend/Messages/data.proto |
|
|
|
|
dapi/Backend/Messages/game.proto |
|
|
|
|
dapi/Backend/Messages/init.proto |
|
|
|
|
dapi/Backend/Messages/message.proto) |
|
|
|
|
if(DAPI_SERVER) |
|
|
|
|
list(APPEND libdevilutionx_SRCS |
|
|
|
|
dapi/Server.cpp |
|
|
|
|
dapi/Backend/DAPIBackendCore/DAPIProtoClient.cpp |
|
|
|
|
dapi/Backend/Messages/command.proto |
|
|
|
|
dapi/Backend/Messages/data.proto |
|
|
|
|
dapi/Backend/Messages/game.proto |
|
|
|
|
dapi/Backend/Messages/init.proto |
|
|
|
|
dapi/Backend/Messages/message.proto) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
if(SCREEN_READER_INTEGRATION) |
|
|
|
|
list(APPEND libdevilutionx_SRCS |
|
|
|
|
@ -684,7 +686,6 @@ target_link_dependencies(libdevilutionx PUBLIC
|
|
|
|
|
libsmackerdec |
|
|
|
|
${LUA_LIBRARIES} |
|
|
|
|
sol2::sol2 |
|
|
|
|
SFML::Network |
|
|
|
|
tl |
|
|
|
|
unordered_dense::unordered_dense |
|
|
|
|
libdevilutionx_assets |
|
|
|
|
@ -752,6 +753,10 @@ if(DISCORD_INTEGRATION)
|
|
|
|
|
target_link_libraries(libdevilutionx PRIVATE discord discord_game_sdk) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
if(DAPI_SERVER) |
|
|
|
|
target_link_libraries(libdevilutionx PRIVATE SFML::Network) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
if(SCREEN_READER_INTEGRATION) |
|
|
|
|
if(WIN32) |
|
|
|
|
target_compile_definitions(libdevilutionx PRIVATE Tolk) |
|
|
|
|
@ -807,25 +812,27 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
find_package(Protobuf REQUIRED) |
|
|
|
|
|
|
|
|
|
target_link_libraries(libdevilutionx PUBLIC protobuf::libprotobuf-lite) |
|
|
|
|
find_package(absl REQUIRED) |
|
|
|
|
set(PROTO_BINARY_DIR "${CMAKE_BINARY_DIR}/generated") |
|
|
|
|
|
|
|
|
|
file(MAKE_DIRECTORY ${PROTO_BINARY_DIR}) |
|
|
|
|
|
|
|
|
|
target_include_directories(libdevilutionx PRIVATE ${Protobuf_INCLUDE_DIRS}) |
|
|
|
|
|
|
|
|
|
# Generate the protobuf files into the 'generated' directory within the build tree |
|
|
|
|
protobuf_generate( |
|
|
|
|
TARGET libdevilutionx |
|
|
|
|
IMPORT_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/dapi/Backend/Messages" |
|
|
|
|
PROTOC_OUT_DIR "${PROTO_BINARY_DIR}" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
# Make sure the generated protobuf files are correctly included in the build |
|
|
|
|
target_include_directories(libdevilutionx PUBLIC "$<BUILD_INTERFACE:${PROTO_BINARY_DIR}>") |
|
|
|
|
include_directories("${PROTO_BINARY_DIR}/dapi/Backend/Messages") |
|
|
|
|
|
|
|
|
|
target_include_directories(libdevilutionx PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/dapi/Backend/DAPIBackendCore") |
|
|
|
|
if(DAPI_SERVER) |
|
|
|
|
find_package(Protobuf REQUIRED) |
|
|
|
|
|
|
|
|
|
target_link_libraries(libdevilutionx PUBLIC protobuf::libprotobuf-lite) |
|
|
|
|
find_package(absl REQUIRED) |
|
|
|
|
set(PROTO_BINARY_DIR "${CMAKE_BINARY_DIR}/generated") |
|
|
|
|
|
|
|
|
|
file(MAKE_DIRECTORY ${PROTO_BINARY_DIR}) |
|
|
|
|
|
|
|
|
|
target_include_directories(libdevilutionx PRIVATE ${Protobuf_INCLUDE_DIRS}) |
|
|
|
|
|
|
|
|
|
# Generate the protobuf files into the 'generated' directory within the build tree |
|
|
|
|
protobuf_generate( |
|
|
|
|
TARGET libdevilutionx |
|
|
|
|
IMPORT_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/dapi/Backend/Messages" |
|
|
|
|
PROTOC_OUT_DIR "${PROTO_BINARY_DIR}" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
# Make sure the generated protobuf files are correctly included in the build |
|
|
|
|
target_include_directories(libdevilutionx PUBLIC "$<BUILD_INTERFACE:${PROTO_BINARY_DIR}>") |
|
|
|
|
include_directories("${PROTO_BINARY_DIR}/dapi/Backend/Messages") |
|
|
|
|
|
|
|
|
|
target_include_directories(libdevilutionx PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/dapi/Backend/DAPIBackendCore") |
|
|
|
|
endif() |
|
|
|
|
|