1cc_defaults { 2 name: "fmtlib-defaults", 3 srcs: ["src/format.cc"], 4 cflags: [ 5 "-fno-exceptions", 6 "-Wall", 7 "-Werror", 8 // If built without exceptions, libfmt uses assert. 9 "-UNDEBUG", 10 ], 11 sanitize: { 12 misc_undefined: ["integer"], 13 }, 14 local_include_dirs: ["include"], 15 export_include_dirs: ["include"], 16} 17 18// This is built into libbase. If you want to use this library, link to libbase instead. 19cc_library_static { 20 name: "fmtlib", 21 defaults: ["fmtlib-defaults"], 22 vendor_available: true, 23 ramdisk_available: true, 24 recovery_available: true, 25 host_supported: true, 26 native_bridge_supported: true, 27 target: { 28 linux_bionic: { 29 enabled: true, 30 }, 31 windows: { 32 enabled: true, 33 }, 34 }, 35 apex_available: [ 36 "//apex_available:anyapex", 37 "//apex_available:platform", 38 ], 39 min_sdk_version: "29", 40} 41 42cc_library_static { 43 name: "fmtlib_ndk", 44 defaults: ["fmtlib-defaults"], 45 sdk_version: "current", 46 stl: "c++_static", 47} 48