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", 39 "-Werror", 40 41 //To enable asserts: 42 //"-D_DEBUG", 43 //"-UNDEBUG", 44 ], 45 46 target: { 47 arm_on_x86: { 48 cflags: [ 49 "-DPROVIDE_ARM_CODEGEN", 50 "-DFORCE_BUILD_ARM", 51 ], 52 }, 53 arm_on_x86_64: { 54 cflags: [ 55 "-DPROVIDE_ARM_CODEGEN", 56 "-DFORCE_BUILD_ARM", 57 ], 58 }, 59 }, 60 61 include_dirs: [ 62 "frameworks/compile/mclinker/include", 63 ], 64} 65 66subdirs = [ 67 "lib", 68 "tools/mcld", 69] 70