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

Unified Diff: chrome/common/variations/BUILD.gn

Issue 1209743002: Generate a static struct from fieldtrial_testing_config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@codegen_nested_structs
Patch Set: add another unittest Created 5 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
Index: chrome/common/variations/BUILD.gn
diff --git a/chrome/common/variations/BUILD.gn b/chrome/common/variations/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..fe666c960c9db5e209259da5d139a2ef82be8f7f
--- /dev/null
+++ b/chrome/common/variations/BUILD.gn
@@ -0,0 +1,34 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/ui.gni")
+import("//tools/variations/fieldtrial_to_struct.gni")
+
+fieldtrial_to_struct("fieldtrial_testing_config") {
+ visibility = [ "*" ]
+
+ if (is_win) {
+ source = "//testing/variations/fieldtrial_testing_config_win.json"
+ }
+ if (is_mac) {
+ source = "//testing/variations/fieldtrial_testing_config_mac.json"
+ }
+ if (is_linux) {
+ source = "//testing/variations/fieldtrial_testing_config_linux.json"
+ }
+ if (is_chromeos) {
+ source = "//testing/variations/fieldtrial_testing_config_chromeos.json"
+ }
+ if (is_android) {
+ source = "//testing/variations/fieldtrial_testing_config_android.json"
+ }
+ if (is_ios) {
+ source = "//testing/variations/fieldtrial_testing_config_ios.json"
+ }
+
+ schema_file = "fieldtrial_testing_config_schema.json"
+ namespace = "chrome_variations"
+ output = "fieldtrial_testing_config"
+ out_dir = "variations"
+}

Powered by Google App Engine
This is Rietveld 408576698