Jayant Chowdhary | 475aad7 | 2017-05-09 10:28:01 -0700 | [diff] [blame] | 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 | |
Bob Badour | e77763d | 2021-02-12 15:32:03 -0800 | [diff] [blame] | 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. *** |
| 18 | package { |
| 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 |
| 41 | license { |
| 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 Chowdhary | 475aad7 | 2017-05-09 10:28:01 -0700 | [diff] [blame] | 61 | cc_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 Chowdhary | 475aad7 | 2017-05-09 10:28:01 -0700 | [diff] [blame] | 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", |
Jayant Chowdhary | 475aad7 | 2017-05-09 10:28:01 -0700 | [diff] [blame] | 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", |
Jayant Chowdhary | 475aad7 | 2017-05-09 10:28:01 -0700 | [diff] [blame] | 94 | "cups/pwg-media.c", |
Haibo Huang | 4c28362 | 2019-12-13 16:47:52 -0800 | [diff] [blame] | 95 | "cups/raster-error.c", |
| 96 | "cups/raster-stream.c", |
| 97 | "cups/raster-stubs.c", |
Jayant Chowdhary | 475aad7 | 2017-05-09 10:28:01 -0700 | [diff] [blame] | 98 | "cups/request.c", |
| 99 | "cups/sidechannel.c", |
| 100 | "cups/snmp.c", |
Jayant Chowdhary | 475aad7 | 2017-05-09 10:28:01 -0700 | [diff] [blame] | 101 | "cups/string.c", |
| 102 | "cups/tempfile.c", |
| 103 | "cups/thread.c", |
Haibo Huang | 4c28362 | 2019-12-13 16:47:52 -0800 | [diff] [blame] | 104 | "cups/tls-boringssl.c", |
Jayant Chowdhary | 475aad7 | 2017-05-09 10:28:01 -0700 | [diff] [blame] | 105 | "cups/transcode.c", |
| 106 | "cups/usersys.c", |
| 107 | "cups/util.c", |
Jayant Chowdhary | 475aad7 | 2017-05-09 10:28:01 -0700 | [diff] [blame] | 108 | ], |
| 109 | |
| 110 | cflags: [ |
| 111 | "-D_PPD_DEPRECATED=", |
Philip P. Moltmann | 4518e60 | 2017-10-09 10:21:26 -0700 | [diff] [blame] | 112 | |
Jayant Chowdhary | 475aad7 | 2017-05-09 10:28:01 -0700 | [diff] [blame] | 113 | "-Wextra", |
Philip P. Moltmann | 4518e60 | 2017-10-09 10:21:26 -0700 | [diff] [blame] | 114 | "-Wall", |
Jayant Chowdhary | 475aad7 | 2017-05-09 10:28:01 -0700 | [diff] [blame] | 115 | "-Wno-unused-parameter", |
Philip P. Moltmann | 4518e60 | 2017-10-09 10:21:26 -0700 | [diff] [blame] | 116 | "-Wno-unused-function", |
| 117 | "-Wno-unused-variable", |
Haibo Huang | 4c28362 | 2019-12-13 16:47:52 -0800 | [diff] [blame] | 118 | "-Wno-unused-value", |
Jayant Chowdhary | 475aad7 | 2017-05-09 10:28:01 -0700 | [diff] [blame] | 119 | "-Wno-sign-compare", |
| 120 | "-Wno-missing-field-initializers", |
Jayant Chowdhary | 475aad7 | 2017-05-09 10:28:01 -0700 | [diff] [blame] | 121 | "-Wno-implicit-function-declaration", |
Haibo Huang | 4c28362 | 2019-12-13 16:47:52 -0800 | [diff] [blame] | 122 | "-Wno-deprecated-declarations", |
Philip P. Moltmann | 4518e60 | 2017-10-09 10:21:26 -0700 | [diff] [blame] | 123 | "-Werror", |
Jayant Chowdhary | 475aad7 | 2017-05-09 10:28:01 -0700 | [diff] [blame] | 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", |
Glade Diviney | 65a175f | 2017-10-05 09:31:34 -0700 | [diff] [blame] | 141 | "libcrypto", |
| 142 | "libssl", |
Jayant Chowdhary | 475aad7 | 2017-05-09 10:28:01 -0700 | [diff] [blame] | 143 | ], |
| 144 | } |