diff options
author | Simon Warta <[email protected]> | 2017-01-02 23:34:14 +0100 |
---|---|---|
committer | Simon Warta <[email protected]> | 2017-01-03 00:14:20 +0100 |
commit | cfcc24e9d54a5b3c31de8b4a82e55f4ac55ecb82 (patch) | |
tree | 917e5cb7d0cb467ab85906c13f6468e1d2a14ab8 | |
parent | 4536a57020cdfb1c58316375999d3e50be704e92 (diff) |
Add os ios
-rwxr-xr-x | configure.py | 2 | ||||
-rw-r--r-- | src/build-data/cc/clang.txt | 1 | ||||
-rw-r--r-- | src/build-data/os/ios.txt | 26 | ||||
-rw-r--r-- | src/lib/entropy/darwin_secrandom/info.txt | 2 | ||||
-rwxr-xr-x | src/scripts/ci/travis/build.sh | 2 |
5 files changed, 32 insertions, 1 deletions
diff --git a/configure.py b/configure.py index c5e7fcd06..14b995826 100755 --- a/configure.py +++ b/configure.py @@ -2150,7 +2150,7 @@ def main(argv = None): options.compiler = 'gcc' else: options.compiler = 'msvc' - elif options.os == 'darwin' or options.os == 'freebsd': + elif options.os in ['darwin', 'freebsd', 'ios']: if have_program('clang++'): options.compiler = 'clang' elif options.os == 'openbsd': diff --git a/src/build-data/cc/clang.txt b/src/build-data/cc/clang.txt index 055315c3b..15538307c 100644 --- a/src/build-data/cc/clang.txt +++ b/src/build-data/cc/clang.txt @@ -80,5 +80,6 @@ x86_64 -> "-m64" ppc64 -> "-m64" darwin -> "-stdlib=libc++" +ios -> "-stdlib=libc++" netbsd -> "-D_NETBSD_SOURCE" </mach_abi_linking> diff --git a/src/build-data/os/ios.txt b/src/build-data/os/ios.txt new file mode 100644 index 000000000..6f3888b8f --- /dev/null +++ b/src/build-data/os/ios.txt @@ -0,0 +1,26 @@ +os_type unix + +soname_pattern_base "libbotan-{version_major}.{version_minor}.dylib" +soname_pattern_abi "libbotan-{version_major}.{version_minor}.{abi_rev}.dylib" +soname_pattern_patch "libbotan-{version_major}.{version_minor}.{abi_rev}.{version_patch}.dylib" + +# It doesn't have the 's' option; you need to use needs ranlib +ar_command "ar cr" +ar_needs_ranlib yes + +doc_dir doc + +<target_features> +dlopen +gettimeofday +gmtime_r +memset_s +readdir +timegm +sockets +threads +filesystem +</target_features> + +<aliases> +</aliases> diff --git a/src/lib/entropy/darwin_secrandom/info.txt b/src/lib/entropy/darwin_secrandom/info.txt index 2460d8f86..554a4b3d8 100644 --- a/src/lib/entropy/darwin_secrandom/info.txt +++ b/src/lib/entropy/darwin_secrandom/info.txt @@ -6,8 +6,10 @@ darwin_secrandom.h <os> darwin +ios </os> <frameworks> darwin -> Security +ios -> Security </frameworks> diff --git a/src/scripts/ci/travis/build.sh b/src/scripts/ci/travis/build.sh index 22c3ba1ca..a27cde117 100755 --- a/src/scripts/ci/travis/build.sh +++ b/src/scripts/ci/travis/build.sh @@ -75,8 +75,10 @@ if [ "${BUILD_MODE:0:6}" = "cross-" ]; then CFG_FLAGS+=(--disable-shared) MAKE_PREFIX=(xcrun --sdk iphoneos) if [ "$BUILD_MODE" = "cross-arm32" ]; then + CFG_FLAGS+=(--os=ios) CFG_FLAGS+=(--cpu=armv7 --cc-abi-flags="-arch armv7 -arch armv7s -stdlib=libc++") elif [ "$BUILD_MODE" = "cross-arm64" ]; then + CFG_FLAGS+=(--os=ios) CFG_FLAGS+=(--cpu=armv8-a --cc-abi-flags="-arch arm64 -stdlib=libc++") fi elif [ "$TRAVIS_OS_NAME" = "linux" ]; then |