Skip to content
Open
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions scripts/android/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -ex
#
# Copyright (C) 2019-2024 HERE Europe B.V.
# Copyright (C) 2019-2026 HERE Europe B.V.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -19,15 +19,15 @@

#
# This script will compile Data SDK for C++
# with ANDROID_PLATFORM=android-28 and -DANDROID_ABI=arm64-v8a
# with ANDROID_PLATFORM=android-21 and -DANDROID_ABI=arm64-v8a
# by using Android NDK 21.
#

# Install required NDK version (output disabled as it causes issues during page loading)
env
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --list
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "ndk;21.3.6528147" --sdk_root=${ANDROID_HOME} >/dev/null
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "platforms;android-28" >/dev/null
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "platforms;android-21" >/dev/null
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --list
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/21.3.6528147
env
Expand All @@ -38,7 +38,7 @@ ls -la $ANDROID_NDK_HOME/platforms
mkdir -p build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE="$ANDROID_HOME/ndk/21.3.6528147/build/cmake/android.toolchain.cmake" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DANDROID_PLATFORM=android-28 \
-DANDROID_PLATFORM=android-21 \
-DANDROID_ABI=arm64-v8a \
-DANDROID_NDK="$ANDROID_HOME/ndk/21.3.6528147" \
-DOLP_SDK_ENABLE_TESTING=NO \
Expand Down
Loading