1package { 2 default_applicable_licenses: ["external_lz4_programs_license"], 3} 4 5license { 6 name: "external_lz4_programs_license", 7 visibility: [":__subpackages__"], 8 license_kinds: [ 9 "SPDX-license-identifier-GPL", 10 "SPDX-license-identifier-GPL-2.0", 11 "SPDX-license-identifier-LGPL", 12 ], 13 license_text: [ 14 "COPYING", 15 ], 16} 17 18cc_binary_host { 19 name: "lz4", 20 srcs: [ 21 "datagen.c", 22 "bench.c", 23 "lz4io.c", 24 "lz4cli.c", 25 ], 26 cflags: ["-Wall", "-Werror"], 27 static_libs: ["liblz4"], 28 stl: "libc++_static", 29} 30 31cc_binary_host { 32 name: "lz4c", 33 cflags: [ 34 "-DENABLE_LZ4C_LEGACY_OPTIONS", 35 "-Wall", 36 "-Werror", 37 ], 38 srcs: [ 39 "datagen.c", 40 "bench.c", 41 "lz4io.c", 42 "lz4cli.c", 43 ], 44 static_libs: ["liblz4"], 45 stl: "libc++_static", 46} 47