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