Muhammad Qureshi | b7c60a5 | 2019-08-16 16:32:29 -0700 | [diff] [blame] | 1 | // Copyright (C) 2019 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 | |
| 15 | apex { |
| 16 | name: "com.android.os.statsd", |
Howard Ro | f40a3a9 | 2019-12-10 19:04:44 -0800 | [diff] [blame] | 17 | defaults: ["com.android.os.statsd-defaults"], |
Muhammad Qureshi | b7c60a5 | 2019-08-16 16:32:29 -0700 | [diff] [blame] | 18 | manifest: "apex_manifest.json", |
Howard Ro | f40a3a9 | 2019-12-10 19:04:44 -0800 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | apex_defaults { |
Tej Singh | a2b78e4 | 2020-01-29 19:07:38 -0800 | [diff] [blame] | 22 | native_shared_libs: [ |
| 23 | "libstats_jni", |
Muhammad Qureshi | 7b31ff8 | 2020-02-18 16:45:06 -0800 | [diff] [blame] | 24 | "libstatspull", |
| 25 | "libstatssocket", |
Tej Singh | a2b78e4 | 2020-01-29 19:07:38 -0800 | [diff] [blame] | 26 | ], |
Howard Ro | adc510f | 2020-02-20 04:57:00 +0000 | [diff] [blame] | 27 | binaries: ["statsd"], |
Muhammad Qureshi | 237c774 | 2019-12-12 11:03:55 -0800 | [diff] [blame] | 28 | java_libs: [ |
| 29 | "framework-statsd", |
| 30 | "service-statsd", |
| 31 | ], |
Muhammad Qureshi | 6f83764 | 2020-02-18 11:30:17 -0800 | [diff] [blame] | 32 | compile_multilib: "both", |
Howard Ro | adc510f | 2020-02-20 04:57:00 +0000 | [diff] [blame] | 33 | prebuilts: ["com.android.os.statsd.init.rc"], |
Howard Ro | f40a3a9 | 2019-12-10 19:04:44 -0800 | [diff] [blame] | 34 | name: "com.android.os.statsd-defaults", |
Jiyong Park | 8201bdf | 2020-02-24 18:36:46 +0900 | [diff] [blame] | 35 | updatable: true, |
Muhammad Qureshi | b7c60a5 | 2019-08-16 16:32:29 -0700 | [diff] [blame] | 36 | key: "com.android.os.statsd.key", |
| 37 | certificate: ":com.android.os.statsd.certificate", |
| 38 | } |
| 39 | |
| 40 | apex_key { |
| 41 | name: "com.android.os.statsd.key", |
| 42 | public_key: "com.android.os.statsd.avbpubkey", |
| 43 | private_key: "com.android.os.statsd.pem", |
| 44 | } |
| 45 | |
| 46 | android_app_certificate { |
| 47 | name: "com.android.os.statsd.certificate", |
| 48 | // This will use com.android.os.statsd.x509.pem (the cert) and |
| 49 | // com.android.os.statsd.pk8 (the private key) |
| 50 | certificate: "com.android.os.statsd", |
| 51 | } |
Tej Singh | a2b78e4 | 2020-01-29 19:07:38 -0800 | [diff] [blame] | 52 | |
Howard Ro | adc510f | 2020-02-20 04:57:00 +0000 | [diff] [blame] | 53 | prebuilt_etc { |
| 54 | name: "com.android.os.statsd.init.rc", |
| 55 | src: "statsd.rc", |
| 56 | filename: "init.rc", |
| 57 | installable: false, |
| 58 | } |
Tej Singh | a2b78e4 | 2020-01-29 19:07:38 -0800 | [diff] [blame] | 59 | |
| 60 | // JNI library for StatsLog.write |
| 61 | cc_library_shared { |
| 62 | name: "libstats_jni", |
| 63 | srcs: ["jni/**/*.cpp"], |
| 64 | shared_libs: [ |
| 65 | "libnativehelper", // Has stable abi - should not be copied into apex. |
| 66 | "liblog", // Has a stable abi - should not be copied into apex. |
Tej Singh | a2b78e4 | 2020-01-29 19:07:38 -0800 | [diff] [blame] | 67 | "libstatssocket", |
Tej Singh | a2b78e4 | 2020-01-29 19:07:38 -0800 | [diff] [blame] | 68 | ], |
| 69 | //TODO: is libc++_static correct? |
| 70 | stl: "libc++_static", |
| 71 | cflags: [ |
| 72 | "-Wall", |
| 73 | "-Werror", |
| 74 | "-Wextra", |
| 75 | "-Wno-unused-parameter", |
| 76 | ], |
| 77 | apex_available: [ |
| 78 | "com.android.os.statsd", |
| 79 | "test_com.android.os.statsd", |
Tej Singh | a2b78e4 | 2020-01-29 19:07:38 -0800 | [diff] [blame] | 80 | ], |
Muhammad Qureshi | 6f83764 | 2020-02-18 11:30:17 -0800 | [diff] [blame] | 81 | } |