blob: c242afe166d2f5f33a98fdaa4f5d9ca52681c705 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
include_directories(${CMAKE_SOURCE_DIR}/deps)
set(HTTP_SRC http_decoder.c http_decoder_utils.c http_decoder_half.c
http_decoder_table.c http_decoder_string.c http_content_decompress.c
http_decoder_result_queue.c http_decoder_stat.c http_decoder_tunnel.c)
add_library(http STATIC ${HTTP_SRC})
add_library(http_dyn SHARED ${HTTP_SRC})
set_target_properties(http PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/version.map")
target_include_directories(http PUBLIC ${CMAKE_SOURCE_DIR}/deps/)
target_link_libraries(http z llhttp-static fieldstat4 brotli-dec-static brotli-common-static nmx_pool toml)
set_target_properties(http PROPERTIES PREFIX "")
set_target_properties(http_dyn PROPERTIES PREFIX "")
target_link_libraries(http_dyn z llhttp-static fieldstat4 brotli-dec-static brotli-common-static nmx_pool toml)
|