Skip to content

Commit bd63269

Browse files
committed
Check in 1.8.0
1 parent 9bac5fc commit bd63269

File tree

364 files changed

+20977
-5860
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

364 files changed

+20977
-5860
lines changed

CMakeLists.txt

+39
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,44 @@ set(CMAKE_SKIP_BUILD_RPATH TRUE)
1616

1717
SET(LSQUIC_SERVER_MODE 1)
1818

19+
if (CMAKE_HOST_SYSTEM_NAME MATCHES "Linux" AND
20+
CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
21+
if (${ALPINE})
22+
message("Alpine X64")
23+
else()
24+
message("Set LINUX_X64")
25+
set (LINUX_X64 ON)
26+
endif()
27+
endif()
28+
if (CMAKE_HOST_SYSTEM_NAME MATCHES "Darwin")
29+
set (NOT_MACOS OFF)
30+
else()
31+
set (NOT_MACOS ON)
32+
endif()
33+
OPTION(MOD_PAGESPEED "Whether pagespeed should be built" ${LINUX_X64})
34+
OPTION(MOD_SECURITY "Whether mod_security should be built" ${NOT_MACOS})
35+
OPTION(MOD_LUA "Whether Lua should be built" ${LINUX_X64})
36+
OPTION(MOD_REQPARSER "Whether modreqparser should be built" OFF)
37+
OPTION(MOD_INSPECTOR "Whether modinspector should be built" OFF)
38+
OPTION(MOD_UPLOADPROGRESS "Whether uploadprogress should be built" OFF)
39+
OPTION(MOD_LSPHP "Whether mod_lsphp should be built" OFF)
40+
1941
include_directories( BEFORE include src/lshpack src/liblsquic/ls-qpack ${PROJECT_SOURCE_DIR}/../third-party/include/)
2042
link_directories( ${PROJECT_SOURCE_DIR}/../third-party/lib/)
2143

2244
#SET (CMAKE_C_COMPILER "/usr/bin/clang")
2345
#SET (CMAKE_CXX_COMPILER "/usr/bin/clang++")
2446

2547
IF (CMAKE_BUILD_TYPE MATCHES "Debug")
48+
if (${CMAKE_HOST_SYSTEM_NAME} MATCHES "Linux")
2649
## thread sanitizer
2750
#set (TSAN "1")
2851
set (ASAN "1")
2952
set (BUILD_TEST "1")
3053
add_definitions(-DRUN_TEST)
3154
set(libUnitTest libUnitTest++.a)
3255
###############################################################################
56+
endif()
3357
ENDIF()
3458

3559

@@ -105,6 +129,20 @@ add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
105129
#Add definition for QUIC
106130
add_definitions(-DH3_ALPN="\\x02h3\\x05h3-29")
107131

132+
if (${CMAKE_HOST_SYSTEM_NAME} MATCHES "Linux")
133+
# You must set COMPILE_IO_URING to true and NOT comment out -DIOURING OR
134+
# set COMPILE_IO_URING to false and comment out -DIOURING
135+
set(COMPILE_IO_URING
136+
true)
137+
add_definitions(-DIOURING)
138+
# You must set COMPILE_LINUX_AIO to true and NOT comment out -DLS_AIO_USE_LINUX_AIO OR
139+
# set COMPILE_LINUX_AIO to false and comment out -DLS_AIO_USE_LINUX_AIO
140+
set(COMPILE_LINUX_AIO
141+
true)
142+
add_definitions(-DLS_AIO_USE_LINUX_AIO)
143+
set(LINUX_AIO_LIB
144+
aio)
145+
endif()
108146

109147
# Update submodules as needed
110148
find_package(Git QUIET)
@@ -164,6 +202,7 @@ add_definitions( ${LFS_CFLAGS} )
164202
add_definitions(-DUSE_UDNS)
165203

166204
add_subdirectory(src)
205+
add_subdirectory(support)
167206

168207
if (BUILD_TEST)
169208
add_subdirectory(test)

LSQUICCOMMIT

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
560ade1584eb275241fb9b48dff95aec4bdcf671
1+
9c877a41776ca8f9c59834c04614ed30a908f2f1

0 commit comments

Comments
 (0)