• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2019 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20cc_library {
21    name: "libcuttlefish_device_config_proto",
22    proto: {
23        export_proto_headers: true,
24        type: "full",
25    },
26    srcs: [
27        "device_config.proto",
28    ],
29    defaults: ["cuttlefish_host"],
30}
31
32cc_library_shared {
33    name: "libcuttlefish_device_config",
34    srcs: [
35        "device_config.cpp",
36        "device_config_shared.cpp",
37    ],
38    shared_libs: [
39        "libbase",
40        "liblog",
41        "libcuttlefish_device_config_proto",
42        "libcuttlefish_fs",
43        "libcuttlefish_utils",
44        "libprotobuf-cpp-full",
45    ],
46    target: {
47        host: {
48            srcs: [
49                "host_device_config.cpp",
50            ],
51            shared_libs: [
52                "libjsoncpp",
53            ],
54            static_libs: [
55                "libcuttlefish_host_config",
56            ],
57        },
58        android: {
59            srcs: [
60                "guest_device_config.cpp",
61            ],
62            shared_libs: [
63                "libcutils",
64            ],
65        },
66    },
67    export_include_dirs: ["."],
68    defaults: ["cuttlefish_host"],
69}
70