Exclude gl files for Fuchsia platform.
Fuchsia platform supports only vulkan. So exclude all gl files and
add vulkan files for building Skia on Fuchsia.
(relanding with build fix)
Change-Id: Id2ba6cb2d25f6a8c52515ef11b88d830a610903d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/301920
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
diff --git a/public.bzl b/public.bzl
index 84a8f8b1..1568977 100644
--- a/public.bzl
+++ b/public.bzl
@@ -235,6 +235,10 @@
# Conflicting dependencies among Lua versions. See cl/107087297.
"src/utils/SkLua*",
+ # Exclude all GL specific files
+ "src/gpu/gl/*",
+ "src/gpu/gl/builders/*",
+
# Currently exclude all vulkan specific files
"src/gpu/vk/*",
@@ -266,7 +270,8 @@
GL_SRCS_UNIX = struct(
include = [
- "src/gpu/gl/GrGLMakeNativeInterface_none.cpp",
+ "src/gpu/gl/*",
+ "src/gpu/gl/builders/*",
],
exclude = [],
)
@@ -296,9 +301,13 @@
GL_SRCS_ANDROID = struct(
include = [
+ "src/gpu/gl/*",
+ "src/gpu/gl/builders/*",
"src/gpu/gl/android/*.cpp",
],
- exclude = [],
+ exclude = [
+ "src/gpu/gl/GrGLMakeNativeInterface_none.cpp",
+ ],
)
PORTS_SRCS_ANDROID = struct(
include = [
@@ -327,9 +336,13 @@
GL_SRCS_IOS = struct(
include = [
+ "src/gpu/gl/*",
+ "src/gpu/gl/builders/*",
"src/gpu/gl/iOS/GrGLMakeNativeInterface_iOS.cpp",
],
- exclude = [],
+ exclude = [
+ "src/gpu/gl/GrGLMakeNativeInterface_none.cpp",
+ ],
)
PORTS_SRCS_IOS = struct(
include = [
@@ -362,10 +375,14 @@
GL_SRCS_WASM = struct(
include = [
+ "src/gpu/gl/*",
+ "src/gpu/gl/builders/*",
"src/gpu/gl/GrGLMakeNativeInterface_egl.cpp",
"src/gpu/gl/egl/GrGLMakeNativeInterface_egl.cpp",
],
- exclude = [],
+ exclude = [
+ "src/gpu/gl/GrGLMakeNativeInterface_none.cpp",
+ ],
)
PORTS_SRCS_WASM = struct(
include = [
@@ -403,7 +420,7 @@
GL_SRCS_FUCHSIA = struct(
include = [
- "src/gpu/gl/GrGLMakeNativeInterface_none.cpp",
+ "src/gpu/vk/*",
],
exclude = [],
)