Keun young Park | 9a91efb | 2019-11-15 18:10:47 -0800 | [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 | // |
| 16 | |
| 17 | // Build the Experimental Car service. |
| 18 | |
Bob Badour | 4da7d22 | 2021-02-22 16:14:07 -0800 | [diff] [blame] | 19 | package { |
| 20 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 21 | } |
| 22 | |
Jordan Jozwiak | 9789ac5 | 2019-12-06 16:52:26 -0800 | [diff] [blame] | 23 | experimentalcar_service_sources = ["src/**/*.java"] |
Keun young Park | 9a91efb | 2019-11-15 18:10:47 -0800 | [diff] [blame] | 24 | |
| 25 | android_app { |
| 26 | name: "ExperimentalCarService", |
| 27 | |
Jordan Jozwiak | 9789ac5 | 2019-12-06 16:52:26 -0800 | [diff] [blame] | 28 | srcs: experimentalcar_service_sources, |
Keun young Park | 9a91efb | 2019-11-15 18:10:47 -0800 | [diff] [blame] | 29 | |
| 30 | resource_dirs: ["res"], |
| 31 | |
| 32 | platform_apis: true, |
| 33 | |
| 34 | // Each update should be signed by OEMs |
| 35 | certificate: "platform", |
| 36 | privileged: true, |
| 37 | |
| 38 | optimize: { |
| 39 | proguard_flags_files: ["proguard.flags"], |
| 40 | enabled: false, |
| 41 | }, |
| 42 | |
| 43 | libs: ["android.car"], |
| 44 | |
| 45 | static_libs: [ |
| 46 | "car-service-common-util-static-lib", |
| 47 | "car-experimental-api-static-lib", |
| 48 | ], |
| 49 | |
Keun young Park | 9a91efb | 2019-11-15 18:10:47 -0800 | [diff] [blame] | 50 | // Disable build in PDK, missing aidl import breaks build |
| 51 | product_variables: { |
| 52 | pdk: { |
| 53 | enabled: false, |
| 54 | }, |
| 55 | }, |
| 56 | } |
Jordan Jozwiak | 9789ac5 | 2019-12-06 16:52:26 -0800 | [diff] [blame] | 57 | |
| 58 | //#################################################################################### |
| 59 | // Build a static library to help mocking various car services in testing. This is meant to be used |
| 60 | // for internal unit tests around the car service. |
| 61 | //#################################################################################### |
| 62 | android_library { |
| 63 | name: "experimentalcar-service-test-static-lib", |
| 64 | |
| 65 | srcs: experimentalcar_service_sources, |
| 66 | |
| 67 | resource_dirs: ["res"], |
| 68 | |
| 69 | libs: [ |
| 70 | "android.car", |
| 71 | ], |
| 72 | |
| 73 | static_libs: [ |
| 74 | "car-service-common-util-static-lib", |
| 75 | "car-experimental-api-static-lib", |
| 76 | ], |
| 77 | |
| 78 | min_sdk_version: "25", |
| 79 | |
| 80 | product_variables: { |
| 81 | pdk: { |
| 82 | enabled: false, |
| 83 | }, |
| 84 | }, |
| 85 | } |