14 lines
838 B
CMake
14 lines
838 B
CMake
add_definitions(-fPIC)
|
|
|
|
set(HTTP_SRC ${DEPS_SRC} http_decoder.cpp http_decoder_utils.cpp http_decoder_half.cpp
|
|
http_decoder_table.cpp http_decoder_string.cpp http_content_decompress.cpp
|
|
http_decoder_result_queue.cpp http_decoder_stat.cpp http_decoder_tunnel.cpp)
|
|
|
|
add_library(http_decoder STATIC ${HTTP_SRC})
|
|
set_target_properties(http_decoder PROPERTIES LINK_FLAGS "-Wl,--version-script=${PROJECT_SOURCE_DIR}/src/version.map")
|
|
target_include_directories(http_decoder PUBLIC ${CMAKE_SOURCE_DIR}/deps/)
|
|
target_link_libraries(http_decoder z llhttp-static fieldstat4)
|
|
target_link_libraries(http_decoder brotli-dec-static brotli-common-static )
|
|
set_target_properties(http_decoder PROPERTIES PREFIX "")
|
|
|
|
#install(TARGETS http_decoder LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/plugin/${lib_name} COMPONENT LIBRARIES) |