2016-10-19 23:17:19 +02:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
2017-11-17 19:55:38 +01:00
|
|
|
# Copyright 2017 Google Inc. All rights reserved.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2016-10-19 23:17:19 +02:00
|
|
|
if [ -z "${OUT_DIR}" ]; then
|
|
|
|
echo Must set OUT_DIR
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-03-21 00:52:44 +01:00
|
|
|
# TODO: remove ALLOW_MISSING_DEPENDENCIES=true when all the riscv64
|
|
|
|
# dependencies exist (currently blocked by http://b/273792258).
|
|
|
|
# TODO: remove BUILD_BROKEN_DISABLE_BAZEL=1 when bazel supports riscv64 (http://b/262192655).
|
2023-03-15 00:11:57 +01:00
|
|
|
ALLOW_MISSING_DEPENDENCIES=true \
|
2023-03-21 00:52:44 +01:00
|
|
|
BUILD_BROKEN_DISABLE_BAZEL=1 \
|
2023-03-15 00:11:57 +01:00
|
|
|
TARGET_PRODUCT=ndk build/soong/soong_ui.bash --make-mode --soong-only ${OUT_DIR}/soong/ndk.timestamp
|
2016-10-19 23:17:19 +02:00
|
|
|
|
|
|
|
if [ -n "${DIST_DIR}" ]; then
|
|
|
|
mkdir -p ${DIST_DIR} || true
|
2022-02-17 20:52:46 +01:00
|
|
|
tar cjf ${DIST_DIR}/ndk_platform.tar.bz2 -C ${OUT_DIR}/soong ndk
|
2016-10-19 23:17:19 +02:00
|
|
|
fi
|