1load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_cc_deps", "skia_filegroup", "split_srcs_and_hdrs") 2 3licenses(["notice"]) 4 5exports_files_legacy() 6 7DAWN_FILES = [ 8 "GrDawnAsyncWait.cpp", 9 "GrDawnAsyncWait.h", 10 "GrDawnAttachment.cpp", 11 "GrDawnAttachment.h", 12 "GrDawnBuffer.cpp", 13 "GrDawnBuffer.h", 14 "GrDawnCaps.cpp", 15 "GrDawnCaps.h", 16 "GrDawnGpu.cpp", 17 "GrDawnGpu.h", 18 "GrDawnOpsRenderPass.cpp", 19 "GrDawnOpsRenderPass.h", 20 "GrDawnProgramBuilder.cpp", 21 "GrDawnProgramBuilder.h", 22 "GrDawnProgramDataManager.cpp", 23 "GrDawnProgramDataManager.h", 24 "GrDawnRenderTarget.cpp", 25 "GrDawnRenderTarget.h", 26 "GrDawnRingBuffer.cpp", 27 "GrDawnRingBuffer.h", 28 "GrDawnTexture.cpp", 29 "GrDawnTexture.h", 30 "GrDawnTextureRenderTarget.cpp", 31 "GrDawnTextureRenderTarget.h", 32 "GrDawnTypesPriv.cpp", 33 "GrDawnUtil.cpp", 34 "GrDawnUtil.h", 35] 36 37split_srcs_and_hdrs( 38 name = "dawn", 39 files = DAWN_FILES, 40) 41 42skia_filegroup( 43 name = "srcs", 44 srcs = [":dawn_srcs"], 45 visibility = ["//src/gpu/ganesh:__pkg__"], 46) 47 48skia_filegroup( 49 name = "private_hdrs", 50 srcs = [":dawn_hdrs"], 51 visibility = ["//src/gpu/ganesh:__pkg__"], 52) 53 54skia_cc_deps( 55 name = "deps", 56 visibility = ["//src/gpu/ganesh:__pkg__"], 57 deps = select({ 58 # Dawn headers and symbols are provided by Emscripten in a WASM build. We depend on Dawn 59 # only for native. 60 "//bazel/common_config_settings:cpu_wasm": [], 61 "//conditions:default": ["@dawn"], 62 }), 63) 64