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 "bench.c", 22 "lz4io.c", 23 "lz4cli.c", 24 "timefn.c", 25 "threadpool.c", 26 "lorem.c", 27 ], 28 cflags: [ 29 "-Wall", 30 "-Werror", 31 ], 32 static_libs: ["liblz4"], 33 stl: "libc++_static", 34} 35 36cc_binary_host { 37 name: "lz4c", 38 cflags: [ 39 "-DENABLE_LZ4C_LEGACY_OPTIONS", 40 "-Wall", 41 "-Werror", 42 ], 43 srcs: [ 44 "bench.c", 45 "lz4io.c", 46 "lz4cli.c", 47 "timefn.c", 48 "threadpool.c", 49 "lorem.c", 50 ], 51 static_libs: ["liblz4"], 52 stl: "libc++_static", 53} 54