OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//third_party/WebKit/Source/bindings/idl.gni") |
| 6 import("//third_party/WebKit/Source/core/core.gni") |
| 7 |
| 8 # Don't actually read idl.gypi since that just defines variables in terms of |
| 9 # others, which gypi_to_gn doesn't handle. |
| 10 |
| 11 # IDL file lists; see: http://www.chromium.org/developers/web-idl-interfaces |
| 12 # Interface IDL files: generate individual bindings (includes testing) |
| 13 core_interface_idl_files = |
| 14 core_idl_files + |
| 15 webcore_testing_idl_files + |
| 16 generated_webcore_testing_idl_files |
| 17 |
| 18 # Static IDL files |
| 19 core_static_interface_idl_files = |
| 20 core_idl_files + |
| 21 webcore_testing_idl_files |
| 22 core_static_dependency_idl_files = |
| 23 core_dependency_idl_files |
| 24 |
| 25 # Generated IDL files |
| 26 core_generated_interface_idl_files = |
| 27 generated_webcore_testing_idl_files # interfaces |
| 28 core_generated_dependency_idl_files = |
| 29 # FIXME: Generate separate core_global_constructors_idls |
| 30 # http://crbug.com/358074 |
| 31 generated_global_constructors_idl_files # partial interfaces |
| 32 |
| 33 # Static IDL files / Generated IDL files |
| 34 # |
| 35 # In GYP, paths need to be passed separately for static and generated files, as |
| 36 # static files are listed in a temporary file (b/c too long for command line), |
| 37 # but generated files must be passed at the command line, as their paths are |
| 38 # not fixed at GYP time, when the temporary file is generated, because their |
| 39 # paths depend on the build directory, which varies. |
| 40 # |
| 41 # FIXME: GN does not have this restriction and we can combine them. While GYP |
| 42 # is still supported, we match its behavior for easier maintenance but this can |
| 43 # be simplified. |
| 44 core_static_idl_files = |
| 45 core_static_interface_idl_files + |
| 46 core_static_dependency_idl_files |
| 47 core_generated_idl_files = |
| 48 core_generated_interface_idl_files + |
| 49 core_generated_dependency_idl_files |
| 50 |
| 51 # Dependency IDL files: don't generate individual bindings, but do process |
| 52 # in IDL dependency computation, and count as build dependencies |
| 53 # 'core_dependency_idl_files' is already used in Source/core, so avoid |
| 54 # collision |
| 55 core_all_dependency_idl_files = |
| 56 core_static_dependency_idl_files + |
| 57 core_generated_dependency_idl_files |
OLD | NEW |