OLD | NEW |
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 # This file defines the extension gypi values. This file is read once and | 5 # This file defines the extension gypi values. This file is read once and |
6 # cached, which is a performance optimization that allows us to share the | 6 # cached, which is a performance optimization that allows us to share the |
7 # results of parsing the .gypi file between all extensions BUILD.gn files. | 7 # results of parsing the .gypi file between all extensions BUILD.gn files. |
8 # It also saves us from duplicating this exec_script call. | 8 # It also saves us from duplicating this exec_script call. |
9 extensions_gypi_values = | 9 extensions_gypi_values = |
10 exec_script("//build/gypi_to_gn.py", | 10 exec_script("//build/gypi_to_gn.py", |
11 [ | 11 [ |
12 rebase_path("extensions.gypi"), | 12 rebase_path("extensions.gypi"), |
13 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", | 13 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", |
14 ], | 14 ], |
15 "scope", | 15 "scope", |
16 [ "extensions.gypi" ]) | 16 [ "extensions.gypi" ]) |
17 | |
18 extensions_tests_gypi_values = | |
19 exec_script("//build/gypi_to_gn.py", | |
20 [ | |
21 rebase_path("extensions_tests.gypi"), | |
22 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", | |
23 ], | |
24 "scope", | |
25 [ "extensions_tests.gypi" ]) | |
OLD | NEW |