|
| 1 | +# This source file is part of the Swift open source project |
| 2 | +# |
| 3 | +# Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors |
| 4 | +# Licensed under Apache License v2.0 with Runtime Library Exception |
| 5 | +# |
| 6 | +# See http://swift.org/LICENSE.txt for license information |
| 7 | +# See http://swift.org/CONTRIBUTORS.txt for Swift project authors |
| 8 | + |
| 9 | +add_library(PackageCollectionsSigning |
| 10 | + Certificate/Certificate.swift |
| 11 | + Certificate/CertificatePolicy.swift |
| 12 | + Key/ASN1/ASN1.swift |
| 13 | + Key/ASN1/ASN1Error.swift |
| 14 | + Key/ASN1/PEMDocument.swift |
| 15 | + Key/ASN1/SEC1PrivateKey.swift |
| 16 | + Key/ASN1/SubjectPublickeyInfo.swift |
| 17 | + Key/ASN1/Types/ASN1BitString.swift |
| 18 | + Key/ASN1/Types/ASN1Identifier.swift |
| 19 | + Key/ASN1/Types/ASN1Integer.swift |
| 20 | + Key/ASN1/Types/ASN1ObjectIdentifier.swift |
| 21 | + Key/ASN1/Types/ASN1OctetString.swift |
| 22 | + Key/BoringSSLKey.swift |
| 23 | + Key/Key+EC.swift |
| 24 | + Key/Key+RSA.swift |
| 25 | + Key/Key.swift |
| 26 | + PackageCollectionSigning.swift |
| 27 | + Signing/BoringSSLSigning.swift |
| 28 | + Signing/Signature.swift |
| 29 | + Signing/Signing+ECKey.swift |
| 30 | + Signing/Signing+RSAKey.swift |
| 31 | + Signing/Signing.swift |
| 32 | + Utilities/Base64URL.swift |
| 33 | + Utilities/Utilities.swift) |
| 34 | +# NOTE(compnerd) workaround for CMake not setting up include flags yet |
| 35 | +set_target_properties(PackageCollectionsSigning PROPERTIES |
| 36 | + INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_Swift_MODULE_DIRECTORY};${PROJECT_SOURCE_DIR}/Sources/PackageCollectionsSigningLibc/include") |
| 37 | +target_link_libraries(PackageCollectionsSigning PUBLIC |
| 38 | + $<$<NOT:$<PLATFORM_ID:Darwin>>:dispatch> |
| 39 | + $<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation> |
| 40 | + Basics |
| 41 | + CCryptoBoringSSL |
| 42 | + Crypto |
| 43 | + PackageCollectionsModel |
| 44 | + TSCBasic) |
| 45 | +target_link_libraries(PackageCollectionsSigning PRIVATE |
| 46 | + PackageCollectionsSigningLibc) |
| 47 | + |
| 48 | +if(USE_CMAKE_INSTALL) |
| 49 | + install(TARGETS PackageCollectionsSigning |
| 50 | + ARCHIVE DESTINATION lib |
| 51 | + LIBRARY DESTINATION lib |
| 52 | + RUNTIME DESTINATION bin) |
| 53 | +endif() |
| 54 | +set_property(GLOBAL APPEND PROPERTY SwiftPM_EXPORTS PackageCollectionsSigning) |
0 commit comments