mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 08:11:50 -04:00
- Belatedly update to version 1.2.1 and sync port description - Builds with CMake now and uses modern libraries instead of the Apache Portable Runtime (devel/apr1) - While upstream asks for C++11, force C++17 because that's how Abseil C++ libraries are currently built, otherwise it won't link due to ABI incompatibilities - Hook two provided tests to our framework (USES+=cmake:testing)
39 lines
1 KiB
Text
39 lines
1 KiB
Text
--- test/CMakeLists.txt.orig 2020-04-15 05:06:21 UTC
|
|
+++ test/CMakeLists.txt
|
|
@@ -3,14 +3,14 @@ add_library(
|
|
test_server.cc
|
|
test_server.h
|
|
)
|
|
-target_link_libraries(testserver_lib PUBLIC common -lev -lssl.1.1 -lcrypto.1.1 -lhttp_parser)
|
|
+target_link_libraries(testserver_lib PUBLIC common -lev -lpthread -lssl -lcrypto -lhttp_parser)
|
|
|
|
add_library(
|
|
keygen_lib OBJECT
|
|
test_keygen.cc
|
|
test_keygen.h
|
|
)
|
|
-target_link_libraries(keygen_lib PUBLIC common -lssl.1.1 -lcrypto.1.1)
|
|
+target_link_libraries(keygen_lib PUBLIC common -lssl -lcrypto)
|
|
|
|
add_executable(
|
|
testserver
|
|
@@ -22,7 +22,6 @@ add_executable(
|
|
iotest
|
|
io_test.cc
|
|
)
|
|
-add_dependencies(iotest gtest)
|
|
target_link_libraries(iotest testserver_lib io cpu common base64 -lgtest)
|
|
add_test(iotest iotest)
|
|
|
|
@@ -30,6 +29,10 @@ add_executable(
|
|
tlstest
|
|
tls_test.cc
|
|
)
|
|
-add_dependencies(tlstest gtest)
|
|
target_link_libraries(tlstest testserver_lib io cpu common keygen_lib base64 -lgtest)
|
|
add_test(tlstest tlstest)
|
|
+
|
|
+install(TARGETS
|
|
+ testserver
|
|
+ DESTINATION bin
|
|
+)
|