Yi Kong | 83e3567 | 2020-02-19 15:14:42 +0800 | [diff] [blame] | 1 | // |
| 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 Badour | 4e06008 | 2021-02-16 18:59:28 -0800 | [diff] [blame] | 17 | package { |
| 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 Kong | 80f579d | 2020-11-09 20:40:01 +0800 | [diff] [blame] | 26 | aidl_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 Kong | e5576ae | 2020-08-05 02:00:05 +0800 | [diff] [blame] | 37 | rust_library { |
Yi Kong | e3aab14 | 2021-03-02 13:58:25 +0800 | [diff] [blame] | 38 | name: "libprofcollectd", |
Yi Kong | e5576ae | 2020-08-05 02:00:05 +0800 | [diff] [blame] | 39 | stem: "liblibprofcollectd", |
| 40 | crate_name: "libprofcollectd", |
Chih-Hung Hsieh | f84c1a9 | 2020-08-19 16:30:16 -0700 | [diff] [blame] | 41 | srcs: ["lib.rs"], |
Yi Kong | 80f579d | 2020-11-09 20:40:01 +0800 | [diff] [blame] | 42 | rustlibs: [ |
Yi Kong | e3aab14 | 2021-03-02 13:58:25 +0800 | [diff] [blame] | 43 | "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 Kong | 037bde8 | 2021-03-23 14:25:38 +0800 | [diff] [blame] | 50 | "libmacaddr", |
| 51 | "librand", |
Joel Galenson | cd5afcf | 2021-07-29 15:43:02 -0700 | [diff] [blame] | 52 | "librustutils", |
Yi Kong | e3aab14 | 2021-03-02 13:58:25 +0800 | [diff] [blame] | 53 | "libserde", // Remove once b/179041241 is fixed. |
| 54 | "libserde_json", |
Yi Kong | 037bde8 | 2021-03-23 14:25:38 +0800 | [diff] [blame] | 55 | "libuuid", |
Yi Kong | e3aab14 | 2021-03-02 13:58:25 +0800 | [diff] [blame] | 56 | "libzip", |
Yi Kong | 80f579d | 2020-11-09 20:40:01 +0800 | [diff] [blame] | 57 | ], |
Yi Kong | e3aab14 | 2021-03-02 13:58:25 +0800 | [diff] [blame] | 58 | rlibs: [ |
Dennis Shen | f419545 | 2023-05-30 14:55:44 +0000 | [diff] [blame] | 59 | "libflags_rust", |
Yi Kong | e3aab14 | 2021-03-02 13:58:25 +0800 | [diff] [blame] | 60 | "libsimpleperf_profcollect_rust", |
Yi Kong | 80f579d | 2020-11-09 20:40:01 +0800 | [diff] [blame] | 61 | ], |
Yi Kong | e3aab14 | 2021-03-02 13:58:25 +0800 | [diff] [blame] | 62 | shared_libs: ["libsimpleperf_profcollect"], |
Yi Kong | 8c59b8f | 2021-06-18 16:28:54 -0700 | [diff] [blame] | 63 | |
| 64 | // Enable 'test' feature for more verbose logging and the logging trace provider. |
| 65 | // features: ["test"], |
Yi Kong | 83e3567 | 2020-02-19 15:14:42 +0800 | [diff] [blame] | 66 | } |