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

Side by Side Diff: components/domain_reliability/BUILD.gn

Issue 774353003: gn format // (the rest) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase net Created 6 years 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Paths to the JSON files are kind of gross. They're stored in the gypi 5 # Paths to the JSON files are kind of gross. They're stored in the gypi
6 # relative to //components, since that's the working directory gyp seems 6 # relative to //components, since that's the working directory gyp seems
7 # to use for all of the components. When we depend on them here, we need 7 # to use for all of the components. When we depend on them here, we need
8 # to remove the leading domain_reliability, since *our* working directory 8 # to remove the leading domain_reliability, since *our* working directory
9 # is one level deeper. When we call bake_in_configs.py, we need to give 9 # is one level deeper. When we call bake_in_configs.py, we need to give
10 # it a properly-rebased path to //components so it can properly join the 10 # it a properly-rebased path to //components so it can properly join the
11 # paths relative to that and find the JSON files. 11 # paths relative to that and find the JSON files.
12 12
13 baked_in_configs_gypi = exec_script("//build/gypi_to_gn.py", 13 baked_in_configs_gypi = exec_script("//build/gypi_to_gn.py",
14 [ rebase_path("baked_in_configs.gypi") ], 14 [ rebase_path("baked_in_configs.gypi") ],
15 "scope", 15 "scope",
16 [ "baked_in_configs.gypi" ]) 16 [ "baked_in_configs.gypi" ])
17 baked_in_configs = 17 baked_in_configs =
18 rebase_path(baked_in_configs_gypi.baked_in_configs, "domain_reliability") 18 rebase_path(baked_in_configs_gypi.baked_in_configs, "domain_reliability")
19 19
20 action("bake_in_configs") { 20 action("bake_in_configs") {
21 visibility = [ ":*" ] 21 visibility = [ ":*" ]
22 script = "bake_in_configs.py" 22 script = "bake_in_configs.py"
23 23
24 inputs = baked_in_configs 24 inputs = baked_in_configs
25 outputs = [ "$target_gen_dir/baked_in_configs.cc" ] 25 outputs = [
26 "$target_gen_dir/baked_in_configs.cc",
27 ]
26 28
27 # The actual list of JSON files will overflow the command line length limit 29 # The actual list of JSON files will overflow the command line length limit
28 # on Windows, so pass the name of the .gypi file and bake_in_configs.py will 30 # on Windows, so pass the name of the .gypi file and bake_in_configs.py will
29 # read the filenames out of it manually. 31 # read the filenames out of it manually.
30 args = [ rebase_path("//components", root_build_dir) ] + 32 args = [ rebase_path("//components", root_build_dir) ] +
31 [ rebase_path("baked_in_configs.gypi", root_build_dir) ] + 33 [ rebase_path("baked_in_configs.gypi", root_build_dir) ] +
32 rebase_path(outputs, root_build_dir) 34 rebase_path(outputs, root_build_dir)
33 } 35 }
34 36
35 component("domain_reliability") { 37 component("domain_reliability") {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 ] 87 ]
86 88
87 deps = [ 89 deps = [
88 ":domain_reliability", 90 ":domain_reliability",
89 "//base", 91 "//base",
90 "//base/test:test_support", 92 "//base/test:test_support",
91 "//net:test_support", 93 "//net:test_support",
92 "//testing/gtest", 94 "//testing/gtest",
93 ] 95 ]
94 } 96 }
OLDNEW
« no previous file with comments | « components/data_reduction_proxy/core/common/version.gni ('k') | content/browser/tracing/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698