blob: 2edfe53ec3b830d960f39772164b884666ee9823 [file] [log] [blame]
Michael Mergd8a48c72024-07-02 19:32:38 +00001#!/bin/bash -e
2
3# Copyright (C) 2024 The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17# This script is used to generate the ide_query.out file.
18#
19# The ide_query.out file is a pre-computed result of running ide_query.sh
20# on a set of files. This allows the prober to run its tests without running
21# ide_query.sh. The prober doesn't check-out the full source code, so it
22# can't run ide_query.sh itself.
23
24cd $(dirname $BASH_SOURCE)
25source $(pwd)/../../../shell_utils.sh
26require_top
27
28files_to_build=(
29 build/make/tools/ide_query/prober_scripts/cpp/general.cc
30)
31
32cd ${TOP}
33build/make/tools/ide_query/ide_query.sh --lunch_target=aosp_arm-trunk_staging-eng ${files_to_build[@]} > build/make/tools/ide_query/prober_scripts/ide_query.out