1//
2// Copyright (C) 2017 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_host_config_adb",
22    srcs: [
23        "config.cpp",
24        "data.cpp",
25        "flags.cpp",
26        "launch.cpp",
27        "strings.cpp",
28    ],
29    shared_libs: [
30        "libbase",
31        "libcuttlefish_fs",
32        "libcuttlefish_host_config",
33        "libcuttlefish_utils",
34        "libfruit",
35        "libgflags",
36        "libjsoncpp",
37        "libz",
38    ],
39    defaults: ["cuttlefish_host"],
40    target: {
41        darwin: {
42            enabled: true,
43        },
44    },
45}
46
47cc_test_host {
48    name: "libcuttlefish_host_config_adb_test",
49    srcs: [
50        "test.cpp",
51    ],
52    static_libs: [
53        "libbase",
54        "libcuttlefish_fs",
55        "libcuttlefish_host_config",
56        "libcuttlefish_host_config_adb",
57        "libcuttlefish_utils",
58    ],
59    shared_libs: [
60        "libgflags",
61        "libfruit",
62        "libjsoncpp",
63        "liblog",
64    ],
65    defaults: ["cuttlefish_host"],
66    test_options: {
67        unit_test: true,
68    },
69}
70