-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(interactive): Refactor the CMake configuration (#4217)
Refactor the CMake setup. - Rename the hqps_plan_proto to flex_plan_proto, and move to utils/CMakeLIsts.txt - Refactor some CMakeLists.txt in submodules.
- Loading branch information
1 parent
2e434e3
commit 94fb19a
Showing
16 changed files
with
82 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
|
||
find_package(Boost REQUIRED COMPONENTS system filesystem | ||
context program_options regex thread) | ||
include_directories(SYSTEM ${Boost_INCLUDE_DIRS}) | ||
|
||
add_executable(gen_code_from_plan gen_code_from_plan.cc) | ||
target_link_libraries(gen_code_from_plan flex_rt_mutable_graph flex_utils hqps_plan_proto ${GLOG_LIBRARIES} ${Boost_LIBRARIES}) | ||
target_link_libraries(gen_code_from_plan flex_rt_mutable_graph flex_utils flex_plan_proto ${GLOG_LIBRARIES} ${Boost_LIBRARIES}) | ||
install_flex_target(gen_code_from_plan) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
file(GLOB_RECURSE COMMON_SOURCES "common/*.cc") | ||
add_library(runtime_common SHARED ${COMMON_SOURCES}) | ||
target_link_libraries(runtime_common ${Boost_LIBRARIES} flex_rt_mutable_graph flex_utils hqps_plan_proto) | ||
target_link_libraries(runtime_common ${Boost_LIBRARIES} flex_utils flex_plan_proto) | ||
install_flex_target(runtime_common) | ||
|
||
file(GLOB_RECURSE ADHOC_SOURCES "adhoc/*.cc") | ||
add_library(runtime_adhoc SHARED ${ADHOC_SOURCES}) | ||
target_link_libraries(runtime_adhoc runtime_common) | ||
target_link_libraries(runtime_adhoc Boost::headers) | ||
install_flex_target(runtime_adhoc) | ||
|
||
|
||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
DESTINATION include/flex/engines/graph_db | ||
FILES_MATCHING | ||
PATTERN "*.h" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,5 @@ | ||
set(GIE_COMPILER_PROTO_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../interactive_engine/executor/ir/proto/) | ||
set(GIE_COMPILER_PROTO_JOB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../interactive_engine/executor/engine/pegasus/server/proto/) | ||
# proto files of gie compiler | ||
set(CODE_GEN_PROTOBUF_FILES | ||
${GIE_COMPILER_PROTO_DIR}/algebra.proto | ||
${GIE_COMPILER_PROTO_DIR}/common.proto | ||
${GIE_COMPILER_PROTO_DIR}/expr.proto | ||
${GIE_COMPILER_PROTO_DIR}/physical.proto | ||
${GIE_COMPILER_PROTO_DIR}/results.proto | ||
${GIE_COMPILER_PROTO_DIR}/schema.proto | ||
${GIE_COMPILER_PROTO_DIR}/type.proto | ||
${GIE_COMPILER_PROTO_DIR}/stored_procedure.proto | ||
${GIE_COMPILER_PROTO_JOB_DIR}/job_service.proto | ||
) | ||
|
||
#create directory first | ||
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/flex/proto_generated_gie) | ||
|
||
# proto gen for gie proto | ||
protobuf_generate(APPEND_PATH | ||
TARGET ${LOCAL_EXE_NAME} | ||
LANGUAGE cpp | ||
OUT_VAR PROTO_SRCS_GIE | ||
PROTOS ${CODE_GEN_PROTOBUF_FILES} | ||
IMPORT_DIRS ${GIE_COMPILER_PROTO_DIR} | ||
PROTOC_OUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/flex/proto_generated_gie | ||
) | ||
|
||
add_library(hqps_plan_proto SHARED ${PROTO_SRCS_GIE}) | ||
target_include_directories(hqps_plan_proto PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>) | ||
target_link_libraries(hqps_plan_proto PUBLIC ${Protobuf_LIBRARIES}) | ||
install_flex_target(hqps_plan_proto) | ||
|
||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
DESTINATION include/flex/engines/ | ||
FILES_MATCHING | ||
PATTERN "*.h" | ||
) | ||
#install proto_generated_files | ||
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/flex/proto_generated_gie/ | ||
DESTINATION include/flex/proto_generated_gie/ | ||
FILES_MATCHING | ||
PATTERN "*.h" | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters