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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 '<(blink_platform_output_dir)/FontFamilyNames.cpp', | 230 '<(blink_platform_output_dir)/FontFamilyNames.cpp', |
231 '<(blink_platform_output_dir)/RuntimeEnabledFeatures.cpp', | 231 '<(blink_platform_output_dir)/RuntimeEnabledFeatures.cpp', |
232 '<(blink_platform_output_dir)/RuntimeEnabledFeatures.h', | 232 '<(blink_platform_output_dir)/RuntimeEnabledFeatures.h', |
233 '<(blink_platform_output_dir)/ColorData.cpp', | 233 '<(blink_platform_output_dir)/ColorData.cpp', |
234 ], | 234 ], |
235 'sources/': [ | 235 'sources/': [ |
236 # Exclude all platform specific things, reinclude them below on a per-plat
form basis | 236 # Exclude all platform specific things, reinclude them below on a per-plat
form basis |
237 # FIXME: Figure out how to store these patterns in a variable. | 237 # FIXME: Figure out how to store these patterns in a variable. |
238 ['exclude', '(cf|cg|harfbuzz|mac|opentype|win)/'], | 238 ['exclude', '(cf|cg|harfbuzz|mac|opentype|win)/'], |
239 ['exclude', '(?<!Chromium)(CF|CG|Mac|Win)\\.(cpp|mm?)$'], | 239 ['exclude', '(?<!Chromium)(CF|CG|Mac|Win)\\.(cpp|mm?)$'], |
240 | |
241 # *NEON.cpp files need special compile options. | |
242 # They are moved to the webcore_0_neon target. | |
243 ['exclude', 'graphics/cpu/arm/.*NEON\\.(cpp|h)'], | |
244 ['exclude', 'graphics/cpu/arm/filters/.*NEON\\.(cpp|h)'], | |
245 ], | 240 ], |
246 # Disable c4267 warnings until we fix size_t to int truncations. | 241 # Disable c4267 warnings until we fix size_t to int truncations. |
247 # Disable c4724 warnings which is generated in VS2012 due to improper | 242 # Disable c4724 warnings which is generated in VS2012 due to improper |
248 # compiler optimizations, see crbug.com/237063 | 243 # compiler optimizations, see crbug.com/237063 |
249 'msvs_disabled_warnings': [ 4267, 4334, 4724 ], | 244 'msvs_disabled_warnings': [ 4267, 4334, 4724 ], |
250 'conditions': [ | 245 'conditions': [ |
251 ['OS=="linux" or OS=="android" or OS=="win"', { | 246 ['OS=="linux" or OS=="android" or OS=="win"', { |
252 'sources/': [ | 247 'sources/': [ |
253 # Cherry-pick files excluded by the broader regular expressions above. | 248 # Cherry-pick files excluded by the broader regular expressions above. |
254 ['include', 'fonts/harfbuzz/FontHarfBuzz\\.cpp$'], | 249 ['include', 'fonts/harfbuzz/FontHarfBuzz\\.cpp$'], |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 }], | 427 }], |
433 ['"WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1" in feature_defines', { | 428 ['"WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1" in feature_defines', { |
434 'include_dirs': [ | 429 'include_dirs': [ |
435 '<(DEPTH)/third_party/openmax_dl', | 430 '<(DEPTH)/third_party/openmax_dl', |
436 ], | 431 ], |
437 'dependencies': [ | 432 'dependencies': [ |
438 '<(DEPTH)/third_party/openmax_dl/dl/dl.gyp:openmax_dl', | 433 '<(DEPTH)/third_party/openmax_dl/dl/dl.gyp:openmax_dl', |
439 ], | 434 ], |
440 }], | 435 }], |
441 ['target_arch=="arm"', { | 436 ['target_arch=="arm"', { |
442 'dependencies': [ | 437 'conditions': [ |
443 'blink_arm_neon', | 438 ['arm_neon == 1 or arm_neon_optional == 1', { |
| 439 'cflags!': [ |
| 440 '-mfpu=vfp', |
| 441 '-mfpu=vfpv3-d16', |
| 442 ], |
| 443 'cflags': [ |
| 444 '-marm', |
| 445 '-mfpu=neon', |
| 446 ], |
| 447 'conditions': [ |
| 448 ['OS=="android"', { |
| 449 'cflags!': ['-mthumb'], |
| 450 }], |
| 451 ], |
| 452 }], |
444 ], | 453 ], |
445 }], | 454 }], |
446 ], | 455 ], |
447 'target_conditions': [ | 456 'target_conditions': [ |
448 ['OS=="android"', { | 457 ['OS=="android"', { |
449 'sources/': [ | 458 'sources/': [ |
450 ['include', 'exported/linux/WebFontRenderStyle\\.cpp$'], | 459 ['include', 'exported/linux/WebFontRenderStyle\\.cpp$'], |
451 ['include', 'fonts/linux/FontPlatformDataLinux\\.cpp$'], | 460 ['include', 'fonts/linux/FontPlatformDataLinux\\.cpp$'], |
452 ], | 461 ], |
453 }], | 462 }], |
454 ], | 463 ], |
455 }, | |
456 # The *NEON.cpp files fail to compile when -mthumb is passed. Force | |
457 # them to build in ARM mode. | |
458 # See https://bugs.webkit.org/show_bug.cgi?id=62916. | |
459 { | |
460 'target_name': 'blink_arm_neon', | |
461 'conditions': [ | |
462 ['target_arch=="arm"', { | |
463 'type': 'static_library', | |
464 'dependencies': [ | |
465 'blink_common', | |
466 ], | |
467 'hard_dependency': 1, | |
468 'sources': [ | |
469 '<@(platform_files)', | |
470 ], | |
471 'sources/': [ | |
472 ['exclude', '.*'], | |
473 ['include', 'graphics/cpu/arm/filters/.*NEON\\.(cpp|h)'], | |
474 ], | |
475 'cflags': ['-marm'], | |
476 'conditions': [ | |
477 ['OS=="android"', { | |
478 'cflags!': ['-mthumb'], | |
479 }], | |
480 ], | |
481 },{ # target_arch!="arm" | |
482 'type': 'none', | |
483 }], | |
484 ], | |
485 }], | 464 }], |
486 } | 465 } |
OLD | NEW |