feat(Tools/DbImport): implement separated app for importing DB (#11614)

This commit is contained in:
Kargatum
2022-06-09 18:23:38 +07:00
committed by GitHub
parent c0ab2ab08e
commit 94528cd44d
17 changed files with 606 additions and 35 deletions
+21 -14
View File
@@ -27,9 +27,9 @@ if (TOOLS_BUILD MATCHES "-only")
list(APPEND BUILD_TOOLS_WHITELIST map_extractor mmaps_generator vmap4_assembler vmap4_extractor)
endif()
# if (TOOLS_BUILD STREQUAL "db-only")
# list(APPEND BUILD_TOOLS_WHITELIST dbimport)
# endif()
if (TOOLS_BUILD STREQUAL "db-only")
list(APPEND BUILD_TOOLS_WHITELIST dbimport)
endif()
endif()
# Set the TOOL_${TOOL_BUILD_NAME} variables from the
@@ -66,7 +66,7 @@ list(SORT TOOL_BUILD_GRAPH_KEYS)
list(REMOVE_DUPLICATES TOOL_BUILD_GRAPH_KEYS)
# Display the graphs
# message("")
message("")
message("* Tools build list (${TOOLS_BUILD}):")
message(" |")
@@ -112,19 +112,26 @@ foreach(TOOL_NAME ${TOOLS_BUILD_LIST})
add_dependencies(${TOOL_PROJECT_NAME} revision.h)
# Need fix errors
# Need fix errors in maps tools
# target_link_libraries(${TOOL_PROJECT_NAME}
# PRIVATE
# acore-core-interface)
# acore-dependency-interface)
# if (${TOOL_PROJECT_NAME} MATCHES "dbimport")
# target_link_libraries(${TOOL_PROJECT_NAME}
# PUBLIC
# database)
if (${TOOL_PROJECT_NAME} MATCHES "dbimport")
target_link_libraries(${TOOL_PROJECT_NAME}
PUBLIC
database
PRIVATE
acore-core-interface)
# Install config
CopyToolConfig(${TOOL_PROJECT_NAME} ${TOOL_NAME})
else()
target_link_libraries(${TOOL_PROJECT_NAME}
PRIVATE
acore-dependency-interface)
# # Install config
# CopyToolConfig(${TOOL_PROJECT_NAME} ${TOOL_NAME})
# else()
target_link_libraries(${TOOL_PROJECT_NAME}
PUBLIC
common
@@ -132,7 +139,7 @@ foreach(TOOL_NAME ${TOOLS_BUILD_LIST})
zlib
Recast
g3dlib)
# endif()
endif()
unset(TOOL_PUBLIC_INCLUDES)
CollectIncludeDirectories(