-
Notifications
You must be signed in to change notification settings - Fork 176
Add CMake build files #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
16cd664
Add CMake build files
yim-lee 84c5d33
Specify list of files for CCryptoBoringSSL
yim-lee 2a842bd
Set BUILD_SHARED_LIBS
yim-lee ba7fad3
Set WIN32_LEAN_AND_MEAN
yim-lee 5c1c060
don't install CCryptoBoringSSL
yim-lee 10ef3bd
don't install CCryptoBoringSSLShims
yim-lee e7a3732
rename project
yim-lee 638a69c
build: remove bleeding whitespace (NFC)
compnerd 2f6c1ac
CCryptoBoringSSL: repair the Windows build
compnerd ad96913
remove my WIN32_LEAN_AND_MEAN change
yim-lee 13951e6
build: explicitly propagate include paths
compnerd fd1eaab
CCryptoBoringSSL,CCryptoBoringSSLShims: add modulemaps
compnerd c47a205
Fix modulemap files
yim-lee 5aa1ff2
Builds on ubuntu-focal
yim-lee b3fa911
Trying finding and linking CryptoKit on Apple platforms
yim-lee 69512b9
Set '-fPIC' the correct way
yim-lee 56c512e
build: build macOS against BoringSSL
compnerd bf80ab8
Fix check_no_api_breakages script
yim-lee 2e0bae2
Script to update CMakeLists.txt
yim-lee d8a1295
Update gitignore per Saleem's feedback
yim-lee 146f23b
Add code comment
yim-lee f73947a
Improved 'find'
yim-lee 2f3091f
Add assembly files for Apple and Linux
yim-lee c2b84ba
Allow year 2021 in copyright header
yim-lee 5b2e9c6
Add cmake files to license header check
yim-lee 064a2cb
Add check for source file changes that would impact CMakeLists.txt
yim-lee 9093150
Make sort consistent across platforms
yim-lee ace3765
Missing 'CMAKE_SYSTEM_PROCESSOR MATCHES' check
yim-lee 4a1b864
Generate .S list
yim-lee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.DS_Store | ||
/.build | ||
/out | ||
/Packages | ||
/*.xcodeproj | ||
Package.pins | ||
|
@@ -13,3 +14,4 @@ DerivedData | |
**/gyb.pyc | ||
|
||
.*.sw[nop] | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
##===----------------------------------------------------------------------===## | ||
## | ||
## This source file is part of the SwiftCrypto open source project | ||
## | ||
## Copyright (c) 2021 Apple Inc. and the SwiftCrypto project authors | ||
## Licensed under Apache License v2.0 | ||
## | ||
## See LICENSE.txt for license information | ||
## See CONTRIBUTORS.md for the list of SwiftCrypto project authors | ||
## | ||
## SPDX-License-Identifier: Apache-2.0 | ||
## | ||
##===----------------------------------------------------------------------===## | ||
|
||
cmake_minimum_required(VERSION 3.15.1) | ||
|
||
project(SwiftCrypto | ||
LANGUAGES ASM C Swift) | ||
|
||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules) | ||
|
||
include(SwiftSupport) | ||
|
||
if(CMAKE_VERSION VERSION_LESS 3.16 AND CMAKE_SYSTEM_NAME STREQUAL Windows) | ||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | ||
else() | ||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) | ||
endif() | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | ||
set(CMAKE_Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/swift) | ||
|
||
if(CMAKE_SYSTEM_NAME STREQUAL Windows OR CMAKE_SYSTEM_NAME STREQUAL Darwin) | ||
option(BUILD_SHARED_LIBS "Build shared libraries by default" YES) | ||
endif() | ||
|
||
if(BUILD_SHARED_LIBS) | ||
set(CMAKE_POSITION_INDEPENDENT_CODE YES) | ||
endif() | ||
|
||
add_subdirectory(Sources) | ||
add_subdirectory(cmake/modules) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.