Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Unified Diff: public.bzl

Issue 1878753002: Separate private headers for condition inclusion in BUILD file. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public.bzl
diff --git a/public.bzl b/public.bzl
index 889585ca398635cc138157d296e28026eb4cac95..ad5d231d326bfc3830713d4a964897e9e0a936d0 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/**/*",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698