1*f4ee7fbaSAndroid Build Coastguard Workerpackage(default_visibility = ["//visibility:public"]) 2*f4ee7fbaSAndroid Build Coastguard Worker 3*f4ee7fbaSAndroid Build Coastguard Workerlicenses(["notice"]) # MIT 4*f4ee7fbaSAndroid Build Coastguard Worker 5*f4ee7fbaSAndroid Build Coastguard Workerload("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 6*f4ee7fbaSAndroid Build Coastguard Worker 7*f4ee7fbaSAndroid Build Coastguard Workergo_library( 8*f4ee7fbaSAndroid Build Coastguard Worker name = "cbrotli", 9*f4ee7fbaSAndroid Build Coastguard Worker srcs = [ 10*f4ee7fbaSAndroid Build Coastguard Worker "reader.go", 11*f4ee7fbaSAndroid Build Coastguard Worker "writer.go", 12*f4ee7fbaSAndroid Build Coastguard Worker ], 13*f4ee7fbaSAndroid Build Coastguard Worker cdeps = [ 14*f4ee7fbaSAndroid Build Coastguard Worker "@org_brotli//:brotlidec", 15*f4ee7fbaSAndroid Build Coastguard Worker "@org_brotli//:brotlienc", 16*f4ee7fbaSAndroid Build Coastguard Worker ], 17*f4ee7fbaSAndroid Build Coastguard Worker cgo = True, 18*f4ee7fbaSAndroid Build Coastguard Worker importpath = "github.com/google/brotli/go/cbrotli", 19*f4ee7fbaSAndroid Build Coastguard Worker) 20*f4ee7fbaSAndroid Build Coastguard Worker 21*f4ee7fbaSAndroid Build Coastguard Workergo_test( 22*f4ee7fbaSAndroid Build Coastguard Worker name = "cbrotli_test", 23*f4ee7fbaSAndroid Build Coastguard Worker size = "small", 24*f4ee7fbaSAndroid Build Coastguard Worker srcs = ["cbrotli_test.go"], 25*f4ee7fbaSAndroid Build Coastguard Worker embed = [":cbrotli"], 26*f4ee7fbaSAndroid Build Coastguard Worker) 27