blob: 3b26d83c1e18ead04f8b19044fd226f94d6690c9 [file] [log] [blame]
Keun young Park9a91efb2019-11-15 18:10:47 -08001// 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 Badour4da7d222021-02-22 16:14:07 -080019package {
20 default_applicable_licenses: ["Android-Apache-2.0"],
21}
22
Jordan Jozwiak9789ac52019-12-06 16:52:26 -080023experimentalcar_service_sources = ["src/**/*.java"]
Keun young Park9a91efb2019-11-15 18:10:47 -080024
25android_app {
26 name: "ExperimentalCarService",
27
Jordan Jozwiak9789ac52019-12-06 16:52:26 -080028 srcs: experimentalcar_service_sources,
Keun young Park9a91efb2019-11-15 18:10:47 -080029
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 Park9a91efb2019-11-15 18:10:47 -080050 // Disable build in PDK, missing aidl import breaks build
51 product_variables: {
52 pdk: {
53 enabled: false,
54 },
55 },
56}
Jordan Jozwiak9789ac52019-12-06 16:52:26 -080057
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}