e3dbdcbdff
* HTTP_C::Implement Context::MakeRequest * httplib: Add add_client_cert_ASN1 and set_verify * HTTP_C: Fix request methode strings case in MakeRequest * HTTP_C: clang-format and cleanups * HTTP_C: Add comment about async in BeginRequest and BeginRequestAsync * Update httplib to contain all the changes we need; adapt http_c and web_services to the changes in httplib; addressed minor review comments * Add android-ifaddrs
24 lines
694 B
CMake
24 lines
694 B
CMake
add_library(web_service STATIC
|
|
announce_room_json.cpp
|
|
announce_room_json.h
|
|
telemetry_json.cpp
|
|
telemetry_json.h
|
|
verify_login.cpp
|
|
verify_login.h
|
|
verify_user_jwt.cpp
|
|
verify_user_jwt.h
|
|
web_backend.cpp
|
|
web_backend.h
|
|
)
|
|
|
|
create_target_directory_groups(web_service)
|
|
|
|
get_directory_property(OPENSSL_LIBS
|
|
DIRECTORY ${PROJECT_SOURCE_DIR}/externals/libressl
|
|
DEFINITION OPENSSL_LIBS)
|
|
target_compile_definitions(web_service PRIVATE -DCPPHTTPLIB_OPENSSL_SUPPORT)
|
|
target_link_libraries(web_service PRIVATE common network json-headers ${OPENSSL_LIBS} httplib lurlparser cpp-jwt)
|
|
if (ANDROID)
|
|
target_link_libraries(web_service PRIVATE ifaddrs)
|
|
endif()
|