OLD | NEW |
1 # | 1 # |
2 # Copyright (C) 2013 Google Inc. All rights reserved. | 2 # Copyright (C) 2013 Google Inc. All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 'INSIDE_BLINK', | 49 'INSIDE_BLINK', |
50 ], | 50 ], |
51 'sources': [ | 51 'sources': [ |
52 '<@(modules_files)', | 52 '<@(modules_files)', |
53 '<@(bindings_modules_generated_aggregate_files)', | 53 '<@(bindings_modules_generated_aggregate_files)', |
54 ], | 54 ], |
55 # Disable c4267 warnings until we fix size_t to int truncations. | 55 # Disable c4267 warnings until we fix size_t to int truncations. |
56 'msvs_disabled_warnings': [ 4267, 4334, ] | 56 'msvs_disabled_warnings': [ 4267, 4334, ] |
57 }, | 57 }, |
58 { | 58 { |
59 'target_name': 'modules_bindings_generated', | |
60 'type': 'none', | |
61 'actions': [ | |
62 { | |
63 'action_name': 'event_interfaces', | |
64 'variables': { | |
65 'event_idl_files': [ | |
66 '<@(modules_event_idl_files)', | |
67 ], | |
68 'event_idl_files_list': | |
69 '<|(event_idl_files_list.tmp <@(event_idl_files))', | |
70 }, | |
71 'inputs': [ | |
72 '../bindings/scripts/generate_event_interfaces.py', | |
73 '../bindings/scripts/utilities.py', | |
74 '<(event_idl_files_list)', | |
75 '<@(event_idl_files)', | |
76 ], | |
77 'outputs': [ | |
78 '<(blink_output_dir)/EventModulesInterfaces.in', | |
79 ], | |
80 'action': [ | |
81 'python', | |
82 '../bindings/scripts/generate_event_interfaces.py', | |
83 '--event-idl-files-list', | |
84 '<(event_idl_files_list)', | |
85 '--event-interfaces-file', | |
86 '<(blink_output_dir)/EventModulesInterfaces.in', | |
87 '--write-file-only-if-changed', | |
88 '<(write_file_only_if_changed)', | |
89 '--suffix', | |
90 'Modules', | |
91 ], | |
92 }, | |
93 ], | |
94 }, | |
95 { | |
96 'target_name': 'modules_testing', | 59 'target_name': 'modules_testing', |
97 'type': 'static_library', | 60 'type': 'static_library', |
98 'dependencies': [ | 61 'dependencies': [ |
99 '../config.gyp:config', | 62 '../config.gyp:config', |
100 '../core/core.gyp:webcore', | 63 '../core/core.gyp:webcore', |
101 ], | 64 ], |
102 'defines': [ | 65 'defines': [ |
103 'BLINK_IMPLEMENTATION=1', | 66 'BLINK_IMPLEMENTATION=1', |
104 'INSIDE_BLINK', | 67 'INSIDE_BLINK', |
105 ], | 68 ], |
106 'sources': [ | 69 'sources': [ |
107 '<@(modules_testing_files)', | 70 '<@(modules_testing_files)', |
108 ], | 71 ], |
109 | 72 |
110 }, | 73 }, |
111 { | 74 { |
112 'target_name': 'make_modules_generated', | 75 'target_name': 'make_modules_generated', |
113 'type': 'none', | 76 'type': 'none', |
114 'hard_dependency': 1, | 77 'hard_dependency': 1, |
115 'dependencies': [ | 78 'dependencies': [ |
116 #'generated_testing_idls', | 79 #'generated_testing_idls', |
117 '../core/core_generated.gyp:core_bindings_generated', | 80 '../core/core_generated.gyp:core_bindings_generated', |
118 'modules_bindings_generated', | 81 '../bindings/modules/generated.gyp:bindings_modules_generated', |
119 '../config.gyp:config', | 82 '../config.gyp:config', |
120 ], | 83 ], |
121 'sources': [ | 84 'sources': [ |
122 # bison rule | 85 # bison rule |
123 '../core/css/CSSGrammar.y', | 86 '../core/css/CSSGrammar.y', |
124 '../core/xml/XPathGrammar.y', | 87 '../core/xml/XPathGrammar.y', |
125 ], | 88 ], |
126 'actions': [ | 89 'actions': [ |
127 { | |
128 'action_name': 'EventModulesFactory', | |
129 'inputs': [ | |
130 '<@(make_event_factory_files)', | |
131 '<(SHARED_INTERMEDIATE_DIR)/blink/EventModulesInterfaces.in', | |
132 ], | |
133 'outputs': [ | |
134 '<(SHARED_INTERMEDIATE_DIR)/blink/EventModules.cpp', | |
135 '<(SHARED_INTERMEDIATE_DIR)/blink/EventModulesHeaders.h', | |
136 '<(SHARED_INTERMEDIATE_DIR)/blink/EventModulesInterfaces.h', | |
137 ], | |
138 'action': [ | |
139 'python', | |
140 '../build/scripts/make_event_factory.py', | |
141 '<(SHARED_INTERMEDIATE_DIR)/blink/EventModulesInterfaces.in', | |
142 '--output_dir', | |
143 '<(SHARED_INTERMEDIATE_DIR)/blink', | |
144 ], | |
145 }, | |
146 { | |
147 'action_name': 'EventModulesNames', | |
148 'inputs': [ | |
149 '<@(make_names_files)', | |
150 '<(SHARED_INTERMEDIATE_DIR)/blink/EventModulesInterfaces.in', | |
151 ], | |
152 'outputs': [ | |
153 '<(SHARED_INTERMEDIATE_DIR)/blink/EventModulesNames.cpp', | |
154 '<(SHARED_INTERMEDIATE_DIR)/blink/EventModulesNames.h', | |
155 ], | |
156 'action': [ | |
157 'python', | |
158 '../build/scripts/make_names.py', | |
159 '<(SHARED_INTERMEDIATE_DIR)/blink/EventModulesInterfaces.in', | |
160 '--output_dir', | |
161 '<(SHARED_INTERMEDIATE_DIR)/blink', | |
162 ], | |
163 }, | |
164 { | |
165 'action_name': 'EventTargetModulesFactory', | |
166 'inputs': [ | |
167 '<@(make_event_factory_files)', | |
168 'EventTargetModulesFactory.in', | |
169 ], | |
170 'outputs': [ | |
171 '<(SHARED_INTERMEDIATE_DIR)/blink/EventTargetModulesHeaders.h', | |
172 '<(SHARED_INTERMEDIATE_DIR)/blink/EventTargetModulesInterfaces.h', | |
173 ], | |
174 'action': [ | |
175 'python', | |
176 '../build/scripts/make_event_factory.py', | |
177 'EventTargetModulesFactory.in', | |
178 '--output_dir', | |
179 '<(SHARED_INTERMEDIATE_DIR)/blink', | |
180 ], | |
181 }, | |
182 { | |
183 'action_name': 'EventTargetModulesNames', | |
184 'inputs': [ | |
185 '<@(make_names_files)', | |
186 'EventTargetModulesFactory.in', | |
187 ], | |
188 'outputs': [ | |
189 '<(SHARED_INTERMEDIATE_DIR)/blink/EventTargetModulesNames.cpp', | |
190 '<(SHARED_INTERMEDIATE_DIR)/blink/EventTargetModulesNames.h', | |
191 ], | |
192 'action': [ | |
193 'python', | |
194 '../build/scripts/make_names.py', | |
195 'EventTargetModulesFactory.in', | |
196 '--output_dir', | |
197 '<(SHARED_INTERMEDIATE_DIR)/blink', | |
198 ], | |
199 }, | |
200 ], | 90 ], |
201 }], | 91 }], |
202 } | 92 } |
OLD | NEW |