blob: 39177ec483aa2c32a7faff2bd9e10342f1f07c84 [file] [log] [blame]
Yi Kong83e35672020-02-19 15:14:42 +08001//
2// Copyright (C) 2020 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
Bob Badour4e060082021-02-16 18:59:28 -080017package {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "system_extras_profcollectd_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["system_extras_profcollectd_license"],
24}
25
Yi Kong80f579d2020-11-09 20:40:01 +080026aidl_interface {
27 name: "profcollectd_aidl_interface",
28 unstable: true,
29 srcs: [":profcollectd_aidl"],
30 backend: {
31 rust: {
32 enabled: true,
33 },
34 },
35}
36
Yi Konge5576ae2020-08-05 02:00:05 +080037rust_library {
Yi Konge3aab142021-03-02 13:58:25 +080038 name: "libprofcollectd",
Yi Konge5576ae2020-08-05 02:00:05 +080039 stem: "liblibprofcollectd",
40 crate_name: "libprofcollectd",
Chih-Hung Hsiehf84c1a92020-08-19 16:30:16 -070041 srcs: ["lib.rs"],
Yi Kong80f579d2020-11-09 20:40:01 +080042 rustlibs: [
Yi Konge3aab142021-03-02 13:58:25 +080043 "profcollectd_aidl_interface-rust", // Move to rlib once b/179041242 is fixed.
44 "libandroid_logger",
45 "libanyhow",
46 "libbinder_rs", // Remove once b/179041241 is fixed.
47 "libchrono",
48 "liblazy_static",
49 "liblog_rust",
Yi Kong037bde82021-03-23 14:25:38 +080050 "libmacaddr",
51 "librand",
Joel Galensoncd5afcf2021-07-29 15:43:02 -070052 "librustutils",
Yi Konge3aab142021-03-02 13:58:25 +080053 "libserde", // Remove once b/179041241 is fixed.
54 "libserde_json",
Yi Kong037bde82021-03-23 14:25:38 +080055 "libuuid",
Yi Konge3aab142021-03-02 13:58:25 +080056 "libzip",
Yi Kong80f579d2020-11-09 20:40:01 +080057 ],
Yi Konge3aab142021-03-02 13:58:25 +080058 rlibs: [
Dennis Shenf4195452023-05-30 14:55:44 +000059 "libflags_rust",
Yi Konge3aab142021-03-02 13:58:25 +080060 "libsimpleperf_profcollect_rust",
Yi Kong80f579d2020-11-09 20:40:01 +080061 ],
Yi Konge3aab142021-03-02 13:58:25 +080062 shared_libs: ["libsimpleperf_profcollect"],
Yi Kong8c59b8f2021-06-18 16:28:54 -070063
64 // Enable 'test' feature for more verbose logging and the logging trace provider.
65 // features: ["test"],
Yi Kong83e35672020-02-19 15:14:42 +080066}