✨ feat(rename stellar_devel): from stellar_devel to stellar_lib
This commit is contained in:
@@ -7,17 +7,18 @@ foreach(infra ${INFRA})
|
|||||||
add_subdirectory(${infra})
|
add_subdirectory(${infra})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/stellar_devel.c "")
|
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/stellar_lib.c "")
|
||||||
|
|
||||||
add_library(stellar_devel SHARED stellar_devel.c)
|
add_library(stellar_lib SHARED stellar_lib.c)
|
||||||
set_target_properties(stellar_devel PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/version.map")
|
set_target_properties(stellar_lib PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/version.map")
|
||||||
target_link_libraries(stellar_devel PRIVATE pthread -Wl,--whole-archive ${WHOLE_ARCHIVE} -Wl,--no-whole-archive)
|
target_link_libraries(stellar_lib PRIVATE pthread -Wl,--whole-archive ${WHOLE_ARCHIVE} -Wl,--no-whole-archive)
|
||||||
target_link_options(stellar_devel PRIVATE -rdynamic)
|
target_link_options(stellar_lib PRIVATE -rdynamic)
|
||||||
|
set_target_properties(stellar_lib PROPERTIES OUTPUT_NAME "stellar")
|
||||||
|
|
||||||
add_executable(stellar main.c)
|
add_executable(stellar main.c)
|
||||||
set_target_properties(stellar PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/version.map")
|
set_target_properties(stellar PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/version.map")
|
||||||
target_link_libraries(stellar PRIVATE pthread -Wl,--whole-archive ${WHOLE_ARCHIVE} -Wl,--no-whole-archive)
|
target_link_libraries(stellar PRIVATE pthread -Wl,--whole-archive ${WHOLE_ARCHIVE} -Wl,--no-whole-archive)
|
||||||
target_link_options(stellar PRIVATE -rdynamic)
|
target_link_options(stellar PRIVATE -rdynamic)
|
||||||
|
|
||||||
install(TARGETS stellar_devel LIBRARY DESTINATION lib COMPONENT LIBRARIES)
|
install(TARGETS stellar_lib LIBRARY DESTINATION lib COMPONENT LIBRARIES)
|
||||||
install(TARGETS stellar RUNTIME DESTINATION bin COMPONENT PROGRAM)
|
install(TARGETS stellar RUNTIME DESTINATION bin COMPONENT PROGRAM)
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# build libdebug_plugin.so
|
# build libdebug_plugin.so
|
||||||
add_library(debug_plugin SHARED debug_plugin.c)
|
add_library(debug_plugin SHARED debug_plugin.c)
|
||||||
target_link_libraries(debug_plugin stellar_devel session_manager packet_parser)
|
target_link_libraries(debug_plugin stellar_lib session_manager packet_parser)
|
||||||
target_include_directories(debug_plugin PUBLIC ${CMAKE_SOURCE_DIR}/include/)
|
target_include_directories(debug_plugin PUBLIC ${CMAKE_SOURCE_DIR}/include/)
|
||||||
target_include_directories(debug_plugin PUBLIC ${CMAKE_SOURCE_DIR}/infra/core/utils)
|
target_include_directories(debug_plugin PUBLIC ${CMAKE_SOURCE_DIR}/infra/core/utils)
|
||||||
set_target_properties(debug_plugin PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/version.map")
|
set_target_properties(debug_plugin PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/version.map")
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ include_directories(${PROJECT_SOURCE_DIR}/include/stellar)
|
|||||||
aux_source_directory(${PROJECT_SOURCE_DIR}/deps/toml PERF_TEST_DEP_SRC)
|
aux_source_directory(${PROJECT_SOURCE_DIR}/deps/toml PERF_TEST_DEP_SRC)
|
||||||
|
|
||||||
add_executable(gtest_http http_decoder_gtest.cpp ${PROJECT_SOURCE_DIR}/decoders/http/http_decoder_utils.cpp)
|
add_executable(gtest_http http_decoder_gtest.cpp ${PROJECT_SOURCE_DIR}/decoders/http/http_decoder_utils.cpp)
|
||||||
target_link_libraries(gtest_http gtest stellar_devel llhttp-static)
|
target_link_libraries(gtest_http gtest stellar_lib llhttp-static)
|
||||||
|
|
||||||
add_executable(http_test_main plugin_test_main.cpp)
|
add_executable(http_test_main plugin_test_main.cpp)
|
||||||
set_target_properties(http_test_main
|
set_target_properties(http_test_main
|
||||||
@@ -35,7 +35,7 @@ set_target_properties(http_test_main
|
|||||||
"-rdynamic"
|
"-rdynamic"
|
||||||
)
|
)
|
||||||
set(LINK_FLAGS "-rdynamic")
|
set(LINK_FLAGS "-rdynamic")
|
||||||
target_link_libraries(http_test_main gtest cjson-static stellar_devel llhttp-static)
|
target_link_libraries(http_test_main gtest cjson-static stellar_lib llhttp-static)
|
||||||
|
|
||||||
add_subdirectory(test_based_on_stellar)
|
add_subdirectory(test_based_on_stellar)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ target_include_directories(gtest_lpi PRIVATE ${CMAKE_SOURCE_DIR}/deps/)
|
|||||||
target_include_directories(gtest_lpi PRIVATE ${CMAKE_SOURCE_DIR}/decoders/lpi)
|
target_include_directories(gtest_lpi PRIVATE ${CMAKE_SOURCE_DIR}/decoders/lpi)
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
gtest_lpi PRIVATE stellar_devel cjson-static
|
gtest_lpi PRIVATE stellar_lib cjson-static
|
||||||
dl "-rdynamic"
|
dl "-rdynamic"
|
||||||
gtest gmock
|
gtest gmock
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ function(packet_inject_add_case EXEC_NAME)
|
|||||||
add_executable(${EXEC_NAME} ${EXEC_NAME}.cpp)
|
add_executable(${EXEC_NAME} ${EXEC_NAME}.cpp)
|
||||||
target_include_directories(${EXEC_NAME} PUBLIC ${CMAKE_SOURCE_DIR}/include/)
|
target_include_directories(${EXEC_NAME} PUBLIC ${CMAKE_SOURCE_DIR}/include/)
|
||||||
target_link_libraries(${EXEC_NAME} PRIVATE "-rdynamic")
|
target_link_libraries(${EXEC_NAME} PRIVATE "-rdynamic")
|
||||||
target_link_libraries(${EXEC_NAME} PRIVATE stellar_devel gtest)
|
target_link_libraries(${EXEC_NAME} PRIVATE stellar_lib gtest)
|
||||||
gtest_discover_tests(${EXEC_NAME})
|
gtest_discover_tests(${EXEC_NAME})
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user