blob: 80f1c375f7f75a7ba1aa191139bd89d03433d281 [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 Crossaa0d4352017-05-02 14:14:56 -070015// ==== c++ proto device library ==============================
16cc_library {
17 name: "libplatformprotos",
18 host_supported: true,
Colin Crossaa0d4352017-05-02 14:14:56 -070019 proto: {
20 export_proto_headers: true,
21 include_dirs: ["external/protobuf/src"],
22 },
23
24 target: {
25 host: {
26 proto: {
27 type: "full",
28 },
John Reck915883b2017-05-03 10:27:20 -070029 srcs: [
30 "core/proto/**/*.proto",
31 "libs/incident/**/*.proto",
32 ],
Colin Crossaa0d4352017-05-02 14:14:56 -070033 },
34 android: {
35 proto: {
36 type: "lite",
37 },
John Reck915883b2017-05-03 10:27:20 -070038 // We only build the protos that are optimized for the lite
39 // runtime, as well as the only protos that are actually
40 // needed by the device.
41 srcs: [
Yi Jin0a3406f2017-06-22 19:23:11 -070042 "core/proto/android/os/kernelwake.proto",
Yi Jin810b14f2017-09-11 19:01:08 -070043 "core/proto/android/os/pagetypeinfo.proto",
Yi Jinb44f7d42017-07-21 12:12:59 -070044 "core/proto/android/os/procrank.proto",
John Reck915883b2017-05-03 10:27:20 -070045 "core/proto/android/service/graphicsstats.proto",
Yi Jin7e0b4e52017-09-12 20:00:25 -070046 "libs/incident/proto/android/privacy.proto",
John Reck915883b2017-05-03 10:27:20 -070047 ],
Colin Crossaa0d4352017-05-02 14:14:56 -070048 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -070049 enabled: false,
50 },
51 },
52 },
Colin Crossaa0d4352017-05-02 14:14:56 -070053}
54
Dan Albert2a8d9c22016-09-23 15:55:49 -070055subdirs = [
Yi Jin0a3406f2017-06-22 19:23:11 -070056 "cmds/*",
Colin Cross3f8fd402017-04-20 12:20:20 -070057 "core/jni",
Colin Cross4f8d9e62016-12-01 15:55:00 -080058 "libs/*",
Colin Cross76de4f62017-05-15 18:10:40 -070059 "media/*",
Fabien Sanglard19160202017-01-12 14:24:31 -050060 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -070061 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -070062 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -070063]
Svetoslav Ganov74c99832016-12-05 20:07:20 -080064
65optional_subdirs = [
66 "core/tests/utiltests/jni",
67]
Steven Morelandeddafe92017-10-02 16:58:41 -070068
69java_library {
70 name: "hwbinder",
71 no_framework_libs: true,
72
73 srcs: [
74 "core/java/android/os/HidlSupport.java",
75 "core/java/android/annotation/NonNull.java",
76 "core/java/android/os/HwBinder.java",
77 "core/java/android/os/HwBlob.java",
78 "core/java/android/os/HwParcel.java",
79 "core/java/android/os/IHwBinder.java",
80 "core/java/android/os/IHwInterface.java",
81 "core/java/android/os/DeadObjectException.java",
82 "core/java/android/os/DeadSystemException.java",
83 "core/java/android/os/RemoteException.java",
84 "core/java/android/util/AndroidException.java",
85 ],
86
87 dxflags: ["--core-library"],
88 installable: false,
89}