• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// 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
15// *** 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
61cc_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",
70        "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",
79        "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",
94        "cups/pwg-media.c",
95        "cups/raster-error.c",
96        "cups/raster-stream.c",
97        "cups/raster-stubs.c",
98        "cups/request.c",
99        "cups/sidechannel.c",
100        "cups/snmp.c",
101        "cups/string.c",
102        "cups/tempfile.c",
103        "cups/thread.c",
104        "cups/tls-boringssl.c",
105        "cups/transcode.c",
106        "cups/usersys.c",
107        "cups/util.c",
108    ],
109
110    cflags: [
111        "-D_PPD_DEPRECATED=",
112
113        "-Wextra",
114        "-Wall",
115        "-Wno-unused-parameter",
116        "-Wno-unused-function",
117        "-Wno-unused-variable",
118        "-Wno-unused-value",
119        "-Wno-sign-compare",
120        "-Wno-missing-field-initializers",
121        "-Wno-implicit-function-declaration",
122        "-Wno-deprecated-declarations",
123        "-Werror",
124    ],
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",
141        "libcrypto",
142        "libssl",
143    ],
144}
145