1// Copyright (C) 2016 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
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19java_defaults {
20    name: "CtsCompilationApp_defaults",
21    defaults: ["cts_support_defaults"],
22    srcs: ["src/**/*.java"],
23    sdk_version: "29",
24    // tag this module as a cts test artifact
25    test_suites: [
26        "cts",
27        "general-tests",
28    ],
29}
30
31android_test_helper_app {
32    name: "CtsCompilationApp",
33    defaults: ["CtsCompilationApp_defaults"],
34}
35
36android_test_helper_app {
37    name: "CtsCompilationApp_with_good_profile",
38    defaults: ["CtsCompilationApp_defaults"],
39    assets: [":CtsCompilationApp_assets_good_profile"],
40}
41
42android_test_helper_app {
43    name: "CtsCompilationApp_with_bad_profile",
44    defaults: ["CtsCompilationApp_defaults"],
45    assets: [":CtsCompilationApp_assets_bad_profile"],
46}
47
48genrule {
49    name: "CtsCompilationApp_assets_good_profile",
50    cmd: "cp $(in) $(out)",
51    srcs: [":CtsCompilationApp_profile"],
52    out: ["art-profile/baseline.prof"],
53}
54
55genrule {
56    name: "CtsCompilationApp_assets_bad_profile",
57    cmd: "cp $(in) $(out)",
58    srcs: [":AppUsedByOtherApp_1_prof"],
59    out: ["art-profile/baseline.prof"],
60}
61
62android_test_helper_app {
63    name: "CtsCompilationApp_debuggable",
64    defaults: ["CtsCompilationApp_defaults"],
65    manifest: "AndroidManifest_debuggable.xml",
66}
67