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.gni") | 8 import("//third_party/WebKit/Source/platform/platform.gni") |
9 import("//third_party/WebKit/Source/platform/platform_generated.gni") | 9 import("//third_party/WebKit/Source/platform/platform_generated.gni") |
10 | 10 |
11 # Most targets in this file are private actions so use that as the default. | 11 # Most targets in this file are private actions so use that as the default. |
12 visibility = [ ":*" ] | 12 visibility = [ ":*" ] |
13 | 13 |
14 heap_gypi = exec_script( | 14 if (!is_mac) { |
15 "//build/gypi_to_gn.py", | 15 # TODO(GYP): can't link Blink binaries yet. |
brettw
2014/11/12 05:25:37
Can you append "on mac" to these comments?
Dirk Pranke
2014/11/12 16:01:16
Sure.
| |
16 [ rebase_path("heap/blink_heap.gypi") ], | 16 heap_gypi = exec_script( |
17 "scope", | 17 "//build/gypi_to_gn.py", |
18 [ "heap/blink_heap.gypi" ]) | 18 [ rebase_path("heap/blink_heap.gypi") ], |
19 "scope", | |
20 [ "heap/blink_heap.gypi" ]) | |
21 } | |
19 | 22 |
20 blink_platform_neon_files = [ | 23 blink_platform_neon_files = [ |
21 "graphics/cpu/arm/WebGLImageConversionNEON.h", | 24 "graphics/cpu/arm/WebGLImageConversionNEON.h", |
22 ] | 25 ] |
23 | 26 |
24 # blink_common in blink_platform.gyp | 27 # blink_common in blink_platform.gyp |
25 component("blink_common") { | 28 component("blink_common") { |
26 visibility = [] # Allow re-assignment of list. | 29 visibility = [] # Allow re-assignment of list. |
27 visibility = [ "//third_party/WebKit/*" ] | 30 visibility = [ "//third_party/WebKit/*" ] |
28 sources = [ | 31 sources = [ |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
304 if (use_webaudio_ffmpeg) { | 307 if (use_webaudio_ffmpeg) { |
305 include_dirs += [ "//third_party/ffmpeg" ] | 308 include_dirs += [ "//third_party/ffmpeg" ] |
306 deps += [ "//third_party/ffmpeg" ] | 309 deps += [ "//third_party/ffmpeg" ] |
307 } | 310 } |
308 if (use_openmax_dl_fft) { | 311 if (use_openmax_dl_fft) { |
309 include_dirs += [ "//third_party/openmax_dl" ] | 312 include_dirs += [ "//third_party/openmax_dl" ] |
310 deps += [ "//third_party/openmax_dl/dl" ] | 313 deps += [ "//third_party/openmax_dl/dl" ] |
311 } | 314 } |
312 } | 315 } |
313 | 316 |
314 test("heap_unittests") { | 317 if (!is_mac) { |
315 visibility = [] # Allow re-assignment of list. | 318 # TODO(GYP): Can't link Blink binaries yet. |
316 visibility = [ "//third_party/WebKit/*" ] | 319 test("heap_unittests") { |
317 output_name = "blink_heap_unittests" | 320 visibility = [] # Allow re-assignment of list. |
321 visibility = [ "//third_party/WebKit/*" ] | |
322 output_name = "blink_heap_unittests" | |
318 | 323 |
319 sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap") | 324 sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap") |
320 sources += [ "heap/RunAllTests.cpp" ] | 325 sources += [ "heap/RunAllTests.cpp" ] |
321 | 326 |
322 configs += [ | 327 configs += [ |
323 "//third_party/WebKit/Source/wtf:wtf_config", | 328 "//third_party/WebKit/Source/wtf:wtf_config", |
324 "//third_party/WebKit/Source:config", | 329 "//third_party/WebKit/Source:config", |
325 ] | 330 ] |
326 | 331 |
327 deps = [ | 332 deps = [ |
328 ":platform", | 333 ":platform", |
329 "//base", | 334 "//base", |
330 "//base/allocator", | 335 "//base/allocator", |
331 "//base/test:test_support", | 336 "//base/test:test_support", |
332 "//testing/gmock", | 337 "//testing/gmock", |
333 "//testing/gtest", | 338 "//testing/gtest", |
334 "//third_party/WebKit/Source/wtf", | 339 "//third_party/WebKit/Source/wtf", |
335 "//third_party/WebKit/Source/wtf:test_support", | 340 "//third_party/WebKit/Source/wtf:test_support", |
336 "//content/test:test_support", | 341 "//content/test:test_support", |
337 ] | 342 ] |
338 } | 343 } |
339 | 344 |
340 test("platform_unittests") { | 345 test("platform_unittests") { |
341 visibility = [] # Allow re-assignment of list. | 346 visibility = [] # Allow re-assignment of list. |
342 visibility = [ "//third_party/WebKit/*" ] | 347 visibility = [ "//third_party/WebKit/*" ] |
343 output_name = "blink_platform_unittests" | 348 output_name = "blink_platform_unittests" |
344 | 349 |
345 sources = platform_test_files | 350 sources = platform_test_files |
346 | 351 |
347 sources += [ "testing/RunAllTests.cpp" ] | 352 sources += [ "testing/RunAllTests.cpp" ] |
348 | 353 |
349 configs += [ | 354 configs += [ |
350 "//third_party/WebKit/Source/wtf:wtf_config", | 355 "//third_party/WebKit/Source/wtf:wtf_config", |
351 "//third_party/WebKit/Source:config", | 356 "//third_party/WebKit/Source:config", |
352 ] | 357 ] |
353 | 358 |
354 deps = [ | 359 deps = [ |
355 ":blink_common", | 360 ":blink_common", |
356 ":platform", | 361 ":platform", |
357 "//base", | 362 "//base", |
358 "//base/allocator", | 363 "//base/allocator", |
359 "//base/test:test_support", | 364 "//base/test:test_support", |
360 "//skia", | 365 "//skia", |
361 "//testing/gmock", | 366 "//testing/gmock", |
362 "//testing/gtest", | 367 "//testing/gtest", |
363 "//third_party/WebKit/Source/wtf", | 368 "//third_party/WebKit/Source/wtf", |
364 "//third_party/WebKit/Source/wtf:test_support", | 369 "//third_party/WebKit/Source/wtf:test_support", |
365 "//url", | 370 "//url", |
366 ] | 371 ] |
367 | 372 |
368 defines = [ | 373 defines = [ |
369 "INSIDE_BLINK", | 374 "INSIDE_BLINK", |
370 ] | 375 ] |
371 | 376 |
372 include_dirs = [ | 377 include_dirs = [ |
373 "$root_gen_dir/blink", | 378 "$root_gen_dir/blink", |
374 ] | 379 ] |
380 } | |
375 } | 381 } |
376 | 382 |
377 | 383 |
378 if (cpu_arch == "arm") { | 384 if (cpu_arch == "arm") { |
379 source_set("blink_arm_neon") { | 385 source_set("blink_arm_neon") { |
380 sources = blink_platform_neon_files | 386 sources = blink_platform_neon_files |
381 | 387 |
382 # The *NEON.cpp files fail to compile when -mthumb is passed. Force | 388 # The *NEON.cpp files fail to compile when -mthumb is passed. Force |
383 # them to build in ARM mode. | 389 # them to build in ARM mode. |
384 # See https://bugs.webkit.org/show_bug.cgi?id=62916. | 390 # See https://bugs.webkit.org/show_bug.cgi?id=62916. |
385 # TODO(GYP) | 391 # TODO(GYP) |
386 #'cflags': ['-marm'], | 392 #'cflags': ['-marm'], |
387 # 'conditions': [ | 393 # 'conditions': [ |
388 # ['OS=="android"', { | 394 # ['OS=="android"', { |
389 # 'cflags!': ['-mthumb'], | 395 # 'cflags!': ['-mthumb'], |
390 # }], | 396 # }], |
391 # ], | 397 # ], |
392 | 398 |
393 deps = [ ":blink_common" ] | 399 deps = [ ":blink_common" ] |
394 } | 400 } |
395 } | 401 } |
OLD | NEW |