blob: 3435daf5785547363f24b1fb9c0bede4583e0b77 [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
17subdirs = [
Andrew Scull98837ec2017-09-14 14:18:35 +010018 "generator",
Andrew Scull599e7912017-09-14 14:00:36 +010019 "test",
20]
21
22cc_library {
23 name: "libnos",
Allen Webbfbf534f2017-09-14 14:29:00 -070024 srcs: [
Andrew Scull96517d82017-10-09 12:53:19 +010025 "debug.cpp",
Allen Webbfbf534f2017-09-14 14:29:00 -070026 ],
Andrew Scull599e7912017-09-14 14:00:36 +010027 defaults: ["nos_shared_cc_defaults"],
Andrew Scull87a2caf2017-10-11 14:07:24 +010028 header_libs: ["nos_headers"],
29 shared_libs: ["libnos_datagram"],
30 export_include_dirs: ["include"],
Andrew Scull96517d82017-10-09 12:53:19 +010031 export_shared_lib_headers: ["libnos_datagram"],
Andrew Scull599e7912017-09-14 14:00:36 +010032}
Andrew Scull87a2caf2017-10-11 14:07:24 +010033
34// This part of libnos must be linked with the target's implementation of
35// libnos_datagram. A library should be created for this such as:
36//
37// cc_library {
38// name: "libnos_client_xxx",
39// srcs: [":libnos_client"],
40// defaults: ["libnos_client_defaults"],
41// shared_libs: ["libnos_datagram_xxx"],
42// }
43//
44// Components that directly use `NuggetClient` must link against it. Other
45// components should be written against `NuggetClientInterface` and can simply
46// link against `libnos`.
47
48filegroup {
49 name: "libnos_client",
50 srcs: ["NuggetClient.cpp"],
51}
52
53cc_defaults {
54 name: "libnos_client_defaults",
55 header_libs: ["nos_headers"],
56 shared_libs: [
57 "libnos",
58 "libnos_transport",
59 ],
60}