1load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_cc_library", "skia_filegroup") 2 3package( 4 default_applicable_licenses = ["//:license"], 5) 6 7licenses(["notice"]) 8 9exports_files_legacy() 10 11# Used for exporting to //gn/gpu.gni:skia_native_gpu_sources. 12skia_filegroup( 13 name = "srcs", 14 srcs = [ 15 "GrGLMakeEGLInterface.cpp", 16 "GrGLMakeNativeInterface_egl.cpp", 17 ], 18 visibility = [ 19 "//src/gpu/ganesh/gl:__pkg__", 20 "//tools/gpu/gl/egl:__pkg__", 21 ], 22) 23 24skia_cc_library( 25 name = "egl_factory", 26 srcs = [ 27 "GrGLMakeEGLInterface.cpp", 28 ], 29 hdrs = [ 30 "//include/gpu/ganesh/gl/egl:public_hdrs", 31 ], 32 defines = ["SK_DISABLE_LEGACY_EGLINTERFACE_FACTORY"], 33 linkopts = select({ 34 "@platforms//os:android": [ 35 "-lEGL", 36 "-lGLESv2", 37 ], 38 "//conditions:default": [], 39 }), 40 visibility = ["//:__pkg__"], 41 deps = [ 42 "//:core", 43 "//:ganesh_gl", 44 "//bazel/external/egl", 45 "//bazel/external/glesv2", 46 ], 47) 48