| 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 # DON'T INCLUDE modules_idl_files.gni FROM HERE. | |
| 6 # | |
| 7 # This file is shared with all modules' BUILD files which shouldn't need access | |
| 8 # to the huge and slow lists of sources. If sharing is necessary, make a | |
| 9 # separate .gni. | |
| 10 import("//third_party/WebKit/Source/config.gni") | 5 import("//third_party/WebKit/Source/config.gni") |
| 11 | 6 |
| 12 _gypi = exec_script( | 7 _gypi = exec_script( |
| 13 "//build/gypi_to_gn.py", | 8 "//build/gypi_to_gn.py", |
| 14 [ | 9 [ |
| 15 rebase_path("modules.gypi"), | 10 rebase_path("modules.gypi"), |
| 16 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", | 11 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", |
| 17 "--replace=<(blink_modules_output_dir)=$root_gen_dir/blink/modules", | 12 "--replace=<(blink_modules_output_dir)=$root_gen_dir/blink/modules", |
| 18 ], | 13 ], |
| 19 "scope", | 14 "scope", |
| 20 [ "modules.gypi" ]) | 15 [ "modules.gypi" ]) |
| 21 modules_files = get_path_info(_gypi.modules_files, "abspath") | 16 |
| 17 # interfaces that inherit from Event |
| 18 generated_modules_files = |
| 19 get_path_info(_gypi.generated_modules_files, "abspath") |
| 20 |
| 21 generated_modules_dictionary_files = |
| 22 get_path_info(_gypi.generated_modules_dictionary_files, "abspath") |
| 23 |
| 24 # Remove GYP variables from the list (need to do this before rebasing). |
| 25 _tmp_modules_files = _gypi.modules_files |
| 26 _tmp_modules_files -= [ |
| 27 "<@(extra_blink_module_files)", |
| 28 "<@(generated_modules_dictionary_files)", |
| 29 "<@(generated_modules_files)", |
| 30 ] |
| 31 modules_files = get_path_info(_tmp_modules_files, "abspath") |
| 32 |
| 33 # Account for GYP var expansion. |
| 34 modules_files += generated_modules_files + generated_modules_dictionary_files |
| 22 | 35 |
| 23 # Defines a part of blink modules. This is either a source set or a static | 36 # Defines a part of blink modules. This is either a source set or a static |
| 24 # library with defaults for commonly-used values. | 37 # library with defaults for commonly-used values. |
| 25 # | 38 # |
| 26 # deps | 39 # deps |
| 27 # Default deps are automatically appended to any specified on the caller. | 40 # Default deps are automatically appended to any specified on the caller. |
| 28 # | 41 # |
| 29 # visibility | 42 # visibility |
| 30 # Normal meaning if defined. If undefined, defaults to everything in core. | 43 # Normal meaning if defined. If undefined, defaults to everything in core. |
| 31 template("blink_modules_sources") { | 44 template("blink_modules_sources") { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 "//third_party/WebKit/Source:config", | 77 "//third_party/WebKit/Source:config", |
| 65 "//third_party/WebKit/Source/modules:modules_implementation", | 78 "//third_party/WebKit/Source/modules:modules_implementation", |
| 66 "//third_party/WebKit/Source:non_test_config", | 79 "//third_party/WebKit/Source:non_test_config", |
| 67 "//third_party/WebKit/Source:inside_blink", | 80 "//third_party/WebKit/Source:inside_blink", |
| 68 ] | 81 ] |
| 69 if (remove_webcore_debug_symbols) { | 82 if (remove_webcore_debug_symbols) { |
| 70 configs -= [ "//build/config/compiler:default_symbols" ] | 83 configs -= [ "//build/config/compiler:default_symbols" ] |
| 71 configs += [ "//build/config/compiler:no_symbols" ] | 84 configs += [ "//build/config/compiler:no_symbols" ] |
| 72 } | 85 } |
| 73 } | 86 } |
| OLD | NEW |