Skip to content

Commit

Permalink
CPack configurations
Browse files Browse the repository at this point in the history
Signed-off-by: Fs <[email protected]>
  • Loading branch information
Fsu0413 committed Jan 14, 2024
1 parent 9e107be commit 2469a8e
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -636,3 +636,52 @@ add_subdirectory(exporters)
if (OPENSSL_BUILD_DOCS)
add_subdirectory(doc)
endif()

# CPack configuration items
if (DEFINED OPENSSL_BUILD_PLATFORM)
set(CPACK_SYSTEM_NAME "${OPENSSL_BUILD_PLATFORM}")
elseif (APPLE AND NOT IOS AND ( OPENSSL_OSX_ARCHITECTURES_LENGTH GREATER 1 ) )
set(CPACK_SYSTEM_NAME "darwin64-unified64")
endif()
set(CPACK_PACKAGE_VENDOR "Fsu0413/openssl-externalCMake")
set(CPACK_THREADS 0)
set(CPACK_PACKAGE_VERSION "${OPENSSL_VERSION_REAL}")
if (WIN32)
set(CPACK_GENERATOR 7Z ZIP)
else()
set(CPACK_GENERATOR TGZ TXZ)
endif()
if (CMAKE_HOST_WIN32)
set(CPACK_SOURCE_GENERATOR 7Z ZIP)
else()
set(CPACK_SOURCE_GENERATOR TGZ TXZ)
endif()
set(CPACK_SOURCE_IGNORE_FILES
# Git / GitHub files
[[/\\.git]]

# Local configuration file - used in development environment for Fsu0413
[[\\.FsEnv\\.cmake$]]

# Temporary files
[[~]]
[[\\.orig$]]
[[/\\.DS_Store/]]
[[CMakeLists\\.txt\\.user.*$]]
[[\\.autosave$]]

# OpenSSL Files not for release
[[/openssl/Configurations/90-team\\.norelease\\.conf$]]
[[/openssl/util/mktar\\.sh$]]
[[/openssl/dev/]]

# OpenSSL fuzzer files
[[/openssl/fuzz/corpora/]]

# OpenSSL submodules
[[/openssl/krb5/]]
[[/openssl/pyca-cryptography/]]
[[/openssl/wycheproof/]]
[[/openssl/gost-engine/]]
)
include(CPack)

0 comments on commit 2469a8e

Please sign in to comment.