OLD | NEW |
| (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 action("fieldtrial_testing_config_action") { | |
6 visibility = [ ":fieldtrial_testing_config" ] | |
7 script = "//tools/variations/fieldtrial_to_struct.py" | |
8 | |
9 source = "//testing/variations/fieldtrial_testing_config.json" | |
10 inputs = [ | |
11 "//tools/json_to_struct/element_generator.py", | |
12 "//tools/json_to_struct/json_to_struct.py", | |
13 "//tools/json_to_struct/struct_generator.py", | |
14 source, | |
15 ] | |
16 out_name = "fieldtrial_testing_config" | |
17 outputs = [ | |
18 "$target_gen_dir/$out_name.cc", | |
19 "$target_gen_dir/$out_name.h", | |
20 ] | |
21 | |
22 args = [ | |
23 rebase_path(source, root_build_dir), | |
24 "--destbase=" + rebase_path(target_gen_dir, root_build_dir), | |
25 "--namespace=chrome_variations", | |
26 "--schema=" + | |
27 rebase_path("fieldtrial_testing_config_schema.json", root_build_dir), | |
28 "--platform=" + current_os, | |
29 "--output=$out_name", | |
30 ] | |
31 } | |
32 | |
33 source_set("fieldtrial_testing_config") { | |
34 sources = get_target_outputs(":fieldtrial_testing_config_action") | |
35 deps = [ | |
36 ":fieldtrial_testing_config_action", | |
37 ] | |
38 } | |
OLD | NEW |