xref: /aosp_15_r20/frameworks/layoutlib/bridge/tests/Android.bp (revision fc3927be90a325f95c74a9043993a80ef388dc46)
1*fc3927beSAndroid Build Coastguard Worker// Copyright (C) 2011 The Android Open Source Project
2*fc3927beSAndroid Build Coastguard Worker//
3*fc3927beSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*fc3927beSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*fc3927beSAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*fc3927beSAndroid Build Coastguard Worker//
7*fc3927beSAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*fc3927beSAndroid Build Coastguard Worker//
9*fc3927beSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*fc3927beSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*fc3927beSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*fc3927beSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*fc3927beSAndroid Build Coastguard Worker// limitations under the License.
14*fc3927beSAndroid Build Coastguard Worker
15*fc3927beSAndroid Build Coastguard Workerpackage {
16*fc3927beSAndroid Build Coastguard Worker    default_team: "trendy_team_android_developer_tools",
17*fc3927beSAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
18*fc3927beSAndroid Build Coastguard Worker}
19*fc3927beSAndroid Build Coastguard Worker
20*fc3927beSAndroid Build Coastguard Workerjava_test_host {
21*fc3927beSAndroid Build Coastguard Worker    name: "layoutlib-tests",
22*fc3927beSAndroid Build Coastguard Worker
23*fc3927beSAndroid Build Coastguard Worker    // Only compile source java files in this lib.
24*fc3927beSAndroid Build Coastguard Worker    srcs: [
25*fc3927beSAndroid Build Coastguard Worker        "src/**/*.java",
26*fc3927beSAndroid Build Coastguard Worker        "res/testApp/MyApplication/src/main/myapplication.widgets/**/*.java",
27*fc3927beSAndroid Build Coastguard Worker    ],
28*fc3927beSAndroid Build Coastguard Worker    java_resource_dirs: ["res"],
29*fc3927beSAndroid Build Coastguard Worker
30*fc3927beSAndroid Build Coastguard Worker    static_libs: [
31*fc3927beSAndroid Build Coastguard Worker        "kotlin-stdlib",
32*fc3927beSAndroid Build Coastguard Worker        "layoutlib-bridge-client",
33*fc3927beSAndroid Build Coastguard Worker        "mockito",
34*fc3927beSAndroid Build Coastguard Worker        "ninepatch-prebuilt",
35*fc3927beSAndroid Build Coastguard Worker        "objenesis",
36*fc3927beSAndroid Build Coastguard Worker    ],
37*fc3927beSAndroid Build Coastguard Worker
38*fc3927beSAndroid Build Coastguard Worker    required: ["libandroid_runtime"],
39*fc3927beSAndroid Build Coastguard Worker
40*fc3927beSAndroid Build Coastguard Worker    // Copy the jar to DIST_DIR for sdk builds
41*fc3927beSAndroid Build Coastguard Worker    dist: {
42*fc3927beSAndroid Build Coastguard Worker        targets: [
43*fc3927beSAndroid Build Coastguard Worker            "sdk",
44*fc3927beSAndroid Build Coastguard Worker            "win_sdk",
45*fc3927beSAndroid Build Coastguard Worker        ],
46*fc3927beSAndroid Build Coastguard Worker    },
47*fc3927beSAndroid Build Coastguard Worker}
48