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 19package { 20 default_applicable_licenses: ["Android-Apache-2.0"], 21} 22 23experimentalcar_service_sources = ["src/**/*.java"] 24 25android_app { 26 name: "ExperimentalCarService", 27 28 srcs: experimentalcar_service_sources, 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 50 // Disable build in PDK, missing aidl import breaks build 51 product_variables: { 52 pdk: { 53 enabled: false, 54 }, 55 }, 56} 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//#################################################################################### 62android_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} 86