blob: b83c63fdf3a1cd85376635b4cbb5f29a6a53a951 [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 Cross2bcc40b2017-05-02 14:14:56 -070028// ==== c++ proto device library ==============================
29cc_library {
30 name: "libplatformprotos",
31 host_supported: true,
Colin Cross2bcc40b2017-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 },
42 },
43 android: {
44 proto: {
45 type: "lite",
46 },
47 shared: {
48 // The proto files generate full protos, but we only use
49 // them as lite on device. This works fine for a static
50 // library, where the unused full symbols are stripped,
51 // but fails if it is linked as a standalone shared
52 // library because it is missing the full runtime.
53 enabled: false,
54 },
55 },
56 },
57
58 srcs: [
59 "core/proto/**/*.proto",
60 "libs/incident/**/*.proto",
61 ],
62}
63
Dan Albert2a8d9c22016-09-23 15:55:49 -070064subdirs = [
Dan Willemsend3eac262017-09-08 22:47:47 -070065 "cmds/*",
Colin Crossaf737302017-04-20 12:20:20 -070066 "core/jni",
Colin Cross4f8d9e62016-12-01 15:55:00 -080067 "libs/*",
Colin Crosseb27d272017-05-15 18:10:40 -070068 "media/*",
Fabien Sanglard19160202017-01-12 14:24:31 -050069 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -070070 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -070071 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -070072]
Svetoslav Ganov74c99832016-12-05 20:07:20 -080073
74optional_subdirs = [
75 "core/tests/utiltests/jni",
76]
Steven Morelandeddafe92017-10-02 16:58:41 -070077
78java_library {
79 name: "hwbinder",
80 no_framework_libs: true,
81
82 srcs: [
83 "core/java/android/os/HidlSupport.java",
84 "core/java/android/annotation/NonNull.java",
85 "core/java/android/os/HwBinder.java",
86 "core/java/android/os/HwBlob.java",
87 "core/java/android/os/HwParcel.java",
88 "core/java/android/os/IHwBinder.java",
89 "core/java/android/os/IHwInterface.java",
90 "core/java/android/os/DeadObjectException.java",
91 "core/java/android/os/DeadSystemException.java",
92 "core/java/android/os/RemoteException.java",
93 "core/java/android/util/AndroidException.java",
94 ],
95
96 dxflags: ["--core-library"],
97 installable: false,
98}