Skip to content

Commit

Permalink
add exporters directory
Browse files Browse the repository at this point in the history
Signed-off-by: Fs <[email protected]>
  • Loading branch information
Fsu0413 committed Dec 30, 2023
1 parent 21d8355 commit 5383252
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 16 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ add_subdirectory(ssl)
add_subdirectory(apps)
add_subdirectory(engines)
add_subdirectory(tools)
add_subdirectory(exporters)

# OpenSSL 1.1 redesigns the whole test program.
# It currently depends on configdata.pm (It did "eval" it instead of "use" it. See "util/perl/OpenSSL/Test/Utils.pm", line 87) which we never generate in CMake.
Expand Down
5 changes: 0 additions & 5 deletions apps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,6 @@ install(FILES ${CMAKE_SOURCE_DIR}/openssl/apps/openssl.cnf
DESTINATION ${OPENSSL_OPENSSLDIR}
)

configure_file(openssl.pc.cmake.in openssl.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/openssl.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)

if (BUILD_TESTING)
if ( ( WIN32 OR CYGWIN ) AND BUILD_SHARED_LIBS )
get_target_property(CRYPTO_RUNTIME_OUTPUT_NAME crypto RUNTIME_OUTPUT_NAME)
Expand Down
6 changes: 0 additions & 6 deletions crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,3 @@ install(DIRECTORY ${CMAKE_SOURCE_DIR}/openssl/include/openssl
REGEX "^.+\\.in$" EXCLUDE
REGEX "^(.*[/\\])?__DECC_INCLUDE.+$" EXCLUDE
)

# issue: can't specify zlib path, especially for the condition that zlib is found by CMake but can't be found by pkgconfig
configure_file(libcrypto.pc.cmake.in libcrypto.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libcrypto.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)
17 changes: 17 additions & 0 deletions exporters/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@


# issue: can't specify zlib path, especially for the condition that zlib is found by CMake but can't be found by pkgconfig
configure_file(pkg-config/libcrypto.pc.cmake.in libcrypto.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libcrypto.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)

configure_file(pkg-config/libssl.pc.cmake.in libssl.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libssl.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)

configure_file(pkg-config/openssl.pc.cmake.in openssl.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/openssl.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,3 @@ install(TARGETS ssl
LIBRARY
ARCHIVE
)

configure_file(libssl.pc.cmake.in libssl.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libssl.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)

0 comments on commit 5383252

Please sign in to comment.