File: generated.gyp

package info (click to toggle)
chromium-browser 41.0.2272.118-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 2,189,132 kB
  • sloc: cpp: 9,691,462; ansic: 3,341,451; python: 712,689; asm: 518,779; xml: 208,926; java: 169,820; sh: 119,353; perl: 68,907; makefile: 28,311; yacc: 13,305; objc: 11,385; tcl: 3,186; cs: 2,225; sql: 2,217; lex: 2,215; lisp: 1,349; pascal: 1,256; awk: 407; ruby: 155; sed: 53; php: 14; exp: 11
file content (196 lines) | stat: -rw-r--r-- 7,751 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Generate IDL bindings for core, plus aggregate bindings files.
#
# Design doc: http://www.chromium.org/developers/design-documents/idl-build

{
  'includes': [
    # ../../.. == Source
    '../../../bindings/bindings.gypi',
    '../../../bindings/core/core.gypi',
    '../../../bindings/core/generated.gypi',
    '../../../bindings/core/idl.gypi',
    # FIXME: need info about modules IDL files because some core IDL files
    # depend on modules IDL files  http://crbug.com/358074
    '../../../bindings/modules/idl.gypi',
    '../../../bindings/modules/modules.gypi',
    '../../../bindings/scripts/scripts.gypi',
    '../../../core/core.gypi',
    'generated.gypi',
  ],

  'targets': [
################################################################################
  {
    # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated_individual
    'target_name': 'bindings_core_v8_generated_individual',
    'type': 'none',
    # The 'binding' rule generates .h files, so mark as hard_dependency, per:
    # https://code.google.com/p/gyp/wiki/InputFormatReference#Linking_Dependencies
    'hard_dependency': 1,
    'dependencies': [
      '../../../core/core_generated.gyp:generated_testing_idls',
      '../generated.gyp:core_global_constructors_idls',
      # FIXME: should not depend on modules, but partial interface definitions
      # in modules change bindings for core http://crbug.com/358074
      '../../modules/generated.gyp:modules_global_constructors_idls',
      '<(bindings_scripts_dir)/scripts.gyp:cached_jinja_templates',
      '<(bindings_scripts_dir)/scripts.gyp:cached_lex_yacc_tables',
      # FIXME: should be interfaces_info_core (w/o modules)
      # http://crbug.com/358074
      '../../modules/generated.gyp:interfaces_info',
    ],
    'sources': [
      '<@(core_interface_idl_files)',
    ],
    'rules': [{
      'rule_name': 'binding',
      'extension': 'idl',
      'msvs_external_rule': 1,
      'inputs': [
        '<@(idl_lexer_parser_files)',  # to be explicit (covered by parsetab)
        '<@(idl_cache_files)',
        '<@(idl_compiler_files)',
        '<(bindings_dir)/IDLExtendedAttributes.txt',
        # If the dependency structure or public interface info (e.g.,
        # [ImplementedAs]) changes, we rebuild all files, since we're not
        # computing dependencies file-by-file in the build.
        # This data is generally stable.
        '<(bindings_modules_output_dir)/InterfacesInfoOverall.pickle',
        '<(bindings_core_output_dir)/ComponentInfoCore.pickle',
        # Further, if any dependency (partial interface or implemented
        # interface) changes, rebuild everything, since every IDL potentially
        # depends on them, because we're not computing dependencies
        # file-by-file.
        # FIXME: This is too conservative, and causes excess rebuilds:
        # compute this file-by-file.  http://crbug.com/341748
        # FIXME: should be core_all_dependency_idl_files only, but some core IDL
        # files depend on modules IDL files  http://crbug.com/358074
        '<@(all_dependency_idl_files)',
      ],
      'outputs': [
        '<(bindings_core_v8_output_dir)/V8<(RULE_INPUT_ROOT).cpp',
        '<(bindings_core_v8_output_dir)/V8<(RULE_INPUT_ROOT).h',
      ],
      # sanitize-win-build-log.sed uses a regex which matches this command
      # line (Python script + .idl file being processed).
      # Update that regex if command line changes (other than changing flags)
      'action': [
        'python',
        '<(bindings_scripts_dir)/idl_compiler.py',
        '--cache-dir',
        '<(bindings_scripts_output_dir)',
        '--output-dir',
        '<(bindings_core_v8_output_dir)',
        '--info-dir',
        '<(bindings_output_dir)',
        '--target-component',
        'core',
        '--write-file-only-if-changed',
        '<(write_file_only_if_changed)',
        '<(RULE_INPUT_PATH)',
      ],
      'message': 'Generating binding from <(RULE_INPUT_PATH)',
    }],
  },
################################################################################
  {
    # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated_aggregate
    'target_name': 'bindings_core_v8_generated_aggregate',
    'type': 'none',
    'actions': [{
      'action_name': 'generate_aggregate_bindings_core_v8',
      'inputs': [
        '<(bindings_scripts_dir)/aggregate_generated_bindings.py',
        '<(core_idl_files_list)',
      ],
      'outputs': [
        '<@(bindings_core_v8_generated_aggregate_files)',
      ],
      'action': [
        'python',
        '<(bindings_scripts_dir)/aggregate_generated_bindings.py',
        'core',
        '<(core_idl_files_list)',
        '--',
        '<@(bindings_core_v8_generated_aggregate_files)',
      ],
      'message': 'Generating aggregate generated core V8 bindings files',
    }],
  },
################################################################################
  {
    # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_impl_generated
    # http://crbug.com/358074; See comments on
    # 'bindings_core_v8_generated_individual' target
    'target_name': 'bindings_core_impl_generated',
    'type': 'none',
    'hard_dependency': 1,
    'dependencies': [
      '<(bindings_scripts_dir)/scripts.gyp:cached_jinja_templates',
      '<(bindings_scripts_dir)/scripts.gyp:cached_lex_yacc_tables',
      '../../core/generated.gyp:interfaces_info_individual_core',
      '../../modules/generated.gyp:interfaces_info',
    ],
    'sources': [
      '<@(core_dictionary_idl_files)',
      '<@(core_testing_dictionary_idl_files)',
    ],
    'actions': [{
      'action_name': 'idl_dictionary',
      # Mark as explicit idl action to prevent MSVS emulation on Windows.
      'explicit_idl_action': 1,
      'msvs_cygwin_shell': 0,
      'inputs': [
        '<@(core_dictionary_idl_files)',
        '<@(core_testing_dictionary_idl_files)',
        '<@(idl_lexer_parser_files)',
        '<@(idl_cache_files)',
        '<@(idl_compiler_files)',
        '<(bindings_dir)/IDLExtendedAttributes.txt',
        '<(bindings_modules_output_dir)/InterfacesInfoOverall.pickle',
        '<(bindings_core_output_dir)/ComponentInfoCore.pickle',
      ],
      'outputs': [
        '<@(bindings_core_v8_generated_union_type_files)',
        '<@(generated_core_dictionary_files)',
        '<@(generated_core_testing_dictionary_files)',
      ],
      'action': [
        'python',
        '<(bindings_scripts_dir)/idl_compiler.py',
        '--cache-dir',
        '<(bindings_scripts_output_dir)',
        '--output-dir',
        '<(bindings_core_v8_output_dir)',
        '--impl-output-dir',
        '<(SHARED_INTERMEDIATE_DIR)/blink/',
        '--info-dir',
        '<(bindings_output_dir)',
        '--target-component',
        'core',
        '--write-file-only-if-changed',
        '<(write_file_only_if_changed)',
        '--generate-impl',
        '<(core_dictionary_idl_files_list)',
      ],
      'message': 'Generating core IDL dictionary impl classes',
    }],
  },
################################################################################
  {
    # GN version: //third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated
    'target_name': 'bindings_core_v8_generated',
    'type': 'none',
    'dependencies': [
      'bindings_core_impl_generated',
      'bindings_core_v8_generated_aggregate',
      'bindings_core_v8_generated_individual',
    ],
  },
################################################################################
  ],  # targets
}