1load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_filegroup", "split_srcs_and_hdrs") 2load("//bazel:flags.bzl", "bool_flag") 3 4licenses(["notice"]) 5 6exports_files_legacy() 7 8bool_flag( 9 name = "enable_discardable_memory", 10 default = False, 11) 12 13bool_flag( 14 name = "use_default_global_memory_pool", 15 default = False, 16) 17 18LAZY_FILES = [ 19 "SkDiscardableMemoryPool.cpp", 20 "SkDiscardableMemoryPool.h", 21] 22 23split_srcs_and_hdrs( 24 name = "lazy", 25 files = LAZY_FILES, 26) 27 28skia_filegroup( 29 name = "srcs", 30 srcs = [ 31 ":lazy_srcs", 32 ], 33 visibility = ["//src:__pkg__"], 34) 35 36skia_filegroup( 37 name = "private_hdrs", 38 srcs = [ 39 ":lazy_hdrs", 40 ], 41 visibility = ["//src:__pkg__"], 42) 43