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 15// ==== c++ proto device library ============================== 16cc_library { 17 name: "libplatformprotos", 18 host_supported: true, 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 }, 29 srcs: [ 30 "core/proto/**/*.proto", 31 "libs/incident/**/*.proto", 32 ], 33 }, 34 android: { 35 proto: { 36 type: "lite", 37 }, 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: [ 42 "core/proto/android/service/graphicsstats.proto", 43 ], 44 shared: { 45 enabled: false, 46 }, 47 }, 48 }, 49} 50 51subdirs = [ 52 "core/jni", 53 "libs/*", 54 "media/*", 55 "tools/*", 56 "native/android", 57 "native/graphics/jni", 58] 59 60optional_subdirs = [ 61 "core/tests/utiltests/jni", 62] 63