OLD | NEW |
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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//third_party/WebKit/Source/build/scripts/scripts.gni") | 6 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
7 import("//third_party/WebKit/Source/config.gni") | 7 import("//third_party/WebKit/Source/config.gni") |
| 8 import("//third_party/WebKit/Source/platform/platform_generated.gni") |
8 | 9 |
9 platform_gypi = exec_script( | 10 platform_gypi = exec_script( |
10 "//build/gypi_to_gn.py", | 11 "//build/gypi_to_gn.py", |
11 [ rebase_path("blink_platform.gypi") ], | 12 [ rebase_path("blink_platform.gypi") ], |
12 "scope", | 13 "scope", |
13 [ "blink_platform.gypi" ]) | 14 [ "blink_platform.gypi" ]) |
14 heap_gypi = exec_script( | 15 # TODO(GYP) Uncomment when the targets below that need this value are enabled. |
15 "//build/gypi_to_gn.py", | 16 #heap_gypi = exec_script( |
16 [ rebase_path("heap/blink_heap.gypi") ], | 17 # "//build/gypi_to_gn.py", |
17 "scope", | 18 # [ rebase_path("heap/blink_heap.gypi") ], |
18 [ "heap/blink_heap.gypi" ]) | 19 # "scope", |
| 20 # [ "heap/blink_heap.gypi" ]) |
19 blink_platform_neon_files = [ | 21 blink_platform_neon_files = [ |
20 "graphics/cpu/arm/WebGLImageConversionNEON.h", | 22 "graphics/cpu/arm/WebGLImageConversionNEON.h", |
21 "graphics/cpu/arm/filters/FEBlendNEON.h", | 23 "graphics/cpu/arm/filters/FEBlendNEON.h", |
22 "graphics/cpu/arm/filters/FECompositeArithmeticNEON.h", | 24 "graphics/cpu/arm/filters/FECompositeArithmeticNEON.h", |
23 "graphics/cpu/arm/filters/FEGaussianBlurNEON.h", | 25 "graphics/cpu/arm/filters/FEGaussianBlurNEON.h", |
24 "graphics/cpu/arm/filters/FELightingNEON.h", | 26 "graphics/cpu/arm/filters/FELightingNEON.h", |
25 "graphics/cpu/arm/filters/NEONHelpers.h", | 27 "graphics/cpu/arm/filters/NEONHelpers.h", |
26 ] | 28 ] |
27 | 29 |
28 # blink_common in blink_platform.gyp | 30 # blink_common in blink_platform.gyp |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 } | 85 } |
84 | 86 |
85 # FontFamilyNames action in make_platform_generated in | 87 # FontFamilyNames action in make_platform_generated in |
86 # platform_generated.gyp | 88 # platform_generated.gyp |
87 action("font_family_names") { | 89 action("font_family_names") { |
88 script = "../build/scripts/make_names.py" | 90 script = "../build/scripts/make_names.py" |
89 | 91 |
90 font_family_names_in = "fonts/FontFamilyNames.in" | 92 font_family_names_in = "fonts/FontFamilyNames.in" |
91 source_prereqs = make_names_files + [ font_family_names_in ] | 93 source_prereqs = make_names_files + [ font_family_names_in ] |
92 | 94 |
93 output_path = "$root_gen_dir/blink" | |
94 outputs = [ | 95 outputs = [ |
95 "$output_path/FontFamilyNames.cpp", | 96 "$blink_platform_output_dir/FontFamilyNames.cpp", |
96 "$output_path/FontFamilyNames.h", | 97 "$blink_platform_output_dir/FontFamilyNames.h", |
97 ] | 98 ] |
98 | 99 |
99 args = [ | 100 args = [ |
100 rebase_path(font_family_names_in, root_build_dir), | 101 rebase_path(font_family_names_in, root_build_dir), |
101 "--output_dir", | 102 "--output_dir", |
102 rebase_path(output_path, root_build_dir), | 103 rebase_path(blink_platform_output_dir, root_build_dir), |
103 ] | 104 ] |
104 } | 105 } |
105 | 106 |
106 # RuntimeEnabledFeatures action in make_platform_generated in | 107 # RuntimeEnabledFeatures action in make_platform_generated in |
107 # platform_generated.gyp | 108 # platform_generated.gyp |
108 action("runtime_enabled_features") { | 109 action("runtime_enabled_features") { |
109 script = "../build/scripts/make_runtime_features.py" | 110 script = "../build/scripts/make_runtime_features.py" |
110 | 111 |
111 runtime_enabled_features_in = "RuntimeEnabledFeatures.in" | 112 runtime_enabled_features_in = "RuntimeEnabledFeatures.in" |
112 source_prereqs = scripts_for_in_files + [ | 113 source_prereqs = scripts_for_in_files + [ |
113 runtime_enabled_features_in, | 114 runtime_enabled_features_in, |
114 "../build/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl", | 115 "../build/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl", |
115 "../build/scripts/templates/RuntimeEnabledFeatures.h.tmpl", | 116 "../build/scripts/templates/RuntimeEnabledFeatures.h.tmpl", |
116 ] | 117 ] |
117 | 118 |
118 output_path = "$root_gen_dir/blink" | |
119 outputs = [ | 119 outputs = [ |
120 "$output_path/RuntimeEnabledFeatures.cpp", | 120 "$blink_platform_output_dir/RuntimeEnabledFeatures.cpp", |
121 "$output_path/RuntimeEnabledFeatures.h", | 121 "$blink_platform_output_dir/RuntimeEnabledFeatures.h", |
122 ] | 122 ] |
123 | 123 |
124 args = [ | 124 args = [ |
125 rebase_path(runtime_enabled_features_in, root_build_dir), | 125 rebase_path(runtime_enabled_features_in, root_build_dir), |
126 "--output_dir", | 126 "--output_dir", |
127 rebase_path(output_path, root_build_dir), | 127 rebase_path(blink_platform_output_dir, root_build_dir), |
128 ] | 128 ] |
129 } | 129 } |
130 | 130 |
131 # ColorData action in make_platform_generated in platform_generated.gyp | 131 # ColorData action in make_platform_generated in platform_generated.gyp |
132 action("color_data") { | 132 action("color_data") { |
133 script = "../build/scripts/gperf.py" | 133 script = "../build/scripts/gperf.py" |
134 | 134 |
135 color_data_gperf = "ColorData.gperf" | 135 color_data_gperf = "ColorData.gperf" |
136 source_prereqs = [ color_data_gperf ] | 136 source_prereqs = [ color_data_gperf ] |
137 | 137 |
138 output_file = "$root_gen_dir/blink/ColorData.cpp" | 138 output_file = "$blink_platform_output_dir/ColorData.cpp" |
139 outputs = [ output_file ] | 139 outputs = [ output_file ] |
140 | 140 |
141 args = [ | 141 args = [ |
142 gperf_exe, | 142 gperf_exe, |
143 "--key-positions=*", | 143 "--key-positions=*", |
144 "-D", "-s", "2", | 144 "-D", "-s", "2", |
145 rebase_path(color_data_gperf, root_build_dir), | 145 rebase_path(color_data_gperf, root_build_dir), |
146 "--output-file=" + rebase_path(output_file, root_build_dir), | 146 "--output-file=" + rebase_path(output_file, root_build_dir), |
147 ] | 147 ] |
148 } | 148 } |
(...skipping 29 matching lines...) Expand all Loading... |
178 "//third_party/WebKit/Source:non_test_config", | 178 "//third_party/WebKit/Source:non_test_config", |
179 ] | 179 ] |
180 | 180 |
181 defines = [ | 181 defines = [ |
182 "BLINK_PLATFORM_IMPLEMENTATION=1", | 182 "BLINK_PLATFORM_IMPLEMENTATION=1", |
183 "INSIDE_BLINK", | 183 "INSIDE_BLINK", |
184 ] | 184 ] |
185 | 185 |
186 include_dirs = [ | 186 include_dirs = [ |
187 #"$angle_path/include", | 187 #"$angle_path/include", |
188 "$root_gen_dir/blink", | 188 # FIXME: This should be removed once files include the generated files with |
| 189 # the correct path. |
| 190 "$root_gen_dir/blink/platform", |
189 ] | 191 ] |
190 | 192 |
191 deps = [ | 193 deps = [ |
192 ":make_platform_generated", | 194 ":make_platform_generated", |
193 "//gpu/command_buffer/client:gles2_c_lib", | 195 "//gpu/command_buffer/client:gles2_c_lib", |
194 "//skia", | 196 "//skia", |
195 "//third_party:jpeg", | 197 "//third_party:jpeg", |
196 "//third_party/harfbuzz-ng", | 198 "//third_party/harfbuzz-ng", |
197 "//third_party/iccjpeg", | 199 "//third_party/iccjpeg", |
198 "//third_party/icu", | 200 "//third_party/icu", |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 ] | 351 ] |
350 | 352 |
351 deps = [ | 353 deps = [ |
352 "//base/test:test_support", | 354 "//base/test:test_support", |
353 "//testing/gmock", | 355 "//testing/gmock", |
354 "//testing/gtest", | 356 "//testing/gtest", |
355 "//third_party/WebKit/Source/wtf", | 357 "//third_party/WebKit/Source/wtf", |
356 ] | 358 ] |
357 } | 359 } |
358 | 360 |
| 361 # TODO(GYP) enable this target when it links (blocked on WebP symbols). |
| 362 if (false) { |
| 363 |
359 test("heap_unittests") { | 364 test("heap_unittests") { |
360 output_name = "blink_heap_unittests" | 365 output_name = "blink_heap_unittests" |
361 | 366 |
362 sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap") | 367 sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap") |
363 | 368 |
364 configs += [ | 369 configs += [ |
365 "//third_party/WebKit/Source:config", | 370 "//third_party/WebKit/Source:config", |
366 ] | 371 ] |
367 | 372 |
368 deps = [ | 373 deps = [ |
369 ":heap_run_all_tests", | 374 ":heap_run_all_tests", |
370 ":platform", | 375 ":platform", |
371 "//base", | 376 "//base", |
372 "//base/allocator", | 377 "//base/allocator", |
373 "//testing/gmock", | 378 "//testing/gmock", |
374 "//testing/gtest", | 379 "//testing/gtest", |
375 "//third_party/WebKit/Source/wtf", | 380 "//third_party/WebKit/Source/wtf", |
376 "//third_party/WebKit/Source/wtf:unittest_helpers", | 381 "//third_party/WebKit/Source/wtf:unittest_helpers", |
377 ] | 382 ] |
378 } | 383 } |
379 | 384 |
| 385 } # TODO(GYP) |
| 386 |
380 source_set("platform_run_all_tests") { | 387 source_set("platform_run_all_tests") { |
381 sources = [ | 388 sources = [ |
382 "testing/RunAllTests.cpp" | 389 "testing/RunAllTests.cpp" |
383 ] | 390 ] |
384 | 391 |
385 configs += [ | 392 configs += [ |
386 "//third_party/WebKit/Source/wtf:wtf_config", | 393 "//third_party/WebKit/Source/wtf:wtf_config", |
387 "//third_party/WebKit/Source:config", | 394 "//third_party/WebKit/Source:config", |
388 "//third_party/WebKit/Source:non_test_config", | 395 "//third_party/WebKit/Source:non_test_config", |
389 ] | 396 ] |
390 | 397 |
391 deps = [ | 398 deps = [ |
392 "//base/test:test_support", | 399 "//base/test:test_support", |
393 "//testing/gmock", | 400 "//testing/gmock", |
394 "//testing/gtest", | 401 "//testing/gtest", |
395 "//third_party/WebKit/Source/wtf", | 402 "//third_party/WebKit/Source/wtf", |
396 ] | 403 ] |
397 } | 404 } |
398 | 405 |
| 406 # TODO(GYP) enable this target when it links (blocked on WebP symbols). |
| 407 if (false) { |
| 408 |
399 test("platform_unittests") { | 409 test("platform_unittests") { |
400 output_name = "blink_platform_unittests" | 410 output_name = "blink_platform_unittests" |
401 | 411 |
402 sources = platform_gypi.platform_test_files | 412 sources = platform_gypi.platform_test_files |
403 | 413 |
404 configs += [ | 414 configs += [ |
405 "//third_party/WebKit/Source:config", | 415 "//third_party/WebKit/Source:config", |
406 ] | 416 ] |
407 | 417 |
408 deps = [ | 418 deps = [ |
409 ":blink_common", | 419 ":blink_common", |
410 ":heap_run_all_tests", | 420 ":heap_run_all_tests", |
411 ":platform", | 421 ":platform", |
412 "//base", | 422 "//base", |
413 "//base/allocator", | 423 "//base/allocator", |
414 "//skia", | 424 "//skia", |
415 "//testing/gmock", | 425 "//testing/gmock", |
416 "//testing/gtest", | 426 "//testing/gtest", |
417 "//third_party/WebKit/Source/wtf", | 427 "//third_party/WebKit/Source/wtf", |
418 "//third_party/WebKit/Source/wtf:unittest_helpers", | 428 "//third_party/WebKit/Source/wtf:unittest_helpers", |
419 "//url", | 429 "//url", |
420 ] | 430 ] |
421 | 431 |
422 defines = [ | 432 defines = [ |
423 "INSIDE_BLINK", | 433 "INSIDE_BLINK", |
424 ] | 434 ] |
425 | 435 |
426 include_dirs = [ | 436 include_dirs = [ |
427 "$root_gen_dir/blink", | 437 "$root_gen_dir/blink/platform", |
428 ] | 438 ] |
429 } | 439 } |
430 | 440 |
| 441 } # TODO(GYP) |
| 442 |
431 | 443 |
432 if (cpu_arch == "arm") { | 444 if (cpu_arch == "arm") { |
433 source_set("blink_arm_neon") { | 445 source_set("blink_arm_neon") { |
434 sources = blink_platform_neon_files | 446 sources = blink_platform_neon_files |
435 | 447 |
436 # The *NEON.cpp files fail to compile when -mthumb is passed. Force | 448 # The *NEON.cpp files fail to compile when -mthumb is passed. Force |
437 # them to build in ARM mode. | 449 # them to build in ARM mode. |
438 # See https://bugs.webkit.org/show_bug.cgi?id=62916. | 450 # See https://bugs.webkit.org/show_bug.cgi?id=62916. |
439 # TODO(GYP) | 451 # TODO(GYP) |
440 #'cflags': ['-marm'], | 452 #'cflags': ['-marm'], |
441 # 'conditions': [ | 453 # 'conditions': [ |
442 # ['OS=="android"', { | 454 # ['OS=="android"', { |
443 # 'cflags!': ['-mthumb'], | 455 # 'cflags!': ['-mthumb'], |
444 # }], | 456 # }], |
445 # ], | 457 # ], |
446 | 458 |
447 deps = [ ":blink_common" ] | 459 deps = [ ":blink_common" ] |
448 } | 460 } |
449 } | 461 } |
450 | 462 |
451 # This config is a placeholder to set up the V8 include path while the V8 GN | 463 # This config is a placeholder to set up the V8 include path while the V8 GN |
452 # build is being worked on. | 464 # build is being worked on. |
453 config("v8_stub_config") { | 465 config("v8_stub_config") { |
454 include_dirs = [ "//v8/include" ] | 466 include_dirs = [ "//v8/include" ] |
455 } | 467 } |
OLD | NEW |