• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15if [[ -z "${HOST_TOOLS_DIR}" ]]; then
16  echo HOST_TOOLS_DIR not set
17  exit 1
18fi
19
20# The android_ prefix is to get around the upstream project's .gitignore rules
21# for dist / downloads. Android will want to commit them to version control to
22# improve change tracking / repeatability and avoid unnecessary load on OSM
23# servers.
24INPUTS_DIR=android_inputs
25DOWNLOADS_DIR=android_downloads
26DIST_DIR=android_dist
27
28CONTAINER_ANDROID_DIR=./android
29CONTAINER_DOWNLOADS_DIR=${CONTAINER_ANDROID_DIR}/${DOWNLOADS_DIR}
30CONTAINER_DIST_DIR=${CONTAINER_ANDROID_DIR}/${DIST_DIR}
31
32HOST_ANDROID_DIR=${HOST_TOOLS_DIR}/../..
33HOST_ANDROID_DIR=$(realpath ${HOST_ANDROID_DIR})
34HOST_INPUTS_DIR=${HOST_ANDROID_DIR}/${INPUTS_DIR}
35HOST_DOWNLOADS_DIR=${HOST_ANDROID_DIR}/${DOWNLOADS_DIR}
36HOST_DIST_DIR=${HOST_ANDROID_DIR}/${DIST_DIR}
37
38