blob: 1bdccae094cfb4aba60da9f5ffad5b63387a5572 [file] [log] [blame]
Jayant Chowdhary475aad72017-05-09 10:28:01 -07001// Copyright (C) 2016 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Bob Badoure77763d2021-02-12 15:32:03 -080015// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
16// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
17// DEPENDING ON IT IN YOUR PROJECT. ***
18package {
19 default_applicable_licenses: ["external_libcups_license"],
20}
21
22// Added automatically by a large-scale-change that took the approach of
23// 'apply every license found to every target'. While this makes sure we respect
24// every license restriction, it may not be entirely correct.
25//
26// e.g. GPL in an MIT project might only apply to the contrib/ directory.
27//
28// Please consider splitting the single license below into multiple licenses,
29// taking care not to lose any license_kind information, and overriding the
30// default license using the 'licenses: [...]' property on targets as needed.
31//
32// For unused files, consider creating a 'fileGroup' with "//visibility:private"
33// to attach the license to, and including a comment whether the files may be
34// used in the current project.
35//
36// large-scale-change included anything that looked like it might be a license
37// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
38//
39// Please consider removing redundant or irrelevant files from 'license_text:'.
40// See: http://go/android-license-faq
41license {
42 name: "external_libcups_license",
43 visibility: [":__subpackages__"],
44 license_kinds: [
45 "SPDX-license-identifier-Apache-2.0",
46 "SPDX-license-identifier-BSD",
47 "SPDX-license-identifier-GPL",
48 "SPDX-license-identifier-GPL-2.0",
49 "SPDX-license-identifier-ISC",
50 "SPDX-license-identifier-LGPL",
51 "SPDX-license-identifier-MIT",
52 "SPDX-license-identifier-Zlib",
53 "legacy_by_exception_only", // by exception only
54 ],
55 license_text: [
56 "LICENSE",
57 "NOTICE",
58 ],
59}
60
Jayant Chowdhary475aad72017-05-09 10:28:01 -070061cc_library_shared {
62 name: "libcups",
63
64 sdk_version: "current",
65
66 srcs: [
67 "cups/array.c",
68 "cups/auth.c",
69 "cups/backchannel.c",
Jayant Chowdhary475aad72017-05-09 10:28:01 -070070 "cups/debug.c",
71 "cups/dest.c",
72 "cups/dest-job.c",
73 "cups/dest-localization.c",
74 "cups/dest-options.c",
75 "cups/dir.c",
76 "cups/encode.c",
77 "cups/file.c",
78 "cups/getdevices.c",
Jayant Chowdhary475aad72017-05-09 10:28:01 -070079 "cups/getputfile.c",
80 "cups/globals.c",
81 "cups/hash.c",
82 "cups/http.c",
83 "cups/http-addr.c",
84 "cups/http-addrlist.c",
85 "cups/http-support.c",
86 "cups/ipp.c",
87 "cups/ipp-support.c",
88 "cups/langprintf.c",
89 "cups/language.c",
90 "cups/md5.c",
91 "cups/md5passwd.c",
92 "cups/notify.c",
93 "cups/options.c",
Jayant Chowdhary475aad72017-05-09 10:28:01 -070094 "cups/pwg-media.c",
Haibo Huang4c283622019-12-13 16:47:52 -080095 "cups/raster-error.c",
96 "cups/raster-stream.c",
97 "cups/raster-stubs.c",
Jayant Chowdhary475aad72017-05-09 10:28:01 -070098 "cups/request.c",
99 "cups/sidechannel.c",
100 "cups/snmp.c",
Jayant Chowdhary475aad72017-05-09 10:28:01 -0700101 "cups/string.c",
102 "cups/tempfile.c",
103 "cups/thread.c",
Haibo Huang4c283622019-12-13 16:47:52 -0800104 "cups/tls-boringssl.c",
Jayant Chowdhary475aad72017-05-09 10:28:01 -0700105 "cups/transcode.c",
106 "cups/usersys.c",
107 "cups/util.c",
Jayant Chowdhary475aad72017-05-09 10:28:01 -0700108 ],
109
110 cflags: [
111 "-D_PPD_DEPRECATED=",
Philip P. Moltmann4518e602017-10-09 10:21:26 -0700112
Jayant Chowdhary475aad72017-05-09 10:28:01 -0700113 "-Wextra",
Philip P. Moltmann4518e602017-10-09 10:21:26 -0700114 "-Wall",
Jayant Chowdhary475aad72017-05-09 10:28:01 -0700115 "-Wno-unused-parameter",
Philip P. Moltmann4518e602017-10-09 10:21:26 -0700116 "-Wno-unused-function",
117 "-Wno-unused-variable",
Haibo Huang4c283622019-12-13 16:47:52 -0800118 "-Wno-unused-value",
Jayant Chowdhary475aad72017-05-09 10:28:01 -0700119 "-Wno-sign-compare",
120 "-Wno-missing-field-initializers",
Jayant Chowdhary475aad72017-05-09 10:28:01 -0700121 "-Wno-implicit-function-declaration",
Haibo Huang4c283622019-12-13 16:47:52 -0800122 "-Wno-deprecated-declarations",
Philip P. Moltmann4518e602017-10-09 10:21:26 -0700123 "-Werror",
Jayant Chowdhary475aad72017-05-09 10:28:01 -0700124 ],
125
126 export_include_dirs: [
127 "cups",
128 "filter",
129 "."
130 ],
131
132 arch: {
133 arm: {
134 instruction_set: "arm",
135 },
136 },
137
138 shared_libs: [
139 "libz",
140 "liblog",
Glade Diviney65a175f2017-10-05 09:31:34 -0700141 "libcrypto",
142 "libssl",
Jayant Chowdhary475aad72017-05-09 10:28:01 -0700143 ],
144}