Skip to content
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

Release v0.17.0 #170

Merged
merged 95 commits into from
Aug 8, 2023
Merged
Changes from 1 commit
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
9411290
[WIP] Upgrade relic to the version 0.5.0
SergeySeroshtan Sep 10, 2020
567b113
Merge branch 'release/v0.16.2' into develop
SergeySeroshtan Oct 19, 2022
b2ea381
Bump version to the v0.16.3-dev1
SergeySeroshtan Oct 19, 2022
390edc6
Merge branch 'master' into develop
SergeySeroshtan Oct 21, 2022
b80f5a5
Move virgil-crypto-wrapper-x Cocoapods spec to this repo (xcframework)
SergeySeroshtan Oct 29, 2022
405ff7d
Add apple frameworks to git lfs (ci)
SergeySeroshtan Oct 29, 2022
a8ac8de
Update git actions (ci)
SergeySeroshtan Oct 30, 2022
122202a
Remove xcframeworks from git lfs
SergeySeroshtan Oct 30, 2022
36282e7
Add xcframeworks build check git actions (ci)
SergeySeroshtan Oct 30, 2022
8adaf2f
Use macos native shasum utility (ci)
SergeySeroshtan Oct 30, 2022
299bfd5
Use Xcode 14.0.1 for CI build and deployment (ci)
SergeySeroshtan Oct 30, 2022
b4acae2
Use Xcode 14.0.1 for CI build and deployment #2 (ci)
SergeySeroshtan Oct 30, 2022
20d6e10
Update spm package
SergeySeroshtan Oct 30, 2022
d7e82ef
Use git lfs for xcarchives (ci)
SergeySeroshtan Oct 31, 2022
0d0555c
Use git lfs for xcarchives #2 (ci)
SergeySeroshtan Oct 31, 2022
d81a980
Update git actions dependency: actions/checkout@v3 (ci)
SergeySeroshtan Oct 31, 2022
eb7c916
Bump version to the v0.16.4-dev2
SergeySeroshtan Oct 31, 2022
68c874d
Mark release as pre-release during git actions deployment (ci)
SergeySeroshtan Oct 31, 2022
9f303b7
Rebuild xcframeworks
SergeySeroshtan Oct 31, 2022
f620e5d
Run 'build' workflow only on master and develop branches (ci)
SergeySeroshtan Oct 31, 2022
320a101
Bump version to the v0.16.4-dev3
SergeySeroshtan Oct 31, 2022
78f1945
Add verbose logs to cocoapods deploy step (ci)
SergeySeroshtan Oct 31, 2022
2733b36
Use the latest cocoapods version (ci)
SergeySeroshtan Oct 31, 2022
45abe73
Use the latest cocoapods version #2 (ci)
SergeySeroshtan Oct 31, 2022
46c198c
Use the latest cocoapods version #3 (ci)
SergeySeroshtan Oct 31, 2022
1715c4e
Remove unused Xcode simulators (ci)
SergeySeroshtan Oct 31, 2022
05b4b7e
Remove unused Xcode simulators #2 (ci)
SergeySeroshtan Oct 31, 2022
a414575
Remove unused Xcode simulators #3 (ci)
SergeySeroshtan Oct 31, 2022
329d465
Download missed Simulator runtimes for watchOS and tvOS (ci)
SergeySeroshtan Oct 31, 2022
1aaf572
Prettify github actions script (ci)
SergeySeroshtan Oct 31, 2022
d077e6c
Fix Xcode simulator runtimes (ci)
SergeySeroshtan Oct 31, 2022
8b1db94
Fix Xcode simulator runtimes #2 (ci)
SergeySeroshtan Oct 31, 2022
a17bd16
Fix Xcode simulator runtimes #3 (ci)
SergeySeroshtan Oct 31, 2022
a71a1dd
Remove verbosity from git actions (ci)
SergeySeroshtan Oct 31, 2022
7b697b8
Bump version to the v0.16.4-dev4
SergeySeroshtan Oct 31, 2022
a800bb2
Synchronize recently pushed pods during release (ci,cocoapods)
SergeySeroshtan Oct 31, 2022
35e8962
Bump version to the v0.16.4-dev5
SergeySeroshtan Oct 31, 2022
36a85e0
Migrate travis-ci to git actions (ci)
SergeySeroshtan Oct 31, 2022
d1aa282
Migrate travis-ci to git actions #2 (ci)
SergeySeroshtan Oct 31, 2022
b30895b
Migrate travis-ci to git actions #3 (ci)
SergeySeroshtan Oct 31, 2022
e24af01
Migrate travis-ci to git actions #4 (ci)
SergeySeroshtan Oct 31, 2022
9ff926d
Migrate travis-ci to git actions #5 (ci)
SergeySeroshtan Oct 31, 2022
b6c9531
Migrate travis-ci to git actions #6 (ci)
SergeySeroshtan Oct 31, 2022
a6e5ca6
Migrate travis-ci to git actions #7 (ci)
SergeySeroshtan Oct 31, 2022
3cbfd41
Update mbedTLS v2.28.0 -> v2.28.3
SergeySeroshtan May 5, 2023
2a4152e
Fix CMake build for Ninja generator
SergeySeroshtan May 5, 2023
c7d6df4
Merge branch 'develop' into support/upgrade-relic
SergeySeroshtan May 5, 2023
182cf33
[WIP] Upgrade relic to the version 0.6.0
SergeySeroshtan May 5, 2023
041c701
Fix compilation errors for wasm
SergeySeroshtan May 6, 2023
5072a02
Update javascript/wasm dependencies
SergeySeroshtan May 6, 2023
ad7df88
Fix bumpver.sh for JS
SergeySeroshtan May 6, 2023
daba85b
Bump version to 0.16.4-dev6
SergeySeroshtan May 6, 2023
6d55384
Fix typo
SergeySeroshtan May 6, 2023
6a7ee9a
Add helper script to install/copy wasm files (bash)
SergeySeroshtan May 8, 2023
b8e8300
Merge branch 'develop' into support/upgrade-relic
SergeySeroshtan May 8, 2023
af6d4a9
[WIP] Upgrade relic to the version 0.6.0
SergeySeroshtan May 8, 2023
5ffa8c6
! Change tests for pythia backward compatibility
SergeySeroshtan May 11, 2023
861e882
Fix type of key_id argument within vscr_ratchet_skipped_messages module
SergeySeroshtan May 12, 2023
4c794d6
Split build Github action to macos and linux (ci)
SergeySeroshtan May 12, 2023
c1749da
Fix memory leak within pythia tests
SergeySeroshtan May 12, 2023
bb68d1f
Update github workflow toolchain (ci)
SergeySeroshtan Aug 6, 2023
0131681
Bump version to 0.16.4-dev.10
SergeySeroshtan Aug 6, 2023
f8e9403
Update Apple toolchain (cmake)
SergeySeroshtan Aug 6, 2023
660408c
Rebuild Apple frameworks
SergeySeroshtan Aug 6, 2023
7fd8d3d
Merge branch 'main' into develop
SergeySeroshtan Aug 6, 2023
c1989ea
Fix type of key_id argument within vscr_ratchet_skipped_messages module
SergeySeroshtan May 12, 2023
5c92aa6
Fix memory leak within pythia tests
SergeySeroshtan May 12, 2023
c0ebb7d
Fix bumpver.sh to reflect -rc.1 versions
SergeySeroshtan Aug 6, 2023
761744a
Bump version to 0.16.4-dev.10 (2)
SergeySeroshtan Aug 6, 2023
06135f3
Revert "Fix memory leak within pythia tests"
SergeySeroshtan Aug 6, 2023
9dba649
Bump min supported macos version to 10.13
SergeySeroshtan Aug 6, 2023
9e51e51
Rebuild Apple frameworks
SergeySeroshtan Aug 6, 2023
e75ebd5
Fix bumpver.sh
SergeySeroshtan Aug 7, 2023
08bae60
Merge branch 'support/upgrade-relic' into develop
SergeySeroshtan Aug 7, 2023
f1f5dfc
Remove support for Apple 32-bit architectures
SergeySeroshtan Aug 7, 2023
505aa19
Remove support for Apple bitcode
SergeySeroshtan Aug 7, 2023
a4d7317
Rebuild Apple frameworks without bitcode
SergeySeroshtan Aug 7, 2023
5d5c00d
Add script to run swift tests locally
SergeySeroshtan Aug 7, 2023
01e41fb
Run SPM tests on CI
SergeySeroshtan Aug 7, 2023
3bb0f0d
Bump version to 0.17.0-dev.1
SergeySeroshtan Aug 7, 2023
5dc704c
Rebuild Apple frameworks without bitcode v0.17.0
SergeySeroshtan Aug 7, 2023
dc1784f
Use all cpus when build_apple_frameworks.sh
SergeySeroshtan Aug 7, 2023
6d17537
Restore i386 acrhitecture for watchOS simulator
SergeySeroshtan Aug 7, 2023
6c64cfe
Bump version to 0.17.0-dev.2
SergeySeroshtan Aug 7, 2023
abf2fd1
Rebuild Apple frameworks
SergeySeroshtan Aug 7, 2023
f3f099e
Restore armv7k acrhitecture for watchOS
SergeySeroshtan Aug 8, 2023
283f156
Bump version to 0.17.0-dev.3
SergeySeroshtan Aug 8, 2023
8cce0e3
Update Apple frameworks binaries
SergeySeroshtan Aug 8, 2023
ef33396
Update ChangeLog for version 0.17.0
SergeySeroshtan Aug 8, 2023
26a42cc
Bump version to 0.17.0
SergeySeroshtan Aug 8, 2023
7e8bc3c
Update Apple frameworks binaries to version 0.17.0
SergeySeroshtan Aug 8, 2023
cb616e2
Build macOS also for release and hotfix branches (ci)
SergeySeroshtan Aug 8, 2023
e91a343
Update ChangeLog for version 0.17.0 (2)
SergeySeroshtan Aug 8, 2023
0146e7e
Update README (docs) [skip ci]
SergeySeroshtan Aug 8, 2023
9286479
Remove stale TODO [ci skip]
SergeySeroshtan Aug 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Apple toolchain (cmake)
  • Loading branch information
SergeySeroshtan committed Aug 6, 2023
commit f8e9403c54c97f567cfe9dd2988806ba71bc6e0a
79 changes: 30 additions & 49 deletions cmake/apple.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,6 @@
# APPLE_BITCODE
# Same as XCode option, default is YES
#
# CMAKE_APPLE_PLATFORM_DEVELOPER_ROOT = automatic(default) or /path/to/platform/Developer folder
# By default this location is automatcially chosen based on the PLATFORM value above.
# If set manually, it will override the default location and force the user of a particular Developer Platform
#
# CMAKE_APPLE_SDK_ROOT = automatic(default) or /path/to/platform/Developer/SDKs/SDK folder
# By default this location is automatcially chosen based on the CMAKE_APPLE_PLATFORM_DEVELOPER_ROOT value.
# In this case it will always be the most up-to-date SDK found in the CMAKE_APPLE_PLATFORM_DEVELOPER_ROOT path.
# If set manually, this will force the use of a specific SDK version
#
# Macros:
#
# set_xcode_property (TARGET XCODE_PROPERTY XCODE_VALUE)
Expand Down Expand Up @@ -110,15 +101,15 @@ set(APPLE_BITCODE TRUE CACHE BOOL "ON/OFF support of the Apple bitcode")
set(APPLE_EXTENSION TRUE CACHE BOOL "ON/OFF support of the Apple Extensions")

set(IOS_DEVICE_FAMILY "1,2" CACHE STRING "iPhone (1), iPad(2), iPhone/iPad(1,2)")
set(IOS_DEPLOYMENT_TARGET "9.0" CACHE STRING "iOS deployment version")
set(IOS_DEPLOYMENT_TARGET "11.0" CACHE STRING "iOS deployment version")

set(WATCHOS_DEPLOYMENT_TARGET "2.0" CACHE STRING "WatchOS deployment version")
set(WATCHOS_DEPLOYMENT_TARGET "4.0" CACHE STRING "WatchOS deployment version")
set(WATCHOS_DEVICE_FAMILY "4" CACHE STRING "Apple Watch (4)")

set(TVOS_DEPLOYMENT_TARGET "9.0" CACHE STRING "TVOS deployment version")
set(TVOS_DEPLOYMENT_TARGET "11.0" CACHE STRING "TVOS deployment version")
set(TVOS_DEVICE_FAMILY "4" CACHE STRING "Apple TV (4)")

set(MACOS_DEPLOYMENT_TARGET "10.9" CACHE STRING "MACOS deployment version")
set(MACOS_DEPLOYMENT_TARGET "10.13" CACHE STRING "MACOS deployment version")

# Touch cache variables to suppress warning "Unused variable"
foreach(_apple_os IOS WATCHOS TVOS MACOS)
Expand All @@ -132,25 +123,25 @@ endforeach()
# Check the platform selection and setup for developer root and define
if(APPLE_PLATFORM STREQUAL "IOS")
set(CMAKE_SYSTEM_NAME iOS)
set(APPLE_PLATFORM_LOCATION "iPhoneOS.platform")
set(APPLE_PLATFORM_NAME "iphoneos")
set(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos")
set(APPLE_ARCH armv7 armv7s arm64)
set(APPLE_ARCH arm64)
set(APPLE_VERSION_FLAG "-miphoneos-version-min=${IOS_DEPLOYMENT_TARGET}")
set(APPLE_DEVICE_FAMILY "${IOS_DEVICE_FAMILY}")
set(APPLE_DEPLOYMENT_TARGET "${IOS_DEPLOYMENT_TARGET}")

elseif(APPLE_PLATFORM MATCHES "IOS_SIM")
set(CMAKE_SYSTEM_NAME iOS)
set(APPLE_PLATFORM_LOCATION "iPhoneSimulator.platform")
set(APPLE_PLATFORM_NAME "iphonesimulator")
set(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphonesimulator")
set(APPLE_ARCH i386 x86_64 arm64)
set(APPLE_ARCH x86_64 arm64)
set(APPLE_VERSION_FLAG "-mios-simulator-version-min=${IOS_DEPLOYMENT_TARGET}")
set(APPLE_DEVICE_FAMILY "${IOS_DEVICE_FAMILY}")
set(APPLE_DEPLOYMENT_TARGET "${IOS_DEPLOYMENT_TARGET}")

elseif(APPLE_PLATFORM STREQUAL "WATCHOS")
set(CMAKE_SYSTEM_NAME watchOS)
set(APPLE_PLATFORM_LOCATION "WatchOS.platform")
set(APPLE_PLATFORM_NAME "watchos")
set(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-watchos")
set(APPLE_ARCH armv7k arm64_32 arm64)
set(APPLE_VERSION_FLAG "-mwatchos-version-min=${WATCHOS_DEPLOYMENT_TARGET}")
Expand All @@ -159,7 +150,7 @@ elseif(APPLE_PLATFORM STREQUAL "WATCHOS")

elseif(APPLE_PLATFORM STREQUAL "WATCHOS_SIM")
set(CMAKE_SYSTEM_NAME watchOS)
set(APPLE_PLATFORM_LOCATION "WatchSimulator.platform")
set(APPLE_PLATFORM_NAME "watchsimulator")
set(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-watchsimulator")
set(APPLE_ARCH i386 x86_64 arm64)
set(APPLE_VERSION_FLAG "-mwatchos-simulator-version-min=${WATCHOS_DEPLOYMENT_TARGET}")
Expand All @@ -168,7 +159,7 @@ elseif(APPLE_PLATFORM STREQUAL "WATCHOS_SIM")

elseif(APPLE_PLATFORM STREQUAL "TVOS")
set(CMAKE_SYSTEM_NAME tvOS)
set(APPLE_PLATFORM_LOCATION "AppleTVOS.platform")
set(APPLE_PLATFORM_NAME "appletvos")
set(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-appletvos")
set(APPLE_ARCH arm64)
set(APPLE_VERSION_FLAG "-mtvos-version-min=${TVOS_DEPLOYMENT_TARGET}")
Expand All @@ -177,7 +168,7 @@ elseif(APPLE_PLATFORM STREQUAL "TVOS")

elseif(APPLE_PLATFORM STREQUAL "TVOS_SIM")
set(CMAKE_SYSTEM_NAME tvOS)
set(APPLE_PLATFORM_LOCATION "AppleTVSimulator.platform")
set(APPLE_PLATFORM_NAME "appletvsimulator")
set(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-appletvsimulator")
set(APPLE_ARCH x86_64 arm64)
set(APPLE_VERSION_FLAG "-mtvos-simulator-version-min=${TVOS_DEPLOYMENT_TARGET}")
Expand All @@ -186,7 +177,7 @@ elseif(APPLE_PLATFORM STREQUAL "TVOS_SIM")

elseif(APPLE_PLATFORM STREQUAL "MACOS")
set(CMAKE_SYSTEM_NAME Darwin)
set(APPLE_PLATFORM_LOCATION "MacOSX.platform")
set(APPLE_PLATFORM_NAME "macosx")
set(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-macos")
set(APPLE_ARCH x86_64 arm64)
set(APPLE_VERSION_FLAG "-mmacos-version-min=${MACOS_DEPLOYMENT_TARGET}")
Expand Down Expand Up @@ -223,38 +214,28 @@ endif()
# ---------------------------------------------------------------------------
# Define: CMAKE_OSX_SYSROOT
# ---------------------------------------------------------------------------
find_program(XCRUN_EXECUTABLE name xcrun PATHS /usr/bin /usr/local/bin NO_CMAKE_FIND_ROOT_PATH)
if (NOT XCRUN_EXECUTABLE)
message(FATAL_ERROR "Can not find 'xcrun' utility")
endif()

# Setup Apple *OS developer location unless specified manually with CMAKE_APPLE_PLATFORM_DEVELOPER_ROOT
set(CMAKE_APPLE_DEVELOPER_ROOT "/Applications/Xcode.app/Contents/Developer")

if(NOT DEFINED CMAKE_APPLE_PLATFORM_DEVELOPER_ROOT)
set(CMAKE_APPLE_PLATFORM_DEVELOPER_ROOT "${CMAKE_APPLE_DEVELOPER_ROOT}/Platforms/${APPLE_PLATFORM_LOCATION}/Developer")
endif(NOT DEFINED CMAKE_APPLE_PLATFORM_DEVELOPER_ROOT)

set(CMAKE_APPLE_PLATFORM_DEVELOPER_ROOT ${CMAKE_APPLE_PLATFORM_DEVELOPER_ROOT} CACHE PATH "Location of Apple Platform")

# Find and use the most recent Apple SDK unless specified manually with CMAKE_APPLE_SDK_ROOT
if(NOT DEFINED CMAKE_APPLE_SDK_ROOT)
file(GLOB _CMAKE_APPLE_SDKS "${CMAKE_APPLE_PLATFORM_DEVELOPER_ROOT}/SDKs/*")

if(_CMAKE_APPLE_SDKS)
list(SORT _CMAKE_APPLE_SDKS)
list(REVERSE _CMAKE_APPLE_SDKS)
list(GET _CMAKE_APPLE_SDKS 0 CMAKE_APPLE_SDK_ROOT)

else(_CMAKE_APPLE_SDKS)
message(FATAL_ERROR "No Apple *OS SDK's found in default search path ${CMAKE_APPLE_PLATFORM_DEVELOPER_ROOT}."
" Manually set CMAKE_APPLE_SDK_ROOT or install the Apple *OS SDK.")
endif(_CMAKE_APPLE_SDKS)
execute_process(
COMMAND ${XCRUN_EXECUTABLE} --sdk ${APPLE_PLATFORM_NAME} --show-sdk-path
RESULT_VARIABLE APPLE_SDK_ROOT_RESULT
OUTPUT_VARIABLE APPLE_SDK_ROOT
OUTPUT_STRIP_TRAILING_WHITESPACE
)

message (STATUS "Apple SDK: ${CMAKE_APPLE_SDK_ROOT}")
endif(NOT DEFINED CMAKE_APPLE_SDK_ROOT)
if (NOT APPLE_SDK_ROOT_RESULT STREQUAL "0")
message(FATAL_ERROR "Can not define SDK path for ${APPLE_PLATFORM_NAME}")
else()
message(STATUS "Found Apple SDK at path: ${APPLE_SDK_ROOT}")
endif()

set(CMAKE_APPLE_SDK_ROOT ${CMAKE_APPLE_SDK_ROOT} CACHE PATH "Location of the selected Apple *OS SDK")
set(CMAKE_APPLE_SDK_ROOT ${APPLE_SDK_ROOT} CACHE PATH "Location of the selected Apple *OS SDK")

# Set the sysroot default to the most recent SDK
set(CMAKE_OSX_SYSROOT ${CMAKE_APPLE_SDK_ROOT} CACHE PATH "Sysroot used for Apple *OS support")

set(CMAKE_OSX_SYSROOT ${APPLE_SDK_ROOT} CACHE PATH "Sysroot used for Apple *OS support")

# Set the find root to the Apple *OS developer roots and to user defined paths
set(CMAKE_FIND_ROOT_PATH
Expand Down