1*420d848fSAndroid Build Coastguard Worker// 2*420d848fSAndroid Build Coastguard Worker// Copyright (C) 2017 The Android Open Source Project 3*420d848fSAndroid Build Coastguard Worker// 4*420d848fSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 5*420d848fSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 6*420d848fSAndroid Build Coastguard Worker// You may obtain a copy of the License at 7*420d848fSAndroid Build Coastguard Worker// 8*420d848fSAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 9*420d848fSAndroid Build Coastguard Worker// 10*420d848fSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 11*420d848fSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 12*420d848fSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*420d848fSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 14*420d848fSAndroid Build Coastguard Worker// limitations under the License. 15*420d848fSAndroid Build Coastguard Worker// 16*420d848fSAndroid Build Coastguard Worker 17*420d848fSAndroid Build Coastguard Workerpackage { 18*420d848fSAndroid Build Coastguard Worker default_applicable_licenses: ["external_jsmn_license"], 19*420d848fSAndroid Build Coastguard Worker} 20*420d848fSAndroid Build Coastguard Worker 21*420d848fSAndroid Build Coastguard Worker// Added automatically by a large-scale-change that took the approach of 22*420d848fSAndroid Build Coastguard Worker// 'apply every license found to every target'. While this makes sure we respect 23*420d848fSAndroid Build Coastguard Worker// every license restriction, it may not be entirely correct. 24*420d848fSAndroid Build Coastguard Worker// 25*420d848fSAndroid Build Coastguard Worker// e.g. GPL in an MIT project might only apply to the contrib/ directory. 26*420d848fSAndroid Build Coastguard Worker// 27*420d848fSAndroid Build Coastguard Worker// Please consider splitting the single license below into multiple licenses, 28*420d848fSAndroid Build Coastguard Worker// taking care not to lose any license_kind information, and overriding the 29*420d848fSAndroid Build Coastguard Worker// default license using the 'licenses: [...]' property on targets as needed. 30*420d848fSAndroid Build Coastguard Worker// 31*420d848fSAndroid Build Coastguard Worker// For unused files, consider creating a 'fileGroup' with "//visibility:private" 32*420d848fSAndroid Build Coastguard Worker// to attach the license to, and including a comment whether the files may be 33*420d848fSAndroid Build Coastguard Worker// used in the current project. 34*420d848fSAndroid Build Coastguard Worker// See: http://go/android-license-faq 35*420d848fSAndroid Build Coastguard Workerlicense { 36*420d848fSAndroid Build Coastguard Worker name: "external_jsmn_license", 37*420d848fSAndroid Build Coastguard Worker visibility: [":__subpackages__"], 38*420d848fSAndroid Build Coastguard Worker license_kinds: [ 39*420d848fSAndroid Build Coastguard Worker "SPDX-license-identifier-BSD", 40*420d848fSAndroid Build Coastguard Worker "SPDX-license-identifier-MIT", 41*420d848fSAndroid Build Coastguard Worker ], 42*420d848fSAndroid Build Coastguard Worker license_text: [ 43*420d848fSAndroid Build Coastguard Worker "LICENSE", 44*420d848fSAndroid Build Coastguard Worker ], 45*420d848fSAndroid Build Coastguard Worker} 46*420d848fSAndroid Build Coastguard Worker 47*420d848fSAndroid Build Coastguard Workercc_library_static { 48*420d848fSAndroid Build Coastguard Worker name: "libjsmn", 49*420d848fSAndroid Build Coastguard Worker vendor_available: true, 50*420d848fSAndroid Build Coastguard Worker srcs: ["jsmn.c"], 51*420d848fSAndroid Build Coastguard Worker cflags: [ 52*420d848fSAndroid Build Coastguard Worker "-Wall", 53*420d848fSAndroid Build Coastguard Worker "-Werror", 54*420d848fSAndroid Build Coastguard Worker ], 55*420d848fSAndroid Build Coastguard Worker export_include_dirs: ["."], 56*420d848fSAndroid Build Coastguard Worker min_sdk_version: "apex_inherit", 57*420d848fSAndroid Build Coastguard Worker apex_available: [ 58*420d848fSAndroid Build Coastguard Worker "//apex_available:platform", 59*420d848fSAndroid Build Coastguard Worker "//apex_available:anyapex", 60*420d848fSAndroid Build Coastguard Worker ], 61*420d848fSAndroid Build Coastguard Worker} 62