1package { 2 default_applicable_licenses: ["frameworks_compile_mclinker_license"], 3} 4 5// Added automatically by a large-scale-change that took the approach of 6// 'apply every license found to every target'. While this makes sure we respect 7// every license restriction, it may not be entirely correct. 8// 9// e.g. GPL in an MIT project might only apply to the contrib/ directory. 10// 11// Please consider splitting the single license below into multiple licenses, 12// taking care not to lose any license_kind information, and overriding the 13// default license using the 'licenses: [...]' property on targets as needed. 14// 15// For unused files, consider creating a 'fileGroup' with "//visibility:private" 16// to attach the license to, and including a comment whether the files may be 17// used in the current project. 18// See: http://go/android-license-faq 19license { 20 name: "frameworks_compile_mclinker_license", 21 visibility: [":__subpackages__"], 22 license_kinds: [ 23 "SPDX-license-identifier-BSD", 24 "SPDX-license-identifier-MIT", 25 "SPDX-license-identifier-NCSA", 26 ], 27 license_text: [ 28 "LICENSE.TXT", 29 ], 30} 31 32cc_defaults { 33 name: "mcld-defaults", 34 defaults: ["llvm-defaults"], 35 36 cppflags: [ 37 "-Wall", 38 "-Wno-unused-parameter", 39 "-Wno-unused-private-field", 40 "-Wno-unused-const-variable", 41 "-Werror", 42 43 //To enable asserts: 44 //"-D_DEBUG", 45 //"-UNDEBUG", 46 ], 47 48 target: { 49 arm_on_x86: { 50 cflags: [ 51 "-DPROVIDE_ARM_CODEGEN", 52 "-DFORCE_BUILD_ARM", 53 ], 54 }, 55 arm_on_x86_64: { 56 cflags: [ 57 "-DPROVIDE_ARM_CODEGEN", 58 "-DFORCE_BUILD_ARM", 59 ], 60 }, 61 }, 62 63 include_dirs: [ 64 "frameworks/compile/mclinker/include", 65 ], 66} 67 68subdirs = [ 69 "lib", 70 "tools/mcld", 71] 72