1load("//bazel:cc_binary_with_flags.bzl", "cc_binary_with_flags") 2load("//bazel:skia_rules.bzl", "exports_files_legacy") 3 4package( 5 default_applicable_licenses = ["//:license"], 6) 7 8licenses(["notice"]) 9 10exports_files_legacy() 11 12cc_binary_with_flags( 13 name = "viewer", 14 testonly = True, 15 srcs = [ 16 "AnimTimer.h", 17 "BisectSlide.cpp", 18 "BisectSlide.h", 19 "GMSlide.cpp", 20 "GMSlide.h", 21 "ImGuiLayer.cpp", 22 "ImGuiLayer.h", 23 "ImageSlide.cpp", 24 "ImageSlide.h", 25 "MSKPSlide.cpp", 26 "MSKPSlide.h", 27 "SKPSlide.cpp", 28 "SKPSlide.h", 29 "SkSLDebuggerSlide.cpp", 30 "SkSLDebuggerSlide.h", 31 "SkSLSlide.cpp", 32 "SkSLSlide.h", 33 "Slide.h", 34 "SlideDir.cpp", 35 "SlideDir.h", 36 "StatsLayer.cpp", 37 "StatsLayer.h", 38 "SvgSlide.cpp", 39 "SvgSlide.h", 40 "TouchGesture.cpp", 41 "TouchGesture.h", 42 "Viewer.cpp", 43 "Viewer.h", 44 "//bench:gpu_tools", 45 "//gm:gm_subset", 46 "//tools/flags", 47 "//tools/flags:common_flags_legacy", 48 "//tools/fonts:test_font_manager_srcs", 49 "//tools/trace", 50 ], 51 set_flags = { 52 # Use the GL backend with the normal GL standard (as opposed to WebGL or GLES) 53 "gpu_backend": [ 54 "gl_ganesh", 55 ], 56 "with_gl_standard": [ 57 "gl_standard", 58 ], 59 "include_fontmgr": ["custom_directory_fontmgr"], 60 "enable_gpu_test_utils": ["True"], 61 "enable_svg_canvas": ["True"], 62 }, 63 deps = [ 64 "//:skia_internal", 65 "//gm", 66 "//modules/sksg:legacy_sksg", 67 "//tools:legacy_tool_utils", 68 "//tools:mskp_player", 69 "//tools:registry", 70 "//tools:runtime_blend_utils", 71 "//tools/gpu:utils", 72 "//tools/sk_app:legacy_sk_app", 73 "//tools/skui", 74 "@imgui", 75 ], 76) 77