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

Unified Diff: gpu/config/BUILD.gn

Issue 2812003006: Move gpu jason file data generation to build time. (Closed)
Patch Set: remove git-format from build time generated files Created 3 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 | gpu/config/gpu_driver_bug_list_arrays_and_structs_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/BUILD.gn
diff --git a/gpu/config/BUILD.gn b/gpu/config/BUILD.gn
index fb5cfb48d02fcd1419e744020e7d6be0f395f854..f8d7af043996fe3745b0ae2e29969e3a807364a6 100644
--- a/gpu/config/BUILD.gn
+++ b/gpu/config/BUILD.gn
@@ -28,6 +28,36 @@ source_set("crash_keys") {
]
}
+process_json_outputs = [
+ "$target_gen_dir/gpu_driver_bug_list_arrays_and_structs_autogen.h",
+ "$target_gen_dir/gpu_driver_bug_list_autogen.cc",
+ "$target_gen_dir/gpu_driver_bug_list_autogen.h",
+ "$target_gen_dir/gpu_driver_bug_list_exceptions_autogen.h",
+ "$target_gen_dir/software_rendering_list_arrays_and_structs_autogen.h",
+ "$target_gen_dir/software_rendering_list_autogen.cc",
+ "$target_gen_dir/software_rendering_list_autogen.h",
+ "$target_gen_dir/software_rendering_list_exceptions_autogen.h",
+]
+
+action("process_json") {
+ script = "process_json.py"
+
+ inputs = [
+ "gpu_driver_bug_list.json",
+ "gpu_driver_bug_workaround_type.h",
+ "gpu_feature_type.h",
+ "software_rendering_list.json",
+ ]
+
+ outputs = process_json_outputs
+
+ args = [
+ "--output-dir",
+ rebase_path("$target_gen_dir", root_build_dir),
+ "--skip-testing-data",
+ ]
+}
+
source_set("config_sources") {
# External code should depend on this via //gpu/config above rather than
# depending on this directly or the component build will break.
@@ -42,10 +72,6 @@ source_set("config_sources") {
"gpu_control_list.h",
"gpu_driver_bug_list.cc",
"gpu_driver_bug_list.h",
- "gpu_driver_bug_list_arrays_and_structs_autogen.h",
- "gpu_driver_bug_list_autogen.cc",
- "gpu_driver_bug_list_autogen.h",
- "gpu_driver_bug_list_exceptions_autogen.h",
"gpu_driver_bug_workaround_type.h",
"gpu_driver_bug_workarounds.cc",
"gpu_driver_bug_workarounds.h",
@@ -71,12 +97,10 @@ source_set("config_sources") {
"gpu_test_expectations_parser.h",
"gpu_util.cc",
"gpu_util.h",
- "software_rendering_list_arrays_and_structs_autogen.h",
- "software_rendering_list_autogen.cc",
- "software_rendering_list_autogen.h",
- "software_rendering_list_exceptions_autogen.h",
]
+ sources += process_json_outputs
+
configs += [
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
"//build/config/compiler:no_size_t_to_int_warning",
@@ -85,6 +109,7 @@ source_set("config_sources") {
deps = [
":crash_keys",
+ ":process_json",
"//base",
"//third_party/re2",
"//ui/gl",
« no previous file with comments | « no previous file | gpu/config/gpu_driver_bug_list_arrays_and_structs_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698