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 | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 28 | // ==== c++ proto device library ============================== |
| 29 | cc_library { |
| 30 | name: "libplatformprotos", |
| 31 | host_supported: true, |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 32 | proto: { |
| 33 | export_proto_headers: true, |
| 34 | include_dirs: ["external/protobuf/src"], |
| 35 | }, |
| 36 | |
Chih-Hung Hsieh | c7edf07 | 2017-10-03 09:57:55 -0700 | [diff] [blame] | 37 | cflags: [ |
| 38 | "-Wall", |
| 39 | "-Werror", |
| 40 | "-Wno-unused-parameter", |
| 41 | ], |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 42 | target: { |
| 43 | host: { |
| 44 | proto: { |
| 45 | type: "full", |
| 46 | }, |
John Reck | 915883b | 2017-05-03 10:27:20 -0700 | [diff] [blame] | 47 | srcs: [ |
| 48 | "core/proto/**/*.proto", |
| 49 | "libs/incident/**/*.proto", |
| 50 | ], |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 51 | }, |
| 52 | android: { |
| 53 | proto: { |
| 54 | type: "lite", |
| 55 | }, |
John Reck | 915883b | 2017-05-03 10:27:20 -0700 | [diff] [blame] | 56 | // We only build the protos that are optimized for the lite |
| 57 | // runtime, as well as the only protos that are actually |
| 58 | // needed by the device. |
| 59 | srcs: [ |
| 60 | "core/proto/android/service/graphicsstats.proto", |
| 61 | ], |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 62 | shared: { |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 63 | enabled: false, |
| 64 | }, |
| 65 | }, |
| 66 | }, |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 67 | } |
| 68 | |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 69 | subdirs = [ |
Dan Willemsen | d3eac26 | 2017-09-08 22:47:47 -0700 | [diff] [blame] | 70 | "cmds/*", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 71 | "core/jni", |
Colin Cross | 4f8d9e6 | 2016-12-01 15:55:00 -0800 | [diff] [blame] | 72 | "libs/*", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 73 | "media/*", |
Fabien Sanglard | 1916020 | 2017-01-12 14:24:31 -0500 | [diff] [blame] | 74 | "tools/*", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 75 | "native/android", |
Dan Albert | 7ce8df3 | 2016-09-23 16:43:49 -0700 | [diff] [blame] | 76 | "native/graphics/jni", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 77 | ] |
Svetoslav Ganov | 74c9983 | 2016-12-05 20:07:20 -0800 | [diff] [blame] | 78 | |
| 79 | optional_subdirs = [ |
| 80 | "core/tests/utiltests/jni", |
| 81 | ] |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 82 | |
| 83 | java_library { |
| 84 | name: "hwbinder", |
| 85 | no_framework_libs: true, |
| 86 | |
| 87 | srcs: [ |
| 88 | "core/java/android/os/HidlSupport.java", |
| 89 | "core/java/android/annotation/NonNull.java", |
| 90 | "core/java/android/os/HwBinder.java", |
| 91 | "core/java/android/os/HwBlob.java", |
| 92 | "core/java/android/os/HwParcel.java", |
| 93 | "core/java/android/os/IHwBinder.java", |
| 94 | "core/java/android/os/IHwInterface.java", |
| 95 | "core/java/android/os/DeadObjectException.java", |
| 96 | "core/java/android/os/DeadSystemException.java", |
| 97 | "core/java/android/os/RemoteException.java", |
| 98 | "core/java/android/util/AndroidException.java", |
| 99 | ], |
| 100 | |
| 101 | dxflags: ["--core-library"], |
| 102 | installable: false, |
| 103 | } |