1*02ca8ccaSAndroid Build Coastguard Worker// 2*02ca8ccaSAndroid Build Coastguard Worker// Copyright (C) 2019 The Android Open Source Project 3*02ca8ccaSAndroid Build Coastguard Worker// 4*02ca8ccaSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 5*02ca8ccaSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 6*02ca8ccaSAndroid Build Coastguard Worker// You may obtain a copy of the License at 7*02ca8ccaSAndroid Build Coastguard Worker// 8*02ca8ccaSAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 9*02ca8ccaSAndroid Build Coastguard Worker// 10*02ca8ccaSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 11*02ca8ccaSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 12*02ca8ccaSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*02ca8ccaSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 14*02ca8ccaSAndroid Build Coastguard Worker// limitations under the License. 15*02ca8ccaSAndroid Build Coastguard Worker// 16*02ca8ccaSAndroid Build Coastguard Worker 17*02ca8ccaSAndroid Build Coastguard Workerpackage { 18*02ca8ccaSAndroid Build Coastguard Worker default_visibility: ["//visibility:private"], 19*02ca8ccaSAndroid Build Coastguard Worker default_applicable_licenses: ["external_OpenCSD_license"], 20*02ca8ccaSAndroid Build Coastguard Worker} 21*02ca8ccaSAndroid Build Coastguard Worker 22*02ca8ccaSAndroid Build Coastguard Worker// Added automatically by a large-scale-change that took the approach of 23*02ca8ccaSAndroid Build Coastguard Worker// 'apply every license found to every target'. While this makes sure we respect 24*02ca8ccaSAndroid Build Coastguard Worker// every license restriction, it may not be entirely correct. 25*02ca8ccaSAndroid Build Coastguard Worker// 26*02ca8ccaSAndroid Build Coastguard Worker// e.g. GPL in an MIT project might only apply to the contrib/ directory. 27*02ca8ccaSAndroid Build Coastguard Worker// 28*02ca8ccaSAndroid Build Coastguard Worker// Please consider splitting the single license below into multiple licenses, 29*02ca8ccaSAndroid Build Coastguard Worker// taking care not to lose any license_kind information, and overriding the 30*02ca8ccaSAndroid Build Coastguard Worker// default license using the 'licenses: [...]' property on targets as needed. 31*02ca8ccaSAndroid Build Coastguard Worker// 32*02ca8ccaSAndroid Build Coastguard Worker// For unused files, consider creating a 'fileGroup' with "//visibility:private" 33*02ca8ccaSAndroid Build Coastguard Worker// to attach the license to, and including a comment whether the files may be 34*02ca8ccaSAndroid Build Coastguard Worker// used in the current project. 35*02ca8ccaSAndroid Build Coastguard Worker// See: http://go/android-license-faq 36*02ca8ccaSAndroid Build Coastguard Workerlicense { 37*02ca8ccaSAndroid Build Coastguard Worker name: "external_OpenCSD_license", 38*02ca8ccaSAndroid Build Coastguard Worker visibility: [":__subpackages__"], 39*02ca8ccaSAndroid Build Coastguard Worker license_kinds: [ 40*02ca8ccaSAndroid Build Coastguard Worker "SPDX-license-identifier-BSD", 41*02ca8ccaSAndroid Build Coastguard Worker "SPDX-license-identifier-GPL-3.0", 42*02ca8ccaSAndroid Build Coastguard Worker ], 43*02ca8ccaSAndroid Build Coastguard Worker license_text: [ 44*02ca8ccaSAndroid Build Coastguard Worker "LICENSE", 45*02ca8ccaSAndroid Build Coastguard Worker ], 46*02ca8ccaSAndroid Build Coastguard Worker} 47*02ca8ccaSAndroid Build Coastguard Worker 48*02ca8ccaSAndroid Build Coastguard Workercc_library_static { 49*02ca8ccaSAndroid Build Coastguard Worker name: "libopencsd_decoder", 50*02ca8ccaSAndroid Build Coastguard Worker host_supported: true, 51*02ca8ccaSAndroid Build Coastguard Worker visibility: [ 52*02ca8ccaSAndroid Build Coastguard Worker "//cts/tests/tests/simpleperf", 53*02ca8ccaSAndroid Build Coastguard Worker "//system/extras/simpleperf", 54*02ca8ccaSAndroid Build Coastguard Worker ], 55*02ca8ccaSAndroid Build Coastguard Worker export_include_dirs: ["decoder/include"], 56*02ca8ccaSAndroid Build Coastguard Worker 57*02ca8ccaSAndroid Build Coastguard Worker cppflags: [ 58*02ca8ccaSAndroid Build Coastguard Worker "-Wno-ignored-qualifiers", 59*02ca8ccaSAndroid Build Coastguard Worker "-Wno-unused-parameter", 60*02ca8ccaSAndroid Build Coastguard Worker "-Wno-switch", 61*02ca8ccaSAndroid Build Coastguard Worker "-Wno-unused-private-field", 62*02ca8ccaSAndroid Build Coastguard Worker "-Wno-implicit-fallthrough", 63*02ca8ccaSAndroid Build Coastguard Worker "-Wno-constant-logical-operand", 64*02ca8ccaSAndroid Build Coastguard Worker "-fexceptions", 65*02ca8ccaSAndroid Build Coastguard Worker ], 66*02ca8ccaSAndroid Build Coastguard Worker rtti: true, 67*02ca8ccaSAndroid Build Coastguard Worker 68*02ca8ccaSAndroid Build Coastguard Worker target: { 69*02ca8ccaSAndroid Build Coastguard Worker windows: { 70*02ca8ccaSAndroid Build Coastguard Worker enabled: true, 71*02ca8ccaSAndroid Build Coastguard Worker }, 72*02ca8ccaSAndroid Build Coastguard Worker }, 73*02ca8ccaSAndroid Build Coastguard Worker 74*02ca8ccaSAndroid Build Coastguard Worker srcs: [ 75*02ca8ccaSAndroid Build Coastguard Worker "decoder/source/*.cpp", 76*02ca8ccaSAndroid Build Coastguard Worker "decoder/source/etmv3/*.cpp", 77*02ca8ccaSAndroid Build Coastguard Worker "decoder/source/etmv4/*.cpp", 78*02ca8ccaSAndroid Build Coastguard Worker "decoder/source/ete/*.cpp", 79*02ca8ccaSAndroid Build Coastguard Worker "decoder/source/i_dec/*.cpp", 80*02ca8ccaSAndroid Build Coastguard Worker "decoder/source/mem_acc/*.cpp", 81*02ca8ccaSAndroid Build Coastguard Worker "decoder/source/pkt_printers/*.cpp", 82*02ca8ccaSAndroid Build Coastguard Worker "decoder/source/ptm/*.cpp", 83*02ca8ccaSAndroid Build Coastguard Worker "decoder/source/stm/*.cpp", 84*02ca8ccaSAndroid Build Coastguard Worker ], 85*02ca8ccaSAndroid Build Coastguard Worker} 86