1// 2// Copyright (C) 2019 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 default_visibility: ["//visibility:private"], 19 default_applicable_licenses: ["external_OpenCSD_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// See: http://go/android-license-faq 36license { 37 name: "external_OpenCSD_license", 38 visibility: [":__subpackages__"], 39 license_kinds: [ 40 "SPDX-license-identifier-BSD", 41 "SPDX-license-identifier-GPL-3.0", 42 ], 43 license_text: [ 44 "LICENSE", 45 ], 46} 47 48cc_library_static { 49 name: "libopencsd_decoder", 50 host_supported: true, 51 visibility: [ 52 "//cts/tests/tests/simpleperf", 53 "//system/extras/simpleperf", 54 ], 55 export_include_dirs: ["decoder/include"], 56 57 cppflags: [ 58 "-Wno-ignored-qualifiers", 59 "-Wno-unused-parameter", 60 "-Wno-switch", 61 "-Wno-unused-private-field", 62 "-Wno-implicit-fallthrough", 63 "-Wno-constant-logical-operand", 64 "-fexceptions", 65 ], 66 rtti: true, 67 68 target: { 69 windows: { 70 enabled: true, 71 }, 72 }, 73 74 srcs: [ 75 "decoder/source/*.cpp", 76 "decoder/source/etmv3/*.cpp", 77 "decoder/source/etmv4/*.cpp", 78 "decoder/source/ete/*.cpp", 79 "decoder/source/i_dec/*.cpp", 80 "decoder/source/mem_acc/*.cpp", 81 "decoder/source/pkt_printers/*.cpp", 82 "decoder/source/ptm/*.cpp", 83 "decoder/source/stm/*.cpp", 84 ], 85} 86