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

Side by Side 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: 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 unified diff | Download patch
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/common/variations/fieldtrial_testing_config.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//build/config/ui.gni")
brettw 2015/07/10 23:05:33 I don't think this is used for anything, you shoul
danduong 2015/07/10 23:11:24 Done.
6
7 action("fieldtrial_testing_config_action") {
8 visibility = [ ":fieldtrial_testing_config" ]
9 script = "//tools/variations/fieldtrial_to_struct.py"
10
11 if (is_win) {
12 source = "//testing/variations/fieldtrial_testing_config_win.json"
13 }
14 if (is_mac) {
15 source = "//testing/variations/fieldtrial_testing_config_mac.json"
16 }
17 if (is_linux) {
18 source = "//testing/variations/fieldtrial_testing_config_linux.json"
19 }
20 if (is_chromeos) {
21 source = "//testing/variations/fieldtrial_testing_config_chromeos.json"
22 }
23 if (is_android) {
24 source = "//testing/variations/fieldtrial_testing_config_android.json"
25 }
26 if (is_ios) {
27 source = "//testing/variations/fieldtrial_testing_config_ios.json"
28 }
29
30 inputs = [
31 "//tools/json_to_struct/element_generator.py",
32 "//tools/json_to_struct/json_to_struct.py",
33 "//tools/json_to_struct/struct_generator.py",
34 source,
35 ]
36 out_name = "fieldtrial_testing_config"
37 outputs = [
38 "$target_gen_dir/$out_name.cc",
39 "$target_gen_dir/$out_name.h",
40 ]
41
42 args = [
43 rebase_path(source, root_build_dir),
44 "--destbase=" + rebase_path(target_gen_dir, root_build_dir),
45 "--namespace=chrome_variations",
46 "--schema=" +
47 rebase_path("fieldtrial_testing_config_schema.json", root_build_dir),
48 "--output=$out_name",
49 ]
50 }
51
52 source_set("fieldtrial_testing_config") {
53 sources = get_target_outputs(":fieldtrial_testing_config_action")
54 deps = [
55 ":fieldtrial_testing_config_action",
56 ]
57 }
OLDNEW
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/common/variations/fieldtrial_testing_config.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698