OSDN Git Service

Import translations. DO NOT MERGE am: 80d87da085 -s ours am: d250d3aa34 -s ours
[android-x86/frameworks-base.git] / Android.bp
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  ==============================
16 cc_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             srcs: [
32                 "core/proto/**/*.proto",
33                 "libs/incident/**/*.proto",
34             ],
35         },
36         android: {
37             proto: {
38                 type: "lite",
39             },
40             // We only build the protos that are optimized for the lite
41             // runtime, as well as the only protos that are actually
42             // needed by the device.
43             srcs: [
44                 "core/proto/android/service/graphicsstats.proto",
45             ],
46             shared: {
47                 enabled: false,
48             },
49         },
50     },
51 }
52
53 subdirs = [
54     "core/jni",
55     "libs/*",
56     "media/*",
57     "tools/*",
58     "native/android",
59     "native/graphics/jni",
60 ]
61
62 optional_subdirs = [
63     "core/tests/utiltests/jni",
64 ]