blob: 9e8c384399a6dbc839dd6a573d7be41c6e8ae53a [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 Cross2bcc40b2017-05-02 14:14:56 -070015// ==== c++ proto device library ==============================
16cc_library {
17 name: "libplatformprotos",
18 host_supported: true,
19 // b/34740546, work around clang-tidy segmentation fault.
20 tidy_checks: ["-modernize*"],
21 proto: {
22 export_proto_headers: true,
23 include_dirs: ["external/protobuf/src"],
24 },
25
26 target: {
27 host: {
28 proto: {
29 type: "full",
30 },
31 },
32 android: {
33 proto: {
34 type: "lite",
35 },
36 shared: {
37 // The proto files generate full protos, but we only use
38 // them as lite on device. This works fine for a static
39 // library, where the unused full symbols are stripped,
40 // but fails if it is linked as a standalone shared
41 // library because it is missing the full runtime.
42 enabled: false,
43 },
44 },
45 },
46
47 srcs: [
48 "core/proto/**/*.proto",
49 "libs/incident/**/*.proto",
50 ],
51}
52
Dan Albert2a8d9c22016-09-23 15:55:49 -070053subdirs = [
Colin Crossaf737302017-04-20 12:20:20 -070054 "core/jni",
Colin Cross4f8d9e62016-12-01 15:55:00 -080055 "libs/*",
Colin Crosseb27d272017-05-15 18:10:40 -070056 "media/*",
Fabien Sanglard19160202017-01-12 14:24:31 -050057 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -070058 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -070059 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -070060]
Svetoslav Ganov74c99832016-12-05 20:07:20 -080061
62optional_subdirs = [
63 "core/tests/utiltests/jni",
64]