• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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//
16
17cc_defaults {
18    name: "citadeld_defaults",
19    srcs: [
20        "aidl/android/hardware/citadel/ICitadeld.aidl",
21    ],
22    defaults: ["nos_cc_defaults"],
23    header_libs: [
24        "nos_headers",
25    ],
26    shared_libs: [
27        "libbase",
28        "libbinder",
29        "libnos",
30        "libutils",
31        "//hardware/google/pixel:pixelpowerstats_provider_aidl_interface-cpp",
32    ],
33}
34
35cc_defaults {
36    name: "citadeld_hw_defaults",
37    defaults: [
38        "nos_cc_hw_defaults",
39        "citadeld_defaults",
40    ],
41}
42
43cc_binary {
44    name: "citadeld",
45    init_rc: ["citadeld.rc"],
46    srcs: [
47        "main.cpp",
48    ],
49    defaults: ["citadeld_hw_defaults"],
50    shared_libs: [
51        "libnos",
52        "libnos_client_citadel",
53        "libnos_transport",
54    ],
55}
56
57cc_library {
58    name: "libnos_citadeld_proxy",
59    srcs: [
60        "CitadeldProxyClient.cpp",
61    ],
62    defaults: ["citadeld_defaults"],
63    export_include_dirs: ["include"],
64    export_shared_lib_headers: ["libbinder"],
65    aidl: {
66        export_aidl_headers: true,
67    },
68}
69