blob: 114ca2cf469878ceefb71fd52e521ccaf7604427 [file] [log] [blame]
Dan Albert2a8d9c22016-09-23 15:55:49 -07001// Copyright (C) 2016 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
Colin Crossd8e02252017-10-02 17:14:22 -070015// Build ext.jar
16// ============================================================
17java_library {
18 name: "ext",
19 no_framework_libs: true,
20 static_libs: [
21 "libphonenumber-platform",
22 "nist-sip",
23 "tagsoup",
24 ],
25 dxflags: ["--core-library"],
26}
27
Colin Crossaa0d4352017-05-02 14:14:56 -070028// ==== c++ proto device library ==============================
29cc_library {
30 name: "libplatformprotos",
31 host_supported: true,
Colin Crossaa0d4352017-05-02 14:14:56 -070032 proto: {
33 export_proto_headers: true,
34 include_dirs: ["external/protobuf/src"],
35 },
36
37 target: {
38 host: {
39 proto: {
40 type: "full",
41 },
John Reck915883b2017-05-03 10:27:20 -070042 srcs: [
43 "core/proto/**/*.proto",
44 "libs/incident/**/*.proto",
45 ],
Colin Crossaa0d4352017-05-02 14:14:56 -070046 },
47 android: {
48 proto: {
49 type: "lite",
50 },
John Reck915883b2017-05-03 10:27:20 -070051 // We only build the protos that are optimized for the lite
52 // runtime, as well as the only protos that are actually
53 // needed by the device.
54 srcs: [
Yi Jin0a3406f2017-06-22 19:23:11 -070055 "core/proto/android/os/kernelwake.proto",
Yi Jin810b14f2017-09-11 19:01:08 -070056 "core/proto/android/os/pagetypeinfo.proto",
Yi Jinb44f7d42017-07-21 12:12:59 -070057 "core/proto/android/os/procrank.proto",
John Reck915883b2017-05-03 10:27:20 -070058 "core/proto/android/service/graphicsstats.proto",
Yi Jin7e0b4e52017-09-12 20:00:25 -070059 "libs/incident/proto/android/privacy.proto",
John Reck915883b2017-05-03 10:27:20 -070060 ],
Colin Crossaa0d4352017-05-02 14:14:56 -070061 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -070062 enabled: false,
63 },
64 },
65 },
Colin Crossaa0d4352017-05-02 14:14:56 -070066}
67
Dan Albert2a8d9c22016-09-23 15:55:49 -070068subdirs = [
Yi Jin0a3406f2017-06-22 19:23:11 -070069 "cmds/*",
Colin Cross3f8fd402017-04-20 12:20:20 -070070 "core/jni",
Colin Cross4f8d9e62016-12-01 15:55:00 -080071 "libs/*",
Colin Cross76de4f62017-05-15 18:10:40 -070072 "media/*",
Fabien Sanglard19160202017-01-12 14:24:31 -050073 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -070074 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -070075 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -070076]
Svetoslav Ganov74c99832016-12-05 20:07:20 -080077
78optional_subdirs = [
79 "core/tests/utiltests/jni",
80]
Steven Morelandeddafe92017-10-02 16:58:41 -070081
82java_library {
83 name: "hwbinder",
84 no_framework_libs: true,
85
86 srcs: [
87 "core/java/android/os/HidlSupport.java",
88 "core/java/android/annotation/NonNull.java",
89 "core/java/android/os/HwBinder.java",
90 "core/java/android/os/HwBlob.java",
91 "core/java/android/os/HwParcel.java",
92 "core/java/android/os/IHwBinder.java",
93 "core/java/android/os/IHwInterface.java",
94 "core/java/android/os/DeadObjectException.java",
95 "core/java/android/os/DeadSystemException.java",
96 "core/java/android/os/RemoteException.java",
97 "core/java/android/util/AndroidException.java",
98 ],
99
100 dxflags: ["--core-library"],
101 installable: false,
102}