blob: e14769b0c184d7648cb3c82a620f2d42c4c54216 [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,
32 // b/34740546, work around clang-tidy segmentation fault.
33 tidy_checks: ["-modernize*"],
34 proto: {
35 export_proto_headers: true,
36 include_dirs: ["external/protobuf/src"],
37 },
38
39 target: {
40 host: {
41 proto: {
42 type: "full",
43 },
44 },
45 android: {
46 proto: {
47 type: "lite",
48 },
49 shared: {
50 // The proto files generate full protos, but we only use
51 // them as lite on device. This works fine for a static
52 // library, where the unused full symbols are stripped,
53 // but fails if it is linked as a standalone shared
54 // library because it is missing the full runtime.
55 enabled: false,
56 },
57 },
58 },
59
60 srcs: [
61 "core/proto/**/*.proto",
62 "libs/incident/**/*.proto",
63 ],
64}
65
Dan Albert2a8d9c22016-09-23 15:55:49 -070066subdirs = [
Dan Willemsend3eac262017-09-08 22:47:47 -070067 "cmds/*",
Colin Crossaf737302017-04-20 12:20:20 -070068 "core/jni",
Colin Cross4f8d9e62016-12-01 15:55:00 -080069 "libs/*",
Colin Crosseb27d272017-05-15 18:10:40 -070070 "media/*",
Fabien Sanglard19160202017-01-12 14:24:31 -050071 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -070072 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -070073 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -070074]
Svetoslav Ganov74c99832016-12-05 20:07:20 -080075
76optional_subdirs = [
77 "core/tests/utiltests/jni",
78]