Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* MDF [quic] MSQUIC support build with NDK #1089

Merged
merged 1 commit into from
Oct 18, 2024
Merged
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
18 changes: 12 additions & 6 deletions src/supplemental/quic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ if (NNG_ENABLE_QUIC)
# nng_test(quic_api_test)
nng_test(msquic_dial_test)

find_path(INTERNAL_MSQUIC_INCLUDE_DIR
NAMES msquic.h
HINTS ${_MSQUIC_ROOT_HINTS}
PATHS ${PROJECT_SOURCE_DIR}/extern/msquic/src
PATH_SUFFIXES inc)
if(NOT ANDROID)
find_path(INTERNAL_MSQUIC_INCLUDE_DIR
NAMES msquic.h
HINTS ${_MSQUIC_ROOT_HINTS}
PATHS ${PROJECT_SOURCE_DIR}/extern/msquic/src
PATH_SUFFIXES inc)
endif()

if(NNG_PLATFORM_POSIX)
nng_link_libraries(dl)
Expand All @@ -37,7 +39,11 @@ if (NNG_ENABLE_QUIC)
# nng_link_libraries("${CMAKE_SOURCE_DIR}/build/_deps/opensslquic-build/openssl/lib/libcrypto.a")

if(NNG_PROTO_MQTT_BROKER)
nng_include_directories(${INTERNAL_MSQUIC_INCLUDE_DIR})
if(NOT ANDROID)
nng_include_directories(${INTERNAL_MSQUIC_INCLUDE_DIR})
else()
nng_include_directories(${PROJECT_SOURCE_DIR}/extern/msquic/src/inc)
endif()
endif()
# set_property(CACHE NNG_QUIC_LIB PROPERTY STRINGS ${NNG_TLS_ENGINES})
else ()
Expand Down
Loading