1package { 2 default_applicable_licenses: ["external_libconfig_license"], 3} 4 5license { 6 name: "external_libconfig_license", 7 visibility: [":__subpackages__"], 8 license_kinds: [ 9 "SPDX-license-identifier-LGPL-2.1", 10 ], 11 license_text: [ 12 "LICENSE", 13 ], 14} 15 16cc_library_host_static { 17 name: "libconfig", 18 srcs: [ 19 "lib/*.c" 20 ], 21 // Upstream explicitly chooses C99. 22 c_std: "gnu99", 23 cflags: [ 24 "-Wno-unused-parameter", 25 "-DHAVE_USELOCALE", 26 "-DHAVE_FREELOCALE", 27 "-DHAVE_NEWLOCALE", 28 ], 29 export_include_dirs: [ 30 "lib", 31 ], 32 visibility: [ 33 "//external/wmediumd", 34 ], 35} 36