🦄 refactor(rename vendor): from vendor to vendors

This commit is contained in:
yangwei
2024-08-30 14:40:54 +08:00
parent 02a50d1008
commit 5ccd66db73
6 changed files with 5 additions and 4 deletions

View File

@@ -78,7 +78,7 @@ include_directories(${CMAKE_SOURCE_DIR}/deps)
enable_testing() enable_testing()
add_subdirectory(conf) add_subdirectory(conf)
add_subdirectory(vendor) add_subdirectory(vendors)
add_subdirectory(deps) add_subdirectory(deps)
add_subdirectory(infra) add_subdirectory(infra)
add_subdirectory(decoders) add_subdirectory(decoders)

View File

@@ -35,12 +35,12 @@ ExternalProject_Add(cjson PREFIX cjson
ExternalProject_Get_Property(cjson INSTALL_DIR) ExternalProject_Get_Property(cjson INSTALL_DIR)
message(STATUS "cjson will be installed in: ${INSTALL_DIR}") message(STATUS "cjson will be installed in: ${INSTALL_DIR}")
file(MAKE_DIRECTORY ${INSTALL_DIR}/include/) file(MAKE_DIRECTORY ${INSTALL_DIR}/src/cjson/include/)
add_library(cjson-static STATIC IMPORTED GLOBAL) add_library(cjson-static STATIC IMPORTED GLOBAL)
add_dependencies(cjson-static cjson) add_dependencies(cjson-static cjson)
set_property(TARGET cjson-static PROPERTY IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/vendor/cjson/src/cjson/libcjson.a) set_property(TARGET cjson-static PROPERTY IMPORTED_LOCATION ${INSTALL_DIR}/src/cjson/libcjson.a)
set_property(TARGET cjson-static PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/include/) set_property(TARGET cjson-static PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/src/cjson/include/)
#llhttp-9.1.3 #llhttp-9.1.3
ExternalProject_Add(llhttp PREFIX llhttp ExternalProject_Add(llhttp PREFIX llhttp
@@ -48,6 +48,7 @@ ExternalProject_Add(llhttp PREFIX llhttp
URL_MD5 355ecc90e622035e3e1693a96a0c233b URL_MD5 355ecc90e622035e3e1693a96a0c233b
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> -DBUILD_STATIC_LIBS=ON -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_C_FLAGS="-fPIC") CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> -DBUILD_STATIC_LIBS=ON -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_C_FLAGS="-fPIC")
ExternalProject_Get_Property(llhttp INSTALL_DIR) ExternalProject_Get_Property(llhttp INSTALL_DIR)
message(STATUS "llhttp will be installed in: ${INSTALL_DIR}")
file(MAKE_DIRECTORY ${INSTALL_DIR}/include) file(MAKE_DIRECTORY ${INSTALL_DIR}/include)
add_library(llhttp-static STATIC IMPORTED GLOBAL) add_library(llhttp-static STATIC IMPORTED GLOBAL)