Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(743)

Side by Side Diff: Source/bindings/core/dart/generated.gyp

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 # Generate IDL bindings for core, plus aggregate bindings files.
6 #
7 # Design doc: http://www.chromium.org/developers/design-documents/idl-build
8
9 {
10 'includes': [
11 # ../../.. == Source
12 '../../../bindings/bindings.gypi',
13 '../../../bindings/core/generated.gypi',
14 '../../../bindings/core/idl.gypi',
15 # FIXME: need info about modules IDL files because some core IDL files
16 # depend on modules IDL files http://crbug.com/358074
17 '../../../bindings/modules/idl.gypi',
18 '../../../bindings/modules/modules.gypi',
19 '../../../bindings/scripts/scripts.gypi',
20 '../../../bindings/dart/scripts/scripts.gypi',
21 '../../../bindings/dart/scripts/templates/templates.gypi',
22 '../../../core/core.gypi',
23 'generated.gypi',
24 'dart-extras.gypi',
25 ],
26
27 'targets': [
28 ################################################################################
29 {
30 # GN version: //third_party/WebKit/Source/bindings/core/dart:bindings_core_d art_generated_individual
31 'target_name': 'bindings_core_dart_generated_individual',
32 'type': 'none',
33 # The 'binding' rule generates .h files, so mark as hard_dependency, per:
34 # https://code.google.com/p/gyp/wiki/InputFormatReference#Linking_Dependenci es
35 'hard_dependency': 1,
36 'dependencies': [
37 '../../../core/core_generated.gyp:generated_testing_idls',
38 '../generated.gyp:core_global_constructors_idls',
39 # FIXME: should not depend on modules, but partial interface definitions
40 # in modules change bindings for core http://crbug.com/358074
41 '../../modules/generated.gyp:modules_global_constructors_idls',
42 '<(bindings_scripts_dir)/scripts.gyp:dart_cached_jinja_templates',
43 '<(bindings_scripts_dir)/scripts.gyp:cached_lex_yacc_tables',
44 # FIXME: should be interfaces_info_core (w/o modules)
45 # http://crbug.com/358074
46 '../../modules/generated.gyp:interfaces_info',
47 ],
48 'sources': [
49 '<@(core_interface_idl_files)',
50 ],
51 'rules': [{
52 'rule_name': 'binding',
53 'extension': 'idl',
54 'msvs_external_rule': 1,
55 'inputs': [
56 '<@(idl_lexer_parser_files)', # to be explicit (covered by parsetab)
57 '<@(idl_compiler_files)',
58 '<@(dart_idl_compiler_files)',
59 '<@(dart_code_generator_template_files)',
60 '<(bindings_scripts_output_dir)/lextab.py',
61 '<(bindings_scripts_output_dir)/parsetab.pickle',
62 '<(bindings_scripts_output_dir)/cached_jinja_templates.stamp',
63 '<(bindings_dir)/IDLExtendedAttributes.txt',
64 # If the dependency structure or public interface info (e.g.,
65 # [ImplementedAs]) changes, we rebuild all files, since we're not
66 # computing dependencies file-by-file in the build.
67 # This data is generally stable.
68 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle',
69 # Further, if any dependency (partial interface or implemented
70 # interface) changes, rebuild everything, since every IDL potentially
71 # depends on them, because we're not computing dependencies
72 # file-by-file.
73 # FIXME: This is too conservative, and causes excess rebuilds:
74 # compute this file-by-file. http://crbug.com/341748
75 # FIXME: should be core_all_dependency_idl_files only, but some core IDL
76 # files depend on modules IDL files http://crbug.com/358074
77 '<@(all_dependency_idl_files)',
78 ],
79 'outputs': [
80 '<(bindings_core_dart_output_dir)/<(RULE_INPUT_ROOT)_globals.pickle',
81 ],
82 # sanitize-win-build-log.sed uses a regex which matches this command
83 # line (Python script + .idl file being processed).
84 # Update that regex if command line changes (other than changing flags)
85 'action': [
86 'python',
87 '-S', # skip 'import site' to speed up startup
88 '<(bindings_dart_scripts_dir)/compiler.py',
89 # FIXMEDART: Enable caching?
90 # '--cache-dir',
91 # '<(bindings_scripts_output_dir)',
92 '--output-dir',
93 '<(bindings_core_dart_output_dir)',
94 '--interfaces-info',
95 '<(bindings_modules_output_dir)/InterfacesInfoModules.pickle',
96 '--write-file-only-if-changed',
97 '<(write_file_only_if_changed)',
98 '<(RULE_INPUT_PATH)',
99 ],
100 'message': 'Generating Dart binding from <(RULE_INPUT_PATH)',
101 }],
102 },
103 ################################################################################
104 {
105 # GN version: //third_party/WebKit/Source/bindings/core/dart:bindings_core_d art_generated
106 'target_name': 'bindings_core_dart_generated',
107 'type': 'none',
108 'dependencies': [
109 'bindings_core_dart_generated_individual',
110 ],
111 'actions': [{
112 'action_name': 'generate_core_dart_stamp_file',
113 'inputs': [
114 '<(dart_dir)/tools/create_timestamp_file.py',
115 ],
116 'outputs': [
117 '<(bindings_core_dart_stamp_file)',
118 ],
119 'action': [
120 'python',
121 '<(dart_dir)/tools/create_timestamp_file.py',
122 '<(bindings_core_dart_stamp_file)',
123 ],
124 'message': 'Finished generating core Dart bindings files',
125 }],
126 },
127 ################################################################################
128 ], # targets
129 }
OLDNEW
« no previous file with comments | « Source/bindings/core/dart/dart-native-extensions.gypi ('k') | Source/bindings/core/dart/generated.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698