Skip to content

Commit

Permalink
Exclude gl files for Fuchsia platform.
Browse files Browse the repository at this point in the history
Fuchsia platform supports only vulkan. So exclude all gl files and
add vulkan files for building Skia on Fuchsia.

Change-Id: I2593a14926747b1154a1134bfdd43772627110a4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/301739
Reviewed-by: Mike Klein <mtklein@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
  • Loading branch information
pguruji authored and Skia Commit-Bot committed Jul 10, 2020
1 parent aaf738c commit c1f3f8c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion public.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ BASE_SRCS_ALL = struct(
# 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/*",

Expand Down Expand Up @@ -266,6 +270,8 @@ def codec_srcs(limited):

GL_SRCS_UNIX = struct(
include = [
"src/gpu/gl/*",
"src/gpu/gl/builders/*",
"src/gpu/gl/GrGLMakeNativeInterface_none.cpp",
],
exclude = [],
Expand Down Expand Up @@ -296,6 +302,8 @@ PORTS_SRCS_UNIX = struct(

GL_SRCS_ANDROID = struct(
include = [
"src/gpu/gl/*",
"src/gpu/gl/builders/*",
"src/gpu/gl/android/*.cpp",
],
exclude = [],
Expand Down Expand Up @@ -327,6 +335,8 @@ PORTS_SRCS_ANDROID = struct(

GL_SRCS_IOS = struct(
include = [
"src/gpu/gl/*",
"src/gpu/gl/builders/*",
"src/gpu/gl/iOS/GrGLMakeNativeInterface_iOS.cpp",
],
exclude = [],
Expand Down Expand Up @@ -362,6 +372,8 @@ PORTS_SRCS_IOS = struct(

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",
],
Expand Down Expand Up @@ -403,7 +415,7 @@ PORTS_SRCS_WASM = struct(

GL_SRCS_FUCHSIA = struct(
include = [
"src/gpu/gl/GrGLMakeNativeInterface_none.cpp",
"src/gpu/vk/*",
],
exclude = [],
)
Expand Down

0 comments on commit c1f3f8c

Please sign in to comment.