| 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. Note that all file lists are |
| 6 # relative to the source root. | 6 # relative to the source root. |
| 7 _gypi = exec_script( | 7 _gypi = exec_script( |
| 8 "//build/gypi_to_gn.py", | 8 "//build/gypi_to_gn.py", |
| 9 [ rebase_path("modules.gypi"), | 9 [ rebase_path("modules.gypi"), |
| 10 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir"], | 10 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir"], |
| 11 "scope", | 11 "scope", |
| 12 [ "modules.gypi" ]) | 12 [ "modules.gypi" ]) |
| 13 | 13 |
| 14 _tmp_modules_idl_files = _gypi.modules_idl_files | 14 _tmp_modules_idl_files = _gypi.modules_idl_files |
| 15 # modules_idl_files has a magic variable in it that is an embedder hook, | 15 # 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). | 16 # remove that since it's not a file (need to do this before rebasing). |
| 17 _tmp_modules_idl_files -= [ | 17 _tmp_modules_idl_files -= [ |
| 18 "<@(extra_blink_module_idl_files)", | 18 "<@(extra_blink_module_idl_files)", |
| 19 ] | 19 ] |
| 20 modules_idl_files = rebase_path(_tmp_modules_idl_files, "//") | 20 modules_idl_files = get_path_info(_tmp_modules_idl_files, "abspath") |
| 21 | 21 |
| 22 # 'partial interface' or target (right side of) 'implements' | 22 # 'partial interface' or target (right side of) 'implements' |
| 23 modules_dependency_idl_files = | 23 modules_dependency_idl_files = |
| 24 rebase_path(_gypi.modules_dependency_idl_files, "//") | 24 get_path_info(_gypi.modules_dependency_idl_files, "abspath") |
| 25 | 25 |
| 26 # Relative to the modules directory. | 26 modules_event_idl_files = |
| 27 modules_event_idl_files = _gypi.modules_event_idl_files | 27 get_path_info(_gypi.modules_event_idl_files, "abspath") |
| 28 | 28 |
| 29 # interfaces that inherit from Event | 29 # interfaces that inherit from Event |
| 30 generated_modules_files = rebase_path(_gypi.generated_modules_files, "//") | 30 generated_modules_files = |
| 31 get_path_info(_gypi.generated_modules_files, "abspath") |
| 31 | 32 |
| 32 # Remove GYP variables from the list (need to do this before rebasing). | 33 # Remove GYP variables from the list (need to do this before rebasing). |
| 33 _tmp_modules_files = _gypi.modules_files | 34 _tmp_modules_files = _gypi.modules_files |
| 34 _tmp_modules_files -= [ | 35 _tmp_modules_files -= [ |
| 35 "<@(extra_blink_module_files)", | 36 "<@(extra_blink_module_files)", |
| 36 "<@(generated_modules_files)", | 37 "<@(generated_modules_files)", |
| 37 ] | 38 ] |
| 38 modules_files = rebase_path(_tmp_modules_files, "//") | 39 modules_files = get_path_info(_tmp_modules_files, "abspath") |
| 39 modules_files += generated_modules_files # Account for GYP var expansion. | 40 modules_files += generated_modules_files # Account for GYP var expansion. |
| 40 | 41 |
| 41 # 'partial interface' or target (right side of) 'implements' | 42 # 'partial interface' or target (right side of) 'implements' |
| 42 modules_testing_dependency_idl_files = | 43 modules_testing_dependency_idl_files = |
| 43 rebase_path(_gypi.modules_testing_dependency_idl_files, "//") | 44 get_path_info(_gypi.modules_testing_dependency_idl_files, "abspath") |
| 44 | 45 |
| 45 # Relative to the modules dir. | 46 modules_testing_files = get_path_info(_gypi.modules_testing_files, "abspath") |
| 46 modules_testing_files = _gypi.modules_testing_files | 47 modules_unittest_files = get_path_info(_gypi.modules_unittest_files, "abspath") |
| 47 modules_unittest_files = _gypi.modules_unittest_files | 48 |
| 49 blink_modules_output_dir = "$root_gen_dir/blink/modules" |
| OLD | NEW |