blob: 72681234dad8f590b0717228a2552a0f8669061b [file] [log] [blame]
Makoto Onuki8558e9a2023-08-31 10:48:38 -07001#!/bin/bash
2# Copyright (C) 2023 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
17# Script to build `framework-host-stub` and `framework-host-impl`, and copy the
18# generated jars to $out, and unzip them. Useful for looking into the generated files.
19
20source "${0%/*}"/../common.sh
21
22out=framework-all-stub-out
23
24rm -fr $out
25mkdir -p $out
26
27# Build the jars with `m`.
28run m framework-all-hidden-api-host
29
30# Copy the jar to out/ and extract them.
31run cp \
32 $SOONG_INT/frameworks/base/tools/hoststubgen/hoststubgen/framework-all-hidden-api-host/linux_glibc_common/gen/* \
33 $out
34
35extract $out/*.jar