aboutsummaryrefslogtreecommitdiffhomepage
path: root/public.bzl
diff options
context:
space:
mode:
authorGravatar iroth <iroth@google.com>2016-04-11 13:45:51 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-11 13:45:51 -0700
commit849b175c029bcb5d4abb7fdadc45e8ed36f29a78 (patch)
treea5980978964b6659aa6f7469283be0d1569dd429 /public.bzl
parentf4ace41dd9590944c9d4f9e3d1c576914db7af18 (diff)
Separate private headers for condition inclusion in BUILD file.
Diffstat (limited to 'public.bzl')
-rw-r--r--public.bzl21
1 files changed, 15 insertions, 6 deletions
diff --git a/public.bzl b/public.bzl
index 889585ca39..ad5d231d32 100644
--- a/public.bzl
+++ b/public.bzl
@@ -52,13 +52,25 @@ def skia_glob(srcs):
return []
################################################################################
+## PRIVATE_HDRS
+################################################################################
+
+PRIVATE_HDRS_LIST = [
+ "include/private/**/*",
+ "src/utils/SkWhitelistChecksums.cpp",
+]
+
+PRIVATE_HDRS = struct(
+ include = PRIVATE_HDRS_LIST,
+)
+
+################################################################################
## BASE_SRCS
################################################################################
# All platform-independent SRCS.
BASE_SRCS_ALL = struct(
include = [
- "include/private/*.h",
"src/**/*.h",
"src/**/*.cpp",
@@ -68,7 +80,7 @@ BASE_SRCS_ALL = struct(
"third_party/ktx/*.cpp",
"third_party/ktx/*.h",
],
- exclude = [
+ exclude = PRIVATE_HDRS_LIST + [
# Exclude platform-dependent files.
"src/android/*",
"src/codec/*",
@@ -308,11 +320,8 @@ AVX2_SRCS = struct(
BASE_HDRS = struct(
include = [
"include/**/*.h",
- "src/utils/SkWhitelistChecksums.cpp",
],
- exclude = [
- "include/private/**/*",
-
+ exclude = PRIVATE_HDRS_LIST + [
# Not used.
"include/animator/**/*",
"include/views/**/*",