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

Unified Diff: BUILD.gn

Issue 2180383003: Turn on flags to enforce SK_API. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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 | gn/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index 794a375b05220152d85c6b11b6b7311091dcd9b9..7459fb0809245042d4d21bbe7163a51ab4b0da3a 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -400,24 +400,26 @@ test_lib("gm") {
]
}
-executable("dm") {
- sources = [
- "dm/DM.cpp",
- "dm/DMJsonWriter.cpp",
- "dm/DMSrcSink.cpp",
-
- # TODO: tests for real
- "tests/Test.cpp",
- ]
- include_dirs = [ "tests" ]
- deps = [
- ":flags",
- ":gm",
- ":gpu_tool_utils",
- ":skia",
- ":tool_utils",
- "//third_party/jsoncpp",
- "//third_party/libpng",
- ]
- testonly = true
+if (!is_component_build) { # DM uses many non-SK_API APIs...
+ executable("dm") {
+ sources = [
+ "dm/DM.cpp",
+ "dm/DMJsonWriter.cpp",
+ "dm/DMSrcSink.cpp",
+
+ # TODO: tests for real
+ "tests/Test.cpp",
+ ]
+ include_dirs = [ "tests" ]
+ deps = [
+ ":flags",
+ ":gm",
+ ":gpu_tool_utils",
+ ":skia",
+ ":tool_utils",
+ "//third_party/jsoncpp",
+ "//third_party/libpng",
+ ]
+ testonly = true
+ }
}
« no previous file with comments | « no previous file | gn/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698