| 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. | 5 # DON'T INCLUDE modules_idl_files.gni FROM HERE. |
| 6 # | 6 # |
| 7 # This file is shared with all modules' BUILD files which shouldn't need access | 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 | 8 # to the huge and slow lists of sources. If sharing is necessary, make a |
| 9 # separate .gni. | 9 # separate .gni. |
| 10 import("//third_party/WebKit/Source/config.gni") | 10 import("//third_party/WebKit/Source/config.gni") |
| 11 | 11 |
| 12 _gypi = exec_script( | |
| 13 "//build/gypi_to_gn.py", | |
| 14 [ | |
| 15 rebase_path("modules.gypi"), | |
| 16 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", | |
| 17 "--replace=<(blink_modules_output_dir)=$root_gen_dir/blink/modules", | |
| 18 ], | |
| 19 "scope", | |
| 20 [ "modules.gypi" ]) | |
| 21 modules_files = get_path_info(_gypi.modules_files, "abspath") | |
| 22 | |
| 23 # Defines a part of blink modules. This is either a source set or a static | 12 # Defines a part of blink modules. This is either a source set or a static |
| 24 # library with defaults for commonly-used values. | 13 # library with defaults for commonly-used values. |
| 25 # | 14 # |
| 26 # deps | 15 # deps |
| 27 # Default deps are automatically appended to any specified on the caller. | 16 # Default deps are automatically appended to any specified on the caller. |
| 28 # | 17 # |
| 29 # visibility | 18 # visibility |
| 30 # Normal meaning if defined. If undefined, defaults to everything in core. | 19 # Normal meaning if defined. If undefined, defaults to everything in core. |
| 31 template("blink_modules_sources") { | 20 template("blink_modules_sources") { |
| 32 if (is_component_build) { | 21 if (is_component_build) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 "//third_party/WebKit/Source:config", | 53 "//third_party/WebKit/Source:config", |
| 65 "//third_party/WebKit/Source/modules:modules_implementation", | 54 "//third_party/WebKit/Source/modules:modules_implementation", |
| 66 "//third_party/WebKit/Source:non_test_config", | 55 "//third_party/WebKit/Source:non_test_config", |
| 67 "//third_party/WebKit/Source:inside_blink", | 56 "//third_party/WebKit/Source:inside_blink", |
| 68 ] | 57 ] |
| 69 if (remove_webcore_debug_symbols) { | 58 if (remove_webcore_debug_symbols) { |
| 70 configs -= [ "//build/config/compiler:default_symbols" ] | 59 configs -= [ "//build/config/compiler:default_symbols" ] |
| 71 configs += [ "//build/config/compiler:no_symbols" ] | 60 configs += [ "//build/config/compiler:no_symbols" ] |
| 72 } | 61 } |
| 73 } | 62 } |
| OLD | NEW |