Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 1 | // 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 Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame^] | 15 | // Build ext.jar |
| 16 | // ============================================================ |
| 17 | java_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 Cross | 2bcc40b | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 28 | // ==== c++ proto device library ============================== |
| 29 | cc_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 Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 66 | subdirs = [ |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 67 | "cmds/*", |
Colin Cross | af73730 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 68 | "core/jni", |
Colin Cross | 4f8d9e6 | 2016-12-01 15:55:00 -0800 | [diff] [blame] | 69 | "libs/*", |
Colin Cross | eb27d27 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 70 | "media/*", |
Fabien Sanglard | 1916020 | 2017-01-12 14:24:31 -0500 | [diff] [blame] | 71 | "tools/*", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 72 | "native/android", |
Dan Albert | 7ce8df3 | 2016-09-23 16:43:49 -0700 | [diff] [blame] | 73 | "native/graphics/jni", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 74 | ] |
Svetoslav Ganov | 74c9983 | 2016-12-05 20:07:20 -0800 | [diff] [blame] | 75 | |
| 76 | optional_subdirs = [ |
| 77 | "core/tests/utiltests/jni", |
| 78 | ] |