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

Side by Side Diff: Source/core/BUILD.gn

Issue 298703005: First pass on blink compiling for GN build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebuilding fixed Created 6 years, 7 months 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 | Annotate | Revision Log
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//third_party/WebKit/Source/bindings/bindings.gni")
6 import("//third_party/WebKit/Source/config.gni")
7 import("//third_party/WebKit/Source/build/scripts/scripts.gni")
8
9 blink_gen_dir = "$root_gen_dir/blink"
10 # The blink_gen_dir relative to the root build directory. We use this a log.
11 rel_blink_gen_dir = rebase_path(blink_gen_dir, root_build_dir)
12
13 # TODO(GYP) when we add real targets to this file, don't forget to enable:
14 # - wexit_time_destructors
15 # - optimize: max (check what this does on Android before using).
16
17 config("core_include_dirs") {
18 include_dirs = [
19 "..",
20 "../..",
21 blink_gen_dir,
22 bindings_output_dir,
23 ]
24 if (is_android && use_openmax_dl_fft) {
25 include_dirs += [ "//third_party/openmax_dl" ]
26 }
27 }
28
5 group("generated") { 29 group("generated") {
6 deps = [ 30 deps = [
7 "../wtf", 31 ":make_core_generated",
32 ":prerequisites",
8 "inspector:debugger_script_source", 33 "inspector:debugger_script_source",
9 "inspector:inspector_overlay_page", 34 "inspector:inspector_overlay_page",
10 "inspector:protocol_sources", 35 "inspector:protocol_sources",
11 "inspector:injected_script_source", 36 "inspector:injected_script_source",
12 "inspector:injected_canvas_script_source", 37 "inspector:injected_canvas_script_source",
13 "inspector:instrumentation_sources", 38 "inspector:instrumentation_sources",
14 "//skia", 39 "//skia",
15 "//third_party/iccjpeg", 40 "//third_party/iccjpeg",
16 "//third_party/libpng", 41 "//third_party/libpng",
17 "//third_party/libwebp", 42 "//third_party/libwebp",
18 "//third_party/qcms", 43 "//third_party/qcms",
19 "//third_party/sqlite", 44 "//third_party/sqlite",
45 "//third_party/WebKit/Source/bindings",
46 "//third_party/WebKit/Source/wtf",
20 "//url", 47 "//url",
21 # TODO(GYP) 48 # TODO(GYP)
22 #"//v8", 49 #"//v8",
23 #'webcore_prerequisites', 50 #'webcore_prerequisites',
24 #'core_generated.gyp:make_core_generated',
25 #'../bindings/generated_bindings.gyp:generated_bindings',
26 #'../platform/platform_generated.gyp:make_platform_generated', 51 #'../platform/platform_generated.gyp:make_platform_generated',
27 #'<(DEPTH)/gin/gin.gyp:gin', 52 #'<(DEPTH)/gin/gin.gyp:gin',
28 #'<(DEPTH)/third_party/libxml/libxml.gyp:libxml', 53 #'<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
29 #'<(DEPTH)/third_party/libxslt/libxslt.gyp:libxslt', 54 #'<(DEPTH)/third_party/libxslt/libxslt.gyp:libxslt',
30 #'<(DEPTH)/third_party/npapi/npapi.gyp:npapi', 55 #'<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
31 ] 56 ]
32 } 57 }
58
59 group("prerequisites") {
60 deps = [
61 ":make_core_generated",
62 "inspector:debugger_script_source",
63 "inspector:injected_canvas_script_source",
64 "inspector:injected_script_source",
65 "inspector:inspector_overlay_page",
66 "inspector:protocol_sources",
67 "inspector:instrumentation_sources",
68 "//third_party/WebKit/Source/bindings",
69 "//third_party/WebKit/Source/platform",
70 "//third_party/WebKit/Source/wtf",
71 "//gpu/command_buffer/client:gles2_c_lib",
72 "//skia",
73 "//third_party/iccjpeg",
74 "//third_party/libpng",
75 "//third_party/libwebp",
76 #"//third_party/libxml",
77 #"//third_party/libxslt",
78 #"//third_party/npapi",
79 "//third_party/ots",
80 "//third_party/qcms",
81 "//third_party/sqlite",
82 "//third_party/zlib",
83 "//url",
84 #"//v8",
85 #'<(angle_path)/src/build_angle.gyp:translator',
86 ]
87
88 direct_dependent_configs = [
89 "//third_party/WebKit/Source:config",
90 ]
91 }
92
93 # Corresponds to core.gyp:webcore
94 #
95 # Note that this is a source set rather than a group, even though it has no
96 # sources. A group would implicitly forward all direct dependent configs
97 # through it, but we want to keep our internal targets'
98 # direct_dependent_configs private and only forward some of them.
99 source_set("core") {
100 exported_deps = [
101 #":core_generated", # TODO(GYP)
102 "//skia",
103 #"//third_party/npapi", # TODO(GYP)
104 "//third_party/qcms",
105 "//third_party/WebKit/Source/wtf",
106 "//url",
107 #"//v8", # TODO(GYP)
108 ]
109
110 deps = [
111 # TODO(GYP)
112 #":dom",
113 #":html",
114 #":remaining",
115 #":rendering",
116 #":svg",
117 ] + exported_deps
118
119 forward_dependent_configs_from = exported_deps
120
121 direct_dependent_configs = [ ":core_include_dirs" ]
122
123 # TODO(GYP) IPP libraries pkg-config. These seem to be experimental and used
124 # only on x86 Android.
125 }
126
127 # core_generated ---------------------------------------------------------------
128
129 group("generated_testing_idls") {
130 deps = [
131 ":generated_testing_idls_settings",
132 ":generated_testing_idls_internal_runtime_flags",
133 ]
134 }
135
136 # "Settings" action in generated_testing_idls from GYP.
137 action("generated_testing_idls_settings") {
138 script = "../build/scripts/make_settings.py"
139
140 source_prereqs = scripts_for_in_files + [
141 "../build/scripts/make_settings.py",
142 "../build/scripts/templates/InternalSettingsGenerated.idl.tmpl",
143 "../build/scripts/templates/InternalSettingsGenerated.cpp.tmpl",
144 "../build/scripts/templates/InternalSettingsGenerated.h.tmpl",
145 "../build/scripts/templates/SettingsMacros.h.tmpl",
146 "frame/Settings.in",
147 ]
148 outputs = [
149 "$blink_gen_dir/SettingsMacros.h",
150 "$blink_gen_dir/InternalSettingsGenerated.idl",
151 "$blink_gen_dir/InternalSettingsGenerated.cpp",
152 ]
153
154 args = [
155 rebase_path("frame/Settings.in", root_build_dir),
156 "--output_dir", rel_blink_gen_dir,
157 ]
158 }
159
160 # "InternalRuntimeFlags" action in generated_testing_idls from GYP.
161 action("generated_testing_idls_internal_runtime_flags") {
162 script = "../build/scripts/make_internal_runtime_flags.py"
163
164 source_prereqs = scripts_for_in_files + [
165 "../build/scripts/make_internal_runtime_flags.py",
166 "../platform/RuntimeEnabledFeatures.in",
167 "../build/scripts/templates/InternalRuntimeFlags.h.tmpl",
168 "../build/scripts/templates/InternalRuntimeFlags.idl.tmpl",
169 ]
170 outputs = [
171 "$blink_gen_dir/InternalRuntimeFlags.idl",
172 "$blink_gen_dir/InternalRuntimeFlags.h",
173 ]
174
175 args = [
176 rebase_path("../platform/RuntimeEnabledFeatures.in", root_build_dir),
177 "--output_dir", rel_blink_gen_dir,
178 ]
179 }
180
181 # make_core_generated ----------------------------------------------------------
182
183 # The GYP target make_core_generated has some deps and a bunch of actions on
184 # it, which means that the deps will be resolved before the actions run. Here
185 # we have separate targets for each action. Its not clear which actions depend
186 # on these deps, so for GYP compatibility, all of the below actions should
187 # depend on the following deps.
188 make_core_generated_deps = [
189 ":generated_testing_idls",
190 "//third_party/WebKit/Source/bindings:core_bindings_generated",
191 ]
192
193 group("make_core_generated") {
194 deps = [
195 ":make_core_generated_xml_viewer_css",
196 ":make_core_generated_css_property_names",
197 ":make_core_generated_media_feature_names",
198 ":make_core_generated_media_features",
199 ":make_core_generated_style_property_shorthand",
200 ":make_core_generated_style_builder",
201 ":make_core_generated_css_value_keywords",
202 ":make_core_generated_html_element_factory",
203 ":make_core_generated_html_element_type_helpers",
204 ":make_core_generated_svg_names",
205 ":make_core_generated_svg_element_type_helpers",
206 ":make_core_generated_event_factory",
207 ":make_core_generated_event_target_factory",
208 ":make_core_generated_media_type_names",
209 ":make_core_generated_event_names",
210 ":make_core_generated_event_target_names",
211 ":make_core_generated_fetch_initiator_type_names",
212 ":make_core_generated_event_type_names",
213 ":make_core_generated_html_tokenizer_names",
214 ":make_core_generated_input_type_names",
215 ":make_core_generated_math_ml_names",
216 ":make_core_generated_xlink_names",
217 ":make_core_generated_xml_names",
218 ":make_core_generated_make_token_matcher",
219 ":make_core_generated_make_parser",
220 ":make_core_generated_make_token_matcher_for_viewport",
221 ":make_core_generated_xml_viewer_css",
222 ":make_core_generated_xml_viewer_js",
223 ":make_core_generated_html_entity_table",
224 ":make_core_generated_media_query_tokenizer_codepoints",
225 ":make_core_generated_user_agent_style_sheets",
226 ":make_core_generated_html_element_lookup_trie",
227 ":make_core_generated_bison",
228 ]
229 }
230
231 # Template to run most of the scripts used by the core_generated actions that
232 # process ".in" files.
233 # script: script to run.
234 # in_files: ".in" files to pass to the script
235 # other_inputs: (optional) other input files the script depends on
236 # defaults to "scripts_for_in_files" (if specified, we assume
237 # that the contents of "scripts_for_in_files" are included in
238 # this list specified since this is how these lists are filled
239 # from the GYP build.
240 # outputs: expected results relative to the blink_gen_dir
241 # other_args: (optional) other arguements to pass to the script.
242 template("process_in_files") {
243 action(target_name) {
244 visibility = ":make_core_generated"
245 script = invoker.script
246
247 source_prereqs = invoker.in_files
248 if (defined(invoker.other_inputs)) {
249 source_prereqs += invoker.other_inputs
250 } else {
251 source_prereqs += scripts_for_in_files
252 }
253 outputs = rebase_path(invoker.outputs, ".", blink_gen_dir)
254
255 args = rebase_path(invoker.in_files, root_build_dir) + [
256 "--output_dir", rel_blink_gen_dir,
257 ]
258 if (defined(invoker.other_args)) {
259 args += invoker.other_args
260 }
261
262 deps = make_core_generated_deps
263 }
264 }
265
266 # "CSSPropertyNames" in make_core_generated from GYP.
267 process_in_files("make_core_generated_css_property_names") {
268 script = "../build/scripts/make_css_property_names.py"
269 in_files = [
270 "css/CSSPropertyNames.in",
271 "css/SVGCSSPropertyNames.in",
272 ]
273 outputs = [
274 "CSSPropertyNames.cpp",
275 "CSSPropertyNames.h",
276 ]
277 other_args = [ "--defines", feature_defines_string ]
278 }
279
280 # "MediaFeatures" in make_core_generated from GYP.
281 process_in_files("make_core_generated_media_features") {
282 script = "../build/scripts/make_media_features.py"
283 in_files = [
284 "css/MediaFeatureNames.in",
285 ]
286 other_inputs = [
287 "../build/scripts/make_media_features.py",
288 "../build/scripts/templates/MediaFeatures.h.tmpl",
289 ]
290 outputs = [
291 "MediaFeatures.h",
292 ]
293 other_args = [ "--defines", feature_defines_string ]
294 }
295
296 # "StylePropertyShorthand" in make_core_generated from GYP.
297 process_in_files("make_core_generated_style_property_shorthand") {
298 script = "../build/scripts/make_style_shorthands.py"
299 in_files = [
300 "css/CSSShorthands.in",
301 ]
302 other_inputs = [
303 "../build/scripts/templates/StylePropertyShorthand.cpp.tmpl",
304 "../build/scripts/templates/StylePropertyShorthand.h.tmpl",
305 ]
306 outputs = [
307 "StylePropertyShorthand.cpp",
308 "StylePropertyShorthand.h",
309 ]
310 }
311
312 # "StyleBuilder" in make_core_generated from GYP.
313 process_in_files("make_core_generated_style_builder") {
314 script = "../build/scripts/make_style_builder.py"
315
316 in_files = [
317 "css/CSSProperties.in",
318 ]
319 other_inputs = [
320 "../build/scripts/templates/StyleBuilder.cpp.tmpl",
321 "../build/scripts/templates/StyleBuilderFunctions.cpp.tmpl",
322 "../build/scripts/templates/StyleBuilderFunctions.h.tmpl",
323 ]
324 outputs = [
325 "StyleBuilder.cpp",
326 "StyleBuilderFunctions.h",
327 "StyleBuilderFunctions.cpp",
328 ]
329 }
330
331 # "CSSValueKeywords" in make_core_generated from GYP.
332 process_in_files("make_core_generated_css_value_keywords") {
333 script = "../build/scripts/make_css_value_keywords.py"
334
335 in_files = [
336 "css/CSSValueKeywords.in",
337 "css/SVGCSSValueKeywords.in",
338 ]
339 outputs = [
340 "CSSValueKeywords.cpp",
341 "CSSValueKeywords.h",
342 ]
343 other_args = [
344 "--gperf", gperf_exe,
345 "--defines", feature_defines_string
346 ]
347 }
348
349 # "HTMLElementFactory" in make_core_generated from GYP.
350 process_in_files("make_core_generated_html_element_factory") {
351 script = "../build/scripts/make_element_factory.py"
352
353 in_files = [
354 "html/HTMLTagNames.in",
355 "html/HTMLAttributeNames.in",
356 ]
357 other_inputs = make_element_factory_files
358 outputs = [
359 "HTMLElementFactory.cpp",
360 "HTMLElementFactory.h",
361 "HTMLNames.cpp",
362 "HTMLNames.h",
363 "V8HTMLElementWrapperFactory.cpp",
364 "V8HTMLElementWrapperFactory.h",
365 ]
366 }
367
368 # "HTMLElementTypeHelpers" in make_core_generated from GYP.
369 process_in_files("make_core_generated_html_element_type_helpers") {
370 script = "../build/scripts/make_element_type_helpers.py"
371
372 in_files = [
373 "html/HTMLTagNames.in",
374 ]
375 other_inputs = make_element_type_helpers_files
376 outputs = [
377 "HTMLElementTypeHelpers.h",
378 ]
379 }
380
381 # "SVGNames" in make_core_generated from GYP.
382 process_in_files("make_core_generated_svg_names") {
383 script = "../build/scripts/make_element_factory.py"
384
385 in_files = [
386 "svg/SVGTagNames.in",
387 "svg/SVGAttributeNames.in",
388 ]
389 other_inputs = make_element_factory_files
390 outputs = [
391 "SVGElementFactory.cpp",
392 "SVGElementFactory.h",
393 "SVGNames.cpp",
394 "SVGNames.h",
395 "V8SVGElementWrapperFactory.cpp",
396 "V8SVGElementWrapperFactory.h",
397 ]
398 }
399
400 # "SVGElementTypeHelpers" in make_core_generated from GYP.
401 process_in_files("make_core_generated_svg_element_type_helpers") {
402 script = "../build/scripts/make_element_type_helpers.py"
403
404 in_files = [
405 "svg/SVGTagNames.in",
406 ]
407 other_inputs = make_element_type_helpers_files
408 outputs = [
409 "SVGElementTypeHelpers.h",
410 ]
411 }
412
413 # "EventFactory" in make_core_generated from GYP.
414 process_in_files("make_core_generated_event_factory") {
415 script = "../build/scripts/make_event_factory.py"
416
417 in_files = [
418 "$blink_gen_dir/EventInterfaces.in",
419 "events/EventAliases.in",
420 ]
421 other_inputs = make_event_factory_files
422 outputs = [
423 "Event.cpp",
424 "EventHeaders.h",
425 "EventInterfaces.h",
426 ]
427 }
428
429 # "EventTargetFactory" in make_core_generated from GYP.
430 process_in_files("make_core_generated_event_target_factory") {
431 script = "../build/scripts/make_event_factory.py"
432
433 in_files = [
434 "events/EventTargetFactory.in",
435 ]
436 other_inputs = make_event_factory_files
437 outputs = [
438 "EventTargetHeaders.h",
439 "EventTargetInterfaces.h",
440 ]
441 }
442
443 # "MediaFeatureNames" in make_core_generated from GYP.
444 process_in_files("make_core_generated_media_feature_names") {
445 script = "../build/scripts/make_media_feature_names.py"
446 in_files = [
447 "css/MediaFeatureNames.in",
448 ]
449 other_inputs = make_names_files
450 outputs = [
451 "MediaFeatureNames.cpp",
452 "MediaFeatureNames.h",
453 ]
454 other_args = [ "--defines", feature_defines_string ]
455 }
456
457 # make_names -------------------------------------------------------------------
458
459 # Template to run the make_names script. This is a special case of
460 # process_in_files.
461 # in_files: files to pass to the script
462 # outputs: expected results relative to the blink_gen_dir
463 template("make_names") {
464 process_in_files(target_name) {
465 script = "../build/scripts/make_names.py"
466 in_files = invoker.in_files
467 other_inputs = make_names_files
468 outputs = invoker.outputs
469 other_args = [ "--defines", feature_defines_string ]
470 }
471 }
472
473 # "MediaTypeNames" in make_core_generated from GYP.
474 make_names("make_core_generated_media_type_names") {
475 in_files = [
476 "css/MediaTypeNames.in",
477 ]
478 outputs = [
479 "MediaTypeNames.cpp",
480 "MediaTypeNames.h",
481 ]
482 }
483
484 # "EventNames" in make_core_generated from GYP.
485 make_names("make_core_generated_event_names") {
486 in_files = [
487 "$blink_gen_dir/EventInterfaces.in",
488 ]
489 outputs = [
490 "EventNames.cpp",
491 "EventNames.h",
492 ]
493 }
494
495 # "EventTargetNames" in make_core_generated from GYP.
496 make_names("make_core_generated_event_target_names") {
497 in_files = [
498 "events/EventTargetFactory.in",
499 ]
500 outputs = [
501 "EventTargetNames.cpp",
502 "EventTargetNames.h",
503 ]
504 }
505
506 # "FetchInitiatorTypeNames" in make_core_generated from GYP.
507 make_names("make_core_generated_fetch_initiator_type_names") {
508 in_files = [
509 "fetch/FetchInitiatorTypeNames.in",
510 ]
511 outputs = [
512 "FetchInitiatorTypeNames.cpp",
513 "FetchInitiatorTypeNames.h",
514 ]
515 }
516
517 # "EventTypeNames" in make_core_generated from GYP.
518 make_names("make_core_generated_event_type_names") {
519 in_files = [
520 "events/EventTypeNames.in",
521 ]
522 outputs = [
523 "EventTypeNames.cpp",
524 "EventTypeNames.h",
525 ]
526 }
527
528 # "HTMLTokenizerNames" in make_core_generated from GYP.
529 make_names("make_core_generated_html_tokenizer_names") {
530 in_files = [
531 "html/parser/HTMLTokenizerNames.in",
532 ]
533 outputs = [
534 "HTMLTokenizerNames.cpp",
535 "HTMLTokenizerNames.h",
536 ]
537 }
538
539 # "InputTypeNames" in make_core_generated from GYP.
540 make_names("make_core_generated_input_type_names") {
541 in_files = [
542 "html/forms/InputTypeNames.in",
543 ]
544 outputs = [
545 "InputTypeNames.cpp",
546 "InputTypeNames.h",
547 ]
548 }
549
550 # make_qualified_names ---------------------------------------------------------
551
552 # Calls the make_qualified_names script.
553 # in_files: list of ".in" files to process.
554 # outputs: list of output files relative to blink_gen_dir.
555 template("make_qualified_names") {
556 process_in_files(target_name) {
557 script = "../build/scripts/make_qualified_names.py"
558 in_files = invoker.in_files
559 other_inputs = make_qualified_names_files
560 outputs = invoker.outputs
561 other_args = [ "--defines", feature_defines_string ]
562 }
563 }
564
565 # "MathMLNames" in make_core_generated from GYP.
566 make_qualified_names("make_core_generated_math_ml_names") {
567 in_files = [
568 "html/parser/MathMLTagNames.in",
569 "html/parser/MathMLAttributeNames.in",
570 ]
571 outputs = [
572 "MathMLNames.cpp",
573 "MathMLNames.h",
574 ]
575 }
576
577 # "XLinkNames" in make_core_generated from GYP.
578 make_qualified_names("make_core_generated_xlink_names") {
579 in_files = [
580 "svg/xlinkattrs.in",
581 ]
582 outputs = [
583 "XLinkNames.cpp",
584 "XLinkNames.h",
585 ]
586 }
587
588 # "XMLNSNames" in make_core_generated from GYP.
589 make_qualified_names("make_core_generated_xml_ns_names") {
590 in_files = [
591 "xml/xmlnsattrs.in",
592 ]
593 outputs = [
594 "XMLNSNames.cpp",
595 "XMLNSNames.h",
596 ]
597 }
598
599 # "XMLNames" in make_core_generated from GYP.
600 make_qualified_names("make_core_generated_xml_names") {
601 in_files = [
602 "xml/xmlattrs.in",
603 ]
604 outputs = [
605 "XMLNames.cpp",
606 "XMLNames.h",
607 ]
608 }
609
610 # make_token_matcher -----------------------------------------------------------
611
612 # Calls the make_token_matcher script.
613 # input_file: The "*-in.cpp" file
614 # output_file: The output file (relative to the build_gen_dir)
615 template("make_token_matcher") {
616 action(target_name) {
617 visibility = ":make_core_generated"
618 script = "../build/scripts/make_token_matcher.py"
619
620 source_prereqs = scripts_for_in_files + [ invoker.input_file ]
621 outputs = [
622 rebase_path(invoker.output_file, ".", blink_gen_dir)
623 ]
624
625 args = [
626 rebase_path(invoker.input_file, root_build_dir),
627 rebase_path(invoker.output_file, root_build_dir, blink_gen_dir),
628 ]
629
630 deps = make_core_generated_deps
631 }
632 }
633
634 # "MakeTokenMatcher" in make_core_generated from GYP.
635 make_token_matcher("make_core_generated_make_token_matcher") {
636 input_file = "css/CSSTokenizer-in.cpp"
637 output_file = "CSSTokenizer.cpp"
638 }
639
640 # "MakeParser" in make_core_generated from GYP.
641 make_token_matcher("make_core_generated_make_parser") {
642 input_file = "css/parser/BisonCSSParser-in.cpp"
643 output_file = "BisonCSSParser.cpp"
644 }
645
646 # "MakeTokenMatcherForViewport" in make_core_generated from GYP.
647 make_token_matcher("make_core_generated_make_token_matcher_for_viewport") {
648 input_file = "html/HTMLMetaElement-in.cpp"
649 output_file = "HTMLMetaElement.cpp"
650 }
651
652 # One-off scripts --------------------------------------------------------------
653
654 # "generateXMLViewerCSS" in make_core_generated from GYP.
655 action("make_core_generated_xml_viewer_css") {
656 visibility = ":make_core_generated"
657 script = "../build/scripts/xxd.py"
658
659 source_prereqs = [
660 "xml/XMLViewer.css",
661 ]
662 outputs = [
663 "$blink_gen_dir/XMLViewerCSS.h",
664 ]
665
666 args = [
667 "XMLViewer_css",
668 rebase_path(source_prereqs[0], root_build_dir),
669 rebase_path(outputs[0], root_build_dir),
670 ]
671
672 deps = make_core_generated_deps
673 }
674
675 # "generateXMLViewerJS" in make_core_generated from GYP.
676 action("make_core_generated_xml_viewer_js") {
677 visibility = ":make_core_generated"
678 script = "../build/scripts/xxd.py"
679
680 source_prereqs = [
681 "xml/XMLViewer.js",
682 ]
683 outputs = [
684 "$blink_gen_dir/XMLViewerJS.h",
685 ]
686
687 args = [
688 "XMLViewer_js",
689 rebase_path(source_prereqs[0], root_build_dir),
690 rebase_path(outputs[0], root_build_dir),
691 ]
692
693 deps = make_core_generated_deps
694 }
695
696 # "HTMLEntityTable" in make_core_generated from GYP.
697 action("make_core_generated_html_entity_table") {
698 visibility = ":make_core_generated"
699 script = "html/parser/create-html-entity-table"
700
701 source_prereqs = [
702 "html/parser/HTMLEntityNames.in",
703 ]
704 outputs = [
705 "$blink_gen_dir/HTMLEntityTable.cpp",
706 ]
707
708 args = [ "-o" ] + rebase_path(outputs, root_build_dir)
709 args += rebase_path(source_prereqs, root_build_dir)
710
711 deps = make_core_generated_deps
712 }
713
714 # "MediaQueryTokenizerCodepoints" in make_core_generated from GYP.
715 action("make_core_generated_media_query_tokenizer_codepoints") {
716 visibility = ":make_core_generated"
717 script = "../build/scripts/make_mediaquery_tokenizer_codepoints.py"
718
719 outputs = [
720 "$blink_gen_dir/MediaQueryTokenizerCodepoints.cpp",
721 ]
722
723 args = [
724 "--output_dir", rel_blink_gen_dir,
725 "--defines", feature_defines_string
726 ]
727
728 deps = make_core_generated_deps
729 }
730
731 # "UserAgentStyleSheets" in make_core_generated from GYP.
732 action("make_core_generated_user_agent_style_sheets") {
733 visibility = ":make_core_generated"
734 script = "../build/scripts/action_useragentstylesheets.py"
735
736 scripts = [
737 "css/make-css-file-arrays.pl",
738 "../build/scripts/preprocessor.pm",
739 ]
740 stylesheets = [
741 "css/html.css",
742 "css/quirks.css",
743 "css/view-source.css",
744 "css/themeChromium.css",
745 "css/themeChromiumAndroid.css",
746 "css/themeChromiumLinux.css",
747 "css/themeChromiumSkia.css",
748 "css/themeMac.css",
749 "css/themeWin.css",
750 "css/themeWinQuirks.css",
751 "css/svg.css",
752 "css/mathml.css",
753 "css/mediaControls.css",
754 "css/mediaControlsAndroid.css",
755 "css/fullscreen.css",
756 "css/xhtmlmp.css",
757 "css/viewportAndroid.css",
758 ]
759
760 source_prereqs = scripts + stylesheets
761 outputs = [
762 "$blink_gen_dir/UserAgentStyleSheets.h",
763 "$blink_gen_dir/UserAgentStyleSheetsData.cpp",
764 ]
765
766 args =
767 rebase_path(outputs, root_build_dir) +
768 rebase_path(stylesheets, root_build_dir) +
769 [ "--" ] +
770 rebase_path(scripts, root_build_dir) +
771 [ "--", "--defines", feature_defines_string ] +
772 [ preprocessor ] +
773 [ "--perl", perl_exe ]
774
775 deps = make_core_generated_deps
776 }
777
778 # "HTMLElementLookupTrie" in make_core_generated from GYP.
779 action("make_core_generated_html_element_lookup_trie") {
780 visibility = ":make_core_generated"
781 script = "../build/scripts/make_element_lookup_trie.py"
782
783 input_file = "html/HTMLTagNames.in"
784 source_prereqs = scripts_for_in_files + [
785 input_file,
786 "../build/scripts/templates/ElementLookupTrie.cpp.tmpl",
787 "../build/scripts/templates/ElementLookupTrie.h.tmpl",
788 ]
789 outputs = [
790 "$blink_gen_dir/HTMLElementLookupTrie.cpp",
791 "$blink_gen_dir/HTMLElementLookupTrie.h",
792 ]
793
794 args = [
795 rebase_path(input_file, root_build_dir),
796 "--output_dir", rel_blink_gen_dir,
797 ]
798
799 deps = make_core_generated_deps
800 }
801
802 # The bison rules from make_core_generated.
803 action_foreach("make_core_generated_bison") {
804 script = "../build/scripts/rule_bison.py"
805 sources = [
806 "css/CSSGrammar.y",
807 "xml/XPathGrammar.y",
808 ]
809 outputs = [
810 "$blink_gen_dir/{{source_name_part}}.cpp",
811 "$blink_gen_dir/{{source_name_part}}.h",
812 ]
813 args = [
814 "{{source}}",
815 rel_blink_gen_dir,
816 bison_exe,
817 ]
818
819 deps = make_core_generated_deps
820 }
OLDNEW
« Source/bindings/bindings.gni ('K') | « Source/config.gni ('k') | Source/core/core.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698