*提交包括http2数据替换,转发,截断,缓存代码 *合并最新develop-tfe3a后,http2验证代码提交 *http2重构验证代码提交 *http2添加br压缩解压缩接口和测试用例 *http2定时删除session信息代码提交 *修复bug,访问二级链接时由于nghttp2库收到control ping后,自发control ping包 造成链接断开后重连现象 *修复bug, 链接建立后服务端优先发送control包,未处理此数据包,造成页面访问失败
97 lines
2.9 KiB
CMake
97 lines
2.9 KiB
CMake
add_executable(tfe src/key_keeper.cpp src/kni_acceptor.cpp src/ssl_stream.cpp
|
|
src/ssl_sess_cache.cpp src/ssl_trusted_cert_storage.cpp
|
|
src/ssl_utils.cpp src/tcp_stream.cpp src/main.cpp src/proxy.cpp)
|
|
|
|
target_include_directories(tfe PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include/external)
|
|
target_include_directories(tfe PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include/internal)
|
|
|
|
target_link_libraries(tfe common tango-cache-client)
|
|
target_link_libraries(tfe pthread dl
|
|
openssl-ssl-static
|
|
openssl-crypto-static
|
|
libevent-static
|
|
libevent-static-openssl
|
|
libevent-static-pthreads
|
|
gperftools-static
|
|
MESA_handle_logger
|
|
MESA_prof_load
|
|
cjson
|
|
libcurl-static
|
|
hiredis-static
|
|
MESA_htable wiredcfg
|
|
MESA_field_stat)
|
|
|
|
if(ENABLE_PLUGIN_HTTP)
|
|
target_link_libraries(tfe -Wl,--whole-archive http -Wl,--no-whole-archive)
|
|
endif()
|
|
|
|
if(ENABLE_PLUGIN_DECRYPT_MIRRORING)
|
|
target_link_libraries(tfe -Wl,--whole-archive decrypt-mirroring -Wl,--no-whole-archive)
|
|
endif()
|
|
|
|
if(ENABLE_PLUGIN_PANGU_HTTP)
|
|
target_link_libraries(tfe -Wl,--whole-archive pangu-http -Wl,--no-whole-archive)
|
|
endif()
|
|
|
|
if(ENABLE_PLUGIN_HTTP2)
|
|
target_link_libraries(tfe -Wl,--whole-archive http2 -Wl,--no-whole-archive)
|
|
endif()
|
|
|
|
install(TARGETS tfe RUNTIME DESTINATION bin COMPONENT Program)
|
|
|
|
#### test_key_keeper
|
|
#add_executable(test_key_keeper test/test_key_keeper.cpp src/key_keeper.cpp src/ssl_sess_cache.cpp src/ssl_utils.cpp )
|
|
#
|
|
#target_include_directories(test_key_keeper PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include/internal)
|
|
#
|
|
#target_link_libraries(test_key_keeper common)
|
|
#target_link_libraries(test_key_keeper pthread dl
|
|
# openssl-ssl-static
|
|
# openssl-crypto-static
|
|
# pthread libevent-static
|
|
# libevent-static-openssl
|
|
# libevent-static-pthreads
|
|
# MESA_handle_logger
|
|
# MESA_prof_load
|
|
# cjson
|
|
# curl
|
|
# MESA_htable wiredcfg
|
|
# MESA_field_stat)
|
|
#
|
|
#### test_tfe_rpc
|
|
#add_executable(test_tfe_rpc test/test_tfe_rpc.cpp src/key_keeper.cpp src/ssl_sess_cache.cpp src/ssl_utils.cpp)
|
|
#
|
|
#target_include_directories(test_tfe_rpc PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include/internal)
|
|
#
|
|
#target_link_libraries(test_tfe_rpc common)
|
|
#target_link_libraries(test_tfe_rpc pthread dl
|
|
# openssl-ssl-static
|
|
# openssl-crypto-static
|
|
# pthread libevent-static
|
|
# libevent-static-openssl
|
|
# libevent-static-pthreads
|
|
# MESA_handle_logger
|
|
# MESA_prof_load
|
|
# MESA_htable wiredcfg
|
|
# cjson
|
|
# curl
|
|
# MESA_field_stat)
|
|
#
|
|
#### test_chello_parse
|
|
#add_executable(test_chello_parse test/test_chello_parse.cpp src/ssl_utils.cpp)
|
|
#
|
|
#target_include_directories(test_chello_parse PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include/internal)
|
|
#
|
|
#target_link_libraries(test_chello_parse common)
|
|
#target_link_libraries(test_chello_parse pthread dl
|
|
# openssl-ssl-static
|
|
# openssl-crypto-static
|
|
# pthread libevent-static
|
|
# libevent-static-openssl
|
|
# libevent-static-pthreads
|
|
# MESA_handle_logger
|
|
# MESA_prof_load
|
|
# MESA_htable wiredcfg
|
|
# cjson
|
|
# MESA_field_stat)
|