blob: 0b09b4646d60ceccd456dcb4607cd97968acc550 [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 Cross2bcc40b2017-05-02 14:14:56 -070015// ==== c++ proto device library ==============================
16cc_library {
17 name: "libplatformprotos",
18 host_supported: true,
Colin Cross2bcc40b2017-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 },
29 },
30 android: {
31 proto: {
32 type: "lite",
33 },
34 shared: {
35 // The proto files generate full protos, but we only use
36 // them as lite on device. This works fine for a static
37 // library, where the unused full symbols are stripped,
38 // but fails if it is linked as a standalone shared
39 // library because it is missing the full runtime.
40 enabled: false,
41 },
42 },
43 },
44
45 srcs: [
46 "core/proto/**/*.proto",
47 "libs/incident/**/*.proto",
48 ],
49}
50
Dan Albert2a8d9c22016-09-23 15:55:49 -070051subdirs = [
Dan Willemsend3eac262017-09-08 22:47:47 -070052 "cmds/*",
Colin Crossaf737302017-04-20 12:20:20 -070053 "core/jni",
Colin Cross4f8d9e62016-12-01 15:55:00 -080054 "libs/*",
Colin Crosseb27d272017-05-15 18:10:40 -070055 "media/*",
Fabien Sanglard19160202017-01-12 14:24:31 -050056 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -070057 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -070058 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -070059]
Svetoslav Ganov74c99832016-12-05 20:07:20 -080060
61optional_subdirs = [
62 "core/tests/utiltests/jni",
63]
Steven Morelandeddafe92017-10-02 16:58:41 -070064
65java_library {
66 name: "hwbinder",
67 no_framework_libs: true,
68
69 srcs: [
70 "core/java/android/os/HidlSupport.java",
71 "core/java/android/annotation/NonNull.java",
72 "core/java/android/os/HwBinder.java",
73 "core/java/android/os/HwBlob.java",
74 "core/java/android/os/HwParcel.java",
75 "core/java/android/os/IHwBinder.java",
76 "core/java/android/os/IHwInterface.java",
77 "core/java/android/os/DeadObjectException.java",
78 "core/java/android/os/DeadSystemException.java",
79 "core/java/android/os/RemoteException.java",
80 "core/java/android/util/AndroidException.java",
81 ],
82
83 dxflags: ["--core-library"],
84 installable: false,
85}