| 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 is gn GN version of modules.gypi. Note that all file lists are | 5 # This file is gn GN version of modules.gypi. |
| 6 # relative to the source root. | 6 |
| 7 blink_modules_output_dir = "$root_gen_dir/blink/modules" |
| 8 |
| 7 _gypi = exec_script( | 9 _gypi = exec_script( |
| 8 "//build/gypi_to_gn.py", | 10 "//build/gypi_to_gn.py", |
| 9 [ rebase_path("modules.gypi"), | 11 [ rebase_path("modules.gypi"), |
| 10 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir"], | 12 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", |
| 13 "--replace=<(blink_modules_output_dir)=$blink_modules_output_dir" ], |
| 11 "scope", | 14 "scope", |
| 12 [ "modules.gypi" ]) | 15 [ "modules.gypi" ]) |
| 13 | 16 |
| 14 _tmp_modules_idl_files = _gypi.modules_idl_files | 17 _tmp_modules_idl_files = _gypi.modules_idl_files |
| 15 # modules_idl_files has a magic variable in it that is an embedder hook, | 18 # modules_idl_files has a magic variable in it that is an embedder hook, |
| 16 # remove that since it's not a file (need to do this before rebasing). | 19 # remove that since it's not a file (need to do this before rebasing). |
| 17 _tmp_modules_idl_files -= [ | 20 _tmp_modules_idl_files -= [ |
| 18 "<@(extra_blink_module_idl_files)", | 21 "<@(extra_blink_module_idl_files)", |
| 19 ] | 22 ] |
| 20 modules_idl_files = get_path_info(_tmp_modules_idl_files, "abspath") | 23 modules_idl_files = get_path_info(_tmp_modules_idl_files, "abspath") |
| (...skipping 17 matching lines...) Expand all Loading... |
| 38 ] | 41 ] |
| 39 modules_files = get_path_info(_tmp_modules_files, "abspath") | 42 modules_files = get_path_info(_tmp_modules_files, "abspath") |
| 40 modules_files += generated_modules_files # Account for GYP var expansion. | 43 modules_files += generated_modules_files # Account for GYP var expansion. |
| 41 | 44 |
| 42 # 'partial interface' or target (right side of) 'implements' | 45 # 'partial interface' or target (right side of) 'implements' |
| 43 modules_testing_dependency_idl_files = | 46 modules_testing_dependency_idl_files = |
| 44 get_path_info(_gypi.modules_testing_dependency_idl_files, "abspath") | 47 get_path_info(_gypi.modules_testing_dependency_idl_files, "abspath") |
| 45 | 48 |
| 46 modules_testing_files = get_path_info(_gypi.modules_testing_files, "abspath") | 49 modules_testing_files = get_path_info(_gypi.modules_testing_files, "abspath") |
| 47 modules_unittest_files = get_path_info(_gypi.modules_unittest_files, "abspath") | 50 modules_unittest_files = get_path_info(_gypi.modules_unittest_files, "abspath") |
| 48 | |
| 49 blink_modules_output_dir = "$root_gen_dir/blink/modules" | |
| OLD | NEW |