xref: /aosp_15_r20/art/test/testing/art_fake_com.android.os.statsd/Android.bp (revision 795d594fd825385562da6b089ea9b2033f3abf5a)
1//
2// Copyright (C) 2024 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
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21cc_defaults {
22    name: "art_fake_statslib_defaults",
23    installable: false,
24    min_sdk_version: "30",
25    stl: "none",
26    apex_available: ["art_fake_com.android.os.statsd"],
27    visibility: ["//visibility:private"],
28}
29
30cc_library_shared {
31    name: "art_fake_libstatspull",
32    defaults: ["art_fake_statslib_defaults"],
33    srcs: ["libstatspull.c"],
34    stem: "libstatspull",
35}
36
37cc_library_shared {
38    name: "art_fake_libstatssocket",
39    defaults: ["art_fake_statslib_defaults"],
40    srcs: ["libstatssocket.c"],
41    stem: "libstatssocket",
42}
43
44// A fake StatsD apex only used for ART chroot testing.
45apex {
46    name: "art_fake_com.android.os.statsd",
47    defaults: [
48        "s-launched-apex-module",
49    ],
50    compile_multilib: "both",
51    native_shared_libs: [
52        "art_fake_libstatspull",
53        "art_fake_libstatssocket",
54    ],
55    key: "com.android.art.key",
56    certificate: ":com.android.art.certificate",
57    file_contexts: ":com.android.os.statsd-file_contexts",
58    min_sdk_version: "30",
59    visibility: ["//visibility:private"],
60}
61