blob: 49c53851df8aa71c620ce2fb9d9bd301f994701a [file] [log] [blame]
Andrew Scull599e7912017-09-14 14:00:36 +01001//
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
Andrew Scull599e7912017-09-14 14:00:36 +010017cc_library {
18 name: "libnos",
Allen Webbfbf534f2017-09-14 14:29:00 -070019 srcs: [
Andrew Scull96517d82017-10-09 12:53:19 +010020 "debug.cpp",
Allen Webbfbf534f2017-09-14 14:29:00 -070021 ],
Andrew Scull56ffcc42018-01-17 11:58:38 +000022 defaults: ["nos_cc_host_supported_defaults"],
Andrew Scull87a2caf2017-10-11 14:07:24 +010023 header_libs: ["nos_headers"],
24 shared_libs: ["libnos_datagram"],
25 export_include_dirs: ["include"],
Andrew Scull96517d82017-10-09 12:53:19 +010026 export_shared_lib_headers: ["libnos_datagram"],
Andrew Scull599e7912017-09-14 14:00:36 +010027}
Andrew Scull87a2caf2017-10-11 14:07:24 +010028
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}