Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / bindings / modules / idl.gypi
blobf196d9b12a52a351ad18af54e6c873c4a4f9d697
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.
5 # IDL file lists; see: http://www.chromium.org/developers/web-idl-interfaces
8   'includes': [
9     '../../modules/modules.gypi',
10     '../core/idl.gypi',
11     'generated.gypi',
12   ],
14   'variables': {
15     # IDL file lists; see: http://www.chromium.org/developers/web-idl-interfaces
17     'modules_definition_idl_files': [
18       '<@(modules_dictionary_idl_files)',
19       '<@(modules_idl_files)',
20     ],
22     # Interface IDL files: generate individual bindings (includes testing)
23     'modules_interface_idl_files': [
24       # No testing or generated interface IDL files in modules currently
25       '<@(modules_definition_idl_files)',
26     ],
28     # Write lists of main IDL files to a file, so that the command lines don't
29     # exceed OS length limits.
30     'modules_idl_files_list': '<|(modules_idl_files_list.tmp <@(modules_definition_idl_files))',
31     'modules_dictionary_idl_files_list': '<|(modules_dictionary_idl_files_list.tmp <@(modules_dictionary_idl_files))',
33     # Dependency IDL files: don't generate individual bindings, but do process
34     # in IDL dependency computation, and count as build dependencies
35     'all_dependency_idl_files': [
36       '<@(core_all_dependency_idl_files)',
37       '<@(modules_all_dependency_idl_files)',
38     ],
39     # 'modules_dependency_idl_files' is already used in Source/modules, so avoid
40     # collision
41     'modules_all_dependency_idl_files': [
42       '<@(modules_static_dependency_idl_files)',
43       '<@(modules_generated_dependency_idl_files)',
44     ],
46     # Static IDL files / Generated IDL files
47     # Paths need to be passed separately for static and generated files, as
48     # static files are listed in a temporary file (b/c too long for command
49     # line), but generated files must be passed at the command line, as their
50     # paths are not fixed at GYP time, when the temporary file is generated,
51     # because their paths depend on the build directory, which varies.
52     'modules_static_idl_files': [
53       '<@(modules_static_interface_idl_files)',
54       '<@(modules_static_dependency_idl_files)',
55     ],
56     'modules_static_idl_files_list':
57       '<|(modules_static_idl_files_list.tmp <@(modules_static_idl_files))',
59     'modules_generated_idl_files': [
60       '<@(modules_generated_dependency_idl_files)',
61     ],
63     # Static IDL files
64     'modules_static_interface_idl_files': [
65       '<@(modules_definition_idl_files)',
66     ],
67     'modules_static_dependency_idl_files': [
68       '<@(modules_dependency_idl_files)',
69       '<@(modules_testing_dependency_idl_files)',
70     ],
72     # Generated IDL files
73     'modules_generated_dependency_idl_files': [
74       '<@(modules_core_global_constructors_generated_idl_files)',  # partial interfaces
75       '<@(modules_global_constructors_generated_idl_files)',  # partial interfaces
76     ],
77   },