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