Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions iocore/aio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@


add_library(aio STATIC)
add_library(ts::aio ALIAS aio)

target_sources(aio PRIVATE AIO.cc Inline.cc)
target_include_directories(aio PRIVATE ${CMAKE_SOURCE_DIR}/iocore/eventsystem ${CMAKE_SOURCE_DIR}/iocore/io_uring)
18 changes: 14 additions & 4 deletions iocore/cache/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ add_library(inkcache STATIC
RamCacheLRU.cc
Store.cc
)
add_library(ts::inkcache ALIAS inkcache)

if(BUILD_REGRESSION_TESTING)
target_sources(inkcache PRIVATE CacheTest.cc)
endif()
target_link_libraries(inkcache PRIVATE ZLIB::ZLIB)
if(HAVE_LZMA_H)
target_link_libraries(inkcache PRIVATE LibLZMA::LibLZMA)
endif()

target_include_directories(inkcache PRIVATE
${CMAKE_SOURCE_DIR}/iocore/eventsystem
${CMAKE_SOURCE_DIR}/iocore/io_uring
Expand All @@ -52,3 +51,14 @@ target_include_directories(inkcache PRIVATE
${CMAKE_SOURCE_DIR}/proxy/hdrs
${CMAKE_SOURCE_DIR}/lib
)

target_link_libraries(inkcache
PRIVATE
fastlz
ZLIB::ZLIB
)

if(HAVE_LZMA_H)
target_link_libraries(inkcache PRIVATE LibLZMA::LibLZMA)
endif()

2 changes: 2 additions & 0 deletions iocore/dns/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ add_library(inkdns STATIC
Inline.cc
SplitDNS.cc
)
add_library(ts::inkdns ALIAS inkdns)

target_include_directories(inkdns PRIVATE
${CMAKE_SOURCE_DIR}/iocore/eventsystem
${CMAKE_SOURCE_DIR}/iocore/dns
Expand Down
2 changes: 2 additions & 0 deletions iocore/hostdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ add_library(inkhostdb STATIC
HostFile.cc
HostDBInfo.cc
)
add_library(ts::inkhostdb ALIAS inkhostdb)

target_include_directories(inkhostdb PRIVATE
${CMAKE_SOURCE_DIR}/iocore/eventsystem
${CMAKE_SOURCE_DIR}/iocore/io_uring
Expand Down
4 changes: 3 additions & 1 deletion mgmt/config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ add_library(configmanager STATIC
FileManager.cc
AddConfigFilesHere.cc
)
add_library(ts::configmanager ALIAS configmanager)

include_directories(
${CMAKE_SOURCE_DIR}/mgmt
${CMAKE_SOURCE_DIR}/proxy
${CMAKE_SOURCE_DIR}/proxy/hdrs
${CMAKE_SOURCE_DIR}/proxy/http
${IOCORE_INCLUDE_DIRS}
)
)
3 changes: 3 additions & 0 deletions mgmt/rpc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ add_library(jsonrpc_protocol STATIC
jsonrpc/JsonRPCManager.cc
jsonrpc/Context.cc
)
add_library(ts::jsonrpc_protocol ALIAS jsonrpc_protocol)

add_library(jsonrpc_server STATIC
server/RPCServer.cc
server/CommBase.cc
server/IPCSocketServer.cc
config/JsonRPCConfig.cc
)
add_library(ts::jsonrpc_server ALIAS jsonrpc_server)

add_library(rpcpublichandlers STATIC
handlers/common/RecordsUtils.cc
Expand All @@ -47,3 +49,4 @@ add_library(rpcpublichandlers STATIC
handlers/server/Server.cc
handlers/plugins/Plugins.cc
)
add_library(ts::rpcpublichandlers ALIAS rpcpublichandlers)
2 changes: 2 additions & 0 deletions proxy/http/remap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ add_library(http_remap STATIC
UrlMappingPathIndex.cc
UrlRewrite.cc
)
add_library(ts::http_remap ALIAS http_remap)

target_include_directories(http_remap PRIVATE
${IOCORE_INCLUDE_DIRS}
${PROXY_INCLUDE_DIRS}
Expand Down
2 changes: 2 additions & 0 deletions proxy/http2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ add_library(http2 STATIC
Http2SessionAccept.cc
Http2ServerSession.cc
)
add_library(ts::http2 ALIAS http2)

target_include_directories(http2 PRIVATE
${IOCORE_INCLUDE_DIRS}
${PROXY_INCLUDE_DIRS}
Expand Down
2 changes: 2 additions & 0 deletions proxy/logging/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ add_library(logging STATIC
YamlLogConfig.cc
YamlLogConfigDecoders.cc
)
add_library(ts::logging ALIAS logging)

target_include_directories(logging PRIVATE
${IOCORE_INCLUDE_DIRS}
${PROXY_INCLUDE_DIRS}
Expand Down
2 changes: 2 additions & 0 deletions proxy/shared/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@


add_library(diagsconfig STATIC DiagsConfig.cc)
add_library(ts::diagsconfig ALIAS diagsconfig)

target_include_directories(diagsconfig PRIVATE
${IOCORE_INCLUDE_DIRS}
${PROXY_INCLUDE_DIRS}
Expand Down
43 changes: 20 additions & 23 deletions src/traffic_server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,27 @@ target_include_directories(traffic_server PRIVATE
)
target_link_libraries(traffic_server
PRIVATE
tscore
http
http_remap
http2
logging
hdrs
configmanager
diagsconfig
inkutils
inkdns
inkhostdb
inkcache
fastlz
aio
tscpputil
proxy
inknet
records
inkevent
yaml-cpp
ts::tscore
ts::http
ts::http_remap
ts::http2
ts::logging
ts::hdrs
ts::configmanager
ts::diagsconfig
ts::inkutils
ts::inkdns
ts::inkhostdb
ts::inkcache
ts::aio
ts::proxy
ts::inknet
ts::records
ts::inkevent
libswoc
jsonrpc_protocol
jsonrpc_server
rpcpublichandlers
ts::jsonrpc_protocol
ts::jsonrpc_server
ts::rpcpublichandlers
)

if(TS_USE_QUIC)
Expand Down