blob: 13f6b6e9bc022e482bf69c779e9bf8b98d936129 [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
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -070037 cflags: [
38 "-Wall",
39 "-Werror",
40 "-Wno-unused-parameter",
41 ],
Colin Crossaa0d4352017-05-02 14:14:56 -070042 target: {
43 host: {
44 proto: {
45 type: "full",
46 },
John Reck915883b2017-05-03 10:27:20 -070047 srcs: [
48 "core/proto/**/*.proto",
49 "libs/incident/**/*.proto",
50 ],
Colin Crossaa0d4352017-05-02 14:14:56 -070051 },
52 android: {
53 proto: {
54 type: "lite",
55 },
John Reck915883b2017-05-03 10:27:20 -070056 // We only build the protos that are optimized for the lite
57 // runtime, as well as the only protos that are actually
58 // needed by the device.
59 srcs: [
Yi Jin0a3406f2017-06-22 19:23:11 -070060 "core/proto/android/os/kernelwake.proto",
Yi Jin810b14f2017-09-11 19:01:08 -070061 "core/proto/android/os/pagetypeinfo.proto",
Yi Jinb44f7d42017-07-21 12:12:59 -070062 "core/proto/android/os/procrank.proto",
John Reck915883b2017-05-03 10:27:20 -070063 "core/proto/android/service/graphicsstats.proto",
Yi Jin7e0b4e52017-09-12 20:00:25 -070064 "libs/incident/proto/android/privacy.proto",
John Reck915883b2017-05-03 10:27:20 -070065 ],
Colin Crossaa0d4352017-05-02 14:14:56 -070066 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -070067 enabled: false,
68 },
69 },
70 },
Colin Crossaa0d4352017-05-02 14:14:56 -070071}
72
Dan Albert2a8d9c22016-09-23 15:55:49 -070073subdirs = [
Yi Jin0a3406f2017-06-22 19:23:11 -070074 "cmds/*",
Jeff Sharkey0c686e72017-10-23 16:04:31 -060075 "core/*",
Colin Cross4f8d9e62016-12-01 15:55:00 -080076 "libs/*",
Colin Cross76de4f62017-05-15 18:10:40 -070077 "media/*",
Fabien Sanglard19160202017-01-12 14:24:31 -050078 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -070079 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -070080 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -070081]
Svetoslav Ganov74c99832016-12-05 20:07:20 -080082
83optional_subdirs = [
84 "core/tests/utiltests/jni",
85]
Steven Morelandeddafe92017-10-02 16:58:41 -070086
87java_library {
88 name: "hwbinder",
89 no_framework_libs: true,
90
91 srcs: [
92 "core/java/android/os/HidlSupport.java",
93 "core/java/android/annotation/NonNull.java",
94 "core/java/android/os/HwBinder.java",
95 "core/java/android/os/HwBlob.java",
96 "core/java/android/os/HwParcel.java",
97 "core/java/android/os/IHwBinder.java",
98 "core/java/android/os/IHwInterface.java",
99 "core/java/android/os/DeadObjectException.java",
100 "core/java/android/os/DeadSystemException.java",
101 "core/java/android/os/RemoteException.java",
102 "core/java/android/util/AndroidException.java",
103 ],
104
105 dxflags: ["--core-library"],
106 installable: false,
107}