Skip to content

Commit fa4056d

Browse files
authored
Increase version number (#551)
- add arm64 support to iOS simulator IB-7723, IB-7745 Signed-off-by: Raul Metsma <[email protected]>
1 parent f20adfc commit fa4056d

File tree

9 files changed

+32
-25
lines changed

9 files changed

+32
-25
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.16)
22
if(POLICY CMP0122)
33
cmake_policy(SET CMP0122 NEW)
44
endif()
5-
project(libdigidocpp VERSION 3.16.0)
5+
project(libdigidocpp VERSION 3.17.0)
66
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
77

88
include(VersionInfo)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* License: LGPL 2.1
66
* &copy; Estonian Information System Authority
77
* [Architecture of ID-software](http://open-eid.github.io)
8+
* [API Documentation](http://open-eid.github.io/libdigidocpp)
89

910
## Building
1011
[![Build Status](https://github.com/open-eid/libdigidocpp/workflows/CI/badge.svg?branch=master)](https://github.com/open-eid/libdigidocpp/actions)
@@ -110,8 +111,7 @@
110111
cmake -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake `
111112
-DVCPKG_TARGET_TRIPLET=x64-windows-v142 `
112113
-DVCPKG_MANIFEST_FEATURES=tests `
113-
-DXSD_INCLUDE_DIR=xsd/libxsd `
114-
-DXSD_EXECUTABLE=xsd/bin/xsd.exe `
114+
-DXSD_ROOT=xsd/libxsd `
115115
-B build -S .
116116

117117
Optional CMake parameters:

build-library.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ if [ "$#" -eq 0 ]; then
1111
echo " - MACOSX_DEPLOYMENT_TARGET=10.15"
1212
echo " - IPHONEOS_DEPLOYMENT_TARGET=12.0"
1313
echo " archs to build on macOS/iOS"
14-
echo " - ARCHS=\"x86_64 arm64\" (macOS)"
14+
echo " - ARCHS=\"arm64 x86_64\" (macOS)"
1515
echo " - ARCHS=\"arm64\" (iOS)"
16-
echo " - ARCHS=\"x86_64\" (iPhoneSimulator)"
16+
echo " - ARCHS=\"arm64 x86_64\" (iPhoneSimulator)"
1717
exit
1818
fi
1919

@@ -55,15 +55,15 @@ case "$@" in
5555
echo "Building for iOS Simulator"
5656
TARGET=iphonesimulator
5757
SYSROOT=iphonesimulator
58-
: ${ARCHS:="x86_64"}
58+
: ${ARCHS:="arm64 x86_64"}
5959
;;
6060
*catalyst*)
6161
echo "Building for iOS macOS Catalyst"
6262
TARGET=iphonecatalyst
6363
SYSROOT=macosx
6464
export CFLAGS="-target x86_64-apple-ios-macabi"
6565
export CXXFLAGS="-target x86_64-apple-ios-macabi"
66-
: ${ARCHS:="x86_64 arm64"}
66+
: ${ARCHS:="arm64 x86_64"}
6767
;;
6868
*)
6969
echo "Building for iOS"
@@ -88,7 +88,7 @@ case "$@" in
8888
echo "Building for macOS"
8989
TARGET=macOS
9090
TARGET_PATH=/Library/libdigidocpp
91-
: ${ARCHS:="x86_64 arm64"}
91+
: ${ARCHS:="arm64 x86_64"}
9292
: ${MACOSX_DEPLOYMENT_TARGET:="10.15"}
9393
export MACOSX_DEPLOYMENT_TARGET
9494
esac

build.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ foreach($platform in @("x86", "x64")) {
6969
"-DCMAKE_TOOLCHAIN_FILE=$vcpkg_dir/scripts/buildsystems/vcpkg.cmake" `
7070
"-DVCPKG_TARGET_TRIPLET=$platform-windows-v$toolset" `
7171
"-DVCPKG_INSTALLED_DIR=$vcpkg_installed\vcpkg_installed_$platform" `
72-
"-DXSD_INCLUDE_DIR=$xsd/libxsd" `
73-
"-DXSD_EXECUTABLE=$xsd/bin/xsd.exe" `
72+
"-DXSD_ROOT=$xsd" `
7473
"-DSIGNCERT=$sign" `
7574
"-DCROSSSIGNCERT=$crosssign" `
7675
$cmakeext "&&" $cmake --build $buildpath --target check install

cmake

examples/ios/libdigidocpp.xcodeproj/project.pbxproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@
169169
4E7663901B5A37AC00672ACF /* Project object */ = {
170170
isa = PBXProject;
171171
attributes = {
172-
LastUpgradeCheck = 1340;
172+
BuildIndependentTargetsInParallel = YES;
173+
LastUpgradeCheck = 1430;
173174
ORGANIZATIONNAME = RIA;
174175
TargetAttributes = {
175176
4E7663971B5A37AC00672ACF = {
@@ -357,6 +358,7 @@
357358
BUILD_NUMBER = 0;
358359
CODE_SIGN_ENTITLEMENTS = libdigidocpp/libdigidocpp.entitlements;
359360
CODE_SIGN_IDENTITY = "iPhone Developer";
361+
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
360362
CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)";
361363
FRAMEWORK_SEARCH_PATHS = (
362364
"$(inherited)",
@@ -407,6 +409,7 @@
407409
BUILD_NUMBER = 0;
408410
CODE_SIGN_ENTITLEMENTS = libdigidocpp/libdigidocpp.entitlements;
409411
CODE_SIGN_IDENTITY = "iPhone Developer";
412+
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
410413
CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)";
411414
FRAMEWORK_SEARCH_PATHS = (
412415
"$(inherited)",

examples/ios/libdigidocpp/Base.lproj/Main.storyboard

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21225" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="IK0-T2-QRg">
3-
<device id="retina4_7" orientation="portrait" appearance="light"/>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="IK0-T2-QRg">
3+
<device id="retina4_7" orientation="portrait" appearance="dark"/>
44
<dependencies>
55
<deployment identifier="iOS"/>
6-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21207"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
7+
<capability name="System colors in document resources" minToolsVersion="11.0"/>
78
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
89
</dependencies>
910
<scenes>
@@ -14,7 +15,7 @@
1415
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" id="bxP-Ml-Kgh">
1516
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
1617
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
17-
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
18+
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
1819
<prototypes>
1920
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="URL" id="BTg-An-Atm" customClass="URLTableViewCell">
2021
<rect key="frame" x="0.0" y="50" width="375" height="43.5"/>
@@ -85,4 +86,9 @@
8586
<point key="canvasLocation" x="-671.5" y="-746.5"/>
8687
</scene>
8788
</scenes>
89+
<resources>
90+
<systemColor name="systemBackgroundColor">
91+
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
92+
</systemColor>
93+
</resources>
8894
</document>

examples/ios/libdigidocpp/MasterViewController.mm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,16 @@ @interface MasterViewController : UITableViewController {
4949

5050
@implementation MasterViewController
5151

52+
#if TESTING
5253
- (void)viewDidLoad {
5354
[super viewDidLoad];
54-
#if TESTING
5555
self.tableView.contentInset = UIEdgeInsetsMake(20, 0, 0, 0);
5656
URLTableViewCell *urlView = [self.tableView dequeueReusableCellWithIdentifier:@"URL"];
5757
urlView.isAccessibilityElement = NO;
5858
urlView.accessibilityElements = @[urlView.search, urlView.run];
5959
self.tableView.tableHeaderView = urlView;
60-
#endif
6160
}
6261

63-
#if TESTING
6462
- (IBAction)runTest:(id)sender {
6563
URLTableViewCell *urlView = (URLTableViewCell *)self.tableView.tableHeaderView;
6664
[urlView.search endEditing:YES];

prepare_osx_build_environment.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ case "$@" in
6666
TARGET_PATH=/Library/libdigidocpp.iphonesimulator
6767
CONFIGURE="--host=arm-apple-darwin --enable-static --disable-shared --disable-dependency-tracking"
6868
SYSROOT=$(xcrun -sdk iphonesimulator --show-sdk-path)
69-
: ${ARCHS:="x86_64"}
69+
: ${ARCHS:="arm64 x86_64"}
7070
: ${IPHONEOS_DEPLOYMENT_TARGET:="12.0"}
7171
export IPHONEOS_DEPLOYMENT_TARGET
7272
export CFLAGS="-arch ${ARCHS// / -arch } -isysroot ${SYSROOT}"
@@ -76,7 +76,7 @@ case "$@" in
7676
TARGET_PATH=/Library/libdigidocpp.iphonecatalyst
7777
CONFIGURE="--host=x86_64-apple-darwin --enable-static --disable-shared --disable-dependency-tracking"
7878
SYSROOT=$(xcrun -sdk macosx --show-sdk-path)
79-
: ${ARCHS:="x86_64 arm64"}
79+
: ${ARCHS:="arm64 x86_64"}
8080
: ${IPHONEOS_DEPLOYMENT_TARGET:="12.0"}
8181
export IPHONEOS_DEPLOYMENT_TARGET
8282
export CFLAGS="-arch ${ARCHS// / -arch } -target x86_64-apple-ios-macabi -isysroot ${SYSROOT}"
@@ -96,7 +96,7 @@ case "$@" in
9696
TARGET_PATH=/Library/libdigidocpp
9797
CONFIGURE="--disable-static --enable-shared --disable-dependency-tracking"
9898
SYSROOT=$(xcrun -sdk macosx --show-sdk-path)
99-
: ${ARCHS:="x86_64 arm64"}
99+
: ${ARCHS:="arm64 x86_64"}
100100
: ${MACOSX_DEPLOYMENT_TARGET:="10.15"}
101101
export MACOSX_DEPLOYMENT_TARGET
102102
export CFLAGS="-arch ${ARCHS// / -arch } "
@@ -256,13 +256,14 @@ function openssl {
256256
case "${ARCH}" in
257257
*x86_64*)
258258
case "${ARGS}" in
259-
*simulator*) CC="" CFLAGS="" ./Configure iossimulator-xcrun --prefix=${TARGET_PATH} no-shared no-dso no-module no-engine no-tests no-ui-console enable-ec_nistp_64_gcc_128 ;;
259+
*simulator*) CC="" CFLAGS="-arch x86_64" ./Configure iossimulator-xcrun --prefix=${TARGET_PATH} no-shared no-dso no-module no-engine no-tests no-ui-console enable-ec_nistp_64_gcc_128 ;;
260260
*catalyst*) CC="" CFLAGS="-target x86_64-apple-ios-macabi" ./Configure darwin64-x86_64 --prefix=${TARGET_PATH} no-shared no-dso no-module no-engine no-tests no-ui-console enable-ec_nistp_64_gcc_128 ;;
261261
*) CC="" CFLAGS="" ./Configure darwin64-x86_64 --prefix=${TARGET_PATH} shared no-module no-tests enable-ec_nistp_64_gcc_128
262262
esac
263263
;;
264264
*arm64*)
265265
case "${ARGS}" in
266+
*simulator*) CC="" CFLAGS="-arch arm64" ./Configure iossimulator-xcrun --prefix=${TARGET_PATH} no-shared no-dso no-module no-engine no-tests no-ui-console enable-ec_nistp_64_gcc_128 ;;
266267
*catalyst*) CC="" CFLAGS="-target x86_64-apple-ios-macabi" ./Configure darwin64-arm64 --prefix=${TARGET_PATH} no-shared no-dso no-module no-engine no-tests no-ui-console enable-ec_nistp_64_gcc_128 ;;
267268
*ios*) CC="" CFLAGS="" ./Configure ios64-xcrun --prefix=${TARGET_PATH} no-shared no-dso no-module no-engine no-tests no-ui-console enable-ec_nistp_64_gcc_128 ;;
268269
*) CC="" CFLAGS="" ./Configure darwin64-arm64 --prefix=${TARGET_PATH} shared no-module no-tests enable-ec_nistp_64_gcc_128
@@ -426,8 +427,8 @@ case "$@" in
426427
echo " - MACOSX_DEPLOYMENT_TARGET=10.15"
427428
echo " - IPHONEOS_DEPLOYMENT_TARGET=12.0"
428429
echo " archs to build on macOS/iOS"
429-
echo " - ARCHS=\"x86_64 arm64\" (macOS)"
430+
echo " - ARCHS=\"arm64 x86_64\" (macOS)"
430431
echo " - ARCHS=\"arm64\" (iOS)"
431-
echo " - ARCHS=\"x86_64\" (iPhoneSimulator)"
432+
echo " - ARCHS=\"arm64 x86_64\" (iPhoneSimulator)"
432433
;;
433434
esac

0 commit comments

Comments
 (0)