1soong_namespace { 2} 3 4package { 5 default_applicable_licenses: ["hardware_qcom_sm8150_gps_license"], 6} 7 8// Added automatically by a large-scale-change that took the approach of 9// 'apply every license found to every target'. While this makes sure we respect 10// every license restriction, it may not be entirely correct. 11// 12// e.g. GPL in an MIT project might only apply to the contrib/ directory. 13// 14// Please consider splitting the single license below into multiple licenses, 15// taking care not to lose any license_kind information, and overriding the 16// default license using the 'licenses: [...]' property on targets as needed. 17// 18// For unused files, consider creating a 'filegroup' with "//visibility:private" 19// to attach the license to, and including a comment whether the files may be 20// used in the current project. 21// http://go/android-license-faq 22license { 23 name: "hardware_qcom_sm8150_gps_license", 24 visibility: [":__subpackages__"], 25 license_kinds: [ 26 "SPDX-license-identifier-Apache-2.0", 27 "SPDX-license-identifier-BSD", 28 "legacy_not_a_contribution", 29 ], 30 license_text: [ 31 "LICENSE", 32 ], 33} 34 35GNSS_CFLAGS = [ 36 "-Werror", 37 "-Wno-error=unused-parameter", 38 "-Wno-error=macro-redefined", 39 "-Wno-error=reorder", 40 "-Wno-error=missing-braces", 41 "-Wno-error=self-assign", 42 "-Wno-error=enum-conversion", 43 "-Wno-error=logical-op-parentheses", 44 "-Wno-error=null-arithmetic", 45 "-Wno-error=null-conversion", 46 "-Wno-error=parentheses-equality", 47 "-Wno-error=undefined-bool-conversion", 48 "-Wno-error=tautological-compare", 49 "-Wno-error=switch", 50 "-Wno-error=date-time", 51] 52 53/* Activate the following for regression testing */ 54GNSS_SANITIZE = { 55/* address: true,*/ 56 cfi: true, 57 misc_undefined: [ 58 "bounds", 59 "null", 60 "unreachable", 61 "integer", 62 ], 63} 64 65/* Activate the following for debug purposes only, 66 comment out for production */ 67GNSS_SANITIZE_DIAG = { 68/* 69 diag: { 70 cfi: true, 71 misc_undefined: [ 72 "bounds", 73 "null", 74 "unreachable", 75 "integer", 76 ], 77 }, 78*/ 79} 80