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_library {
18    name: "libnos",
19    srcs: [
20        "debug.cpp",
21    ],
22    defaults: ["nos_cc_host_supported_defaults"],
23    header_libs: ["nos_headers"],
24    shared_libs: ["libnos_datagram"],
25    export_include_dirs: ["include"],
26    export_shared_lib_headers: ["libnos_datagram"],
27}
28
29// This part of libnos must be linked with the target's implementation of
30// libnos_datagram. A library should be created for this such as:
31//
32// cc_library {
33//     name: "libnos_client_xxx",
34//     srcs: [":libnos_client"],
35//     defaults: ["libnos_client_defaults"],
36//     shared_libs: ["libnos_datagram_xxx"],
37// }
38//
39// Components that directly use `NuggetClient` must link against it. Other
40// components should be written against `NuggetClientInterface` and can simply
41// link against `libnos`.
42
43filegroup {
44    name: "libnos_client",
45    srcs: ["NuggetClient.cpp"],
46}
47
48cc_defaults {
49    name: "libnos_client_defaults",
50    header_libs: ["nos_headers"],
51    shared_libs: [
52        "libnos",
53        "libnos_transport",
54    ],
55}
56