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.
5 action("fieldtrial_testing_config_action") {
6 visibility = [ ":fieldtrial_testing_config" ]
7 script = "//tools/variations/fieldtrial_to_struct.py"
10 source = "//testing/variations/fieldtrial_testing_config_win.json"
13 source = "//testing/variations/fieldtrial_testing_config_mac.json"
16 source = "//testing/variations/fieldtrial_testing_config_linux.json"
19 source = "//testing/variations/fieldtrial_testing_config_chromeos.json"
22 source = "//testing/variations/fieldtrial_testing_config_android.json"
25 source = "//testing/variations/fieldtrial_testing_config_ios.json"
29 "//tools/json_to_struct/element_generator.py",
30 "//tools/json_to_struct/json_to_struct.py",
31 "//tools/json_to_struct/struct_generator.py",
34 out_name = "fieldtrial_testing_config"
36 "$target_gen_dir/$out_name.cc",
37 "$target_gen_dir/$out_name.h",
41 rebase_path(source, root_build_dir),
42 "--destbase=" + rebase_path(target_gen_dir, root_build_dir),
43 "--namespace=chrome_variations",
45 rebase_path("fieldtrial_testing_config_schema.json", root_build_dir),
50 source_set("fieldtrial_testing_config") {
51 sources = get_target_outputs(":fieldtrial_testing_config_action")
53 ":fieldtrial_testing_config_action",