summaryrefslogtreecommitdiff
path: root/decoders/http/CMakeLists.txt
diff options
context:
space:
mode:
authorlijia <[email protected]>2024-10-27 18:08:00 +0800
committerlijia <[email protected]>2024-11-08 11:23:16 +0800
commit627cfac992c52e3c7950355c0d447764056a5276 (patch)
treeafb5f8f462d964a764dbb071f5cfadad199cbe4d /decoders/http/CMakeLists.txt
parentd0a868591470a4a9d71a65a5d540058e72c8d92c (diff)
httpv2.0 rebase onto develop-2.0dev-http-v2.0
Diffstat (limited to 'decoders/http/CMakeLists.txt')
-rw-r--r--decoders/http/CMakeLists.txt20
1 files changed, 10 insertions, 10 deletions
diff --git a/decoders/http/CMakeLists.txt b/decoders/http/CMakeLists.txt
index c242afe..3a2b637 100644
--- a/decoders/http/CMakeLists.txt
+++ b/decoders/http/CMakeLists.txt
@@ -1,15 +1,15 @@
+add_definitions(-fPIC)
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)
+set(HTTP_SRC http_decoder_module.c http_decoder.c
+ http_decoder_llhttp_wrap.c
+ http_decoder_utils.c
+ http_decoder_decompress.c
+ http_decoder_half.c
+ http_decoder_stat.c )
-add_library(http STATIC ${HTTP_SRC})
-add_library(http_dyn SHARED ${HTTP_SRC})
+add_library(http ${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) \ No newline at end of file
+target_link_libraries(http z llhttp-static fieldstat4 brotli-dec-static brotli-common-static toml)
+set_target_properties(http PROPERTIES PREFIX "") \ No newline at end of file