OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. |
3 * Copyright (C) 2007-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2007-2009 Torch Mobile, Inc. |
4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. | 4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 /* OS(SOLARIS) - Solaris */ | 364 /* OS(SOLARIS) - Solaris */ |
365 #if defined(sun) || defined(__sun) | 365 #if defined(sun) || defined(__sun) |
366 #define WTF_OS_SOLARIS 1 | 366 #define WTF_OS_SOLARIS 1 |
367 #endif | 367 #endif |
368 | 368 |
369 /* OS(WINDOWS) - Any version of Windows */ | 369 /* OS(WINDOWS) - Any version of Windows */ |
370 #if defined(WIN32) || defined(_WIN32) | 370 #if defined(WIN32) || defined(_WIN32) |
371 #define WTF_OS_WINDOWS 1 | 371 #define WTF_OS_WINDOWS 1 |
372 #endif | 372 #endif |
373 | 373 |
374 #define WTF_OS_WIN ERROR "USE WINDOWS WITH OS NOT WIN" | |
375 #define WTF_OS_MAC ERROR "USE MAC_OS_X WITH OS NOT MAC" | |
376 | |
377 /* OS(UNIX) - Any Unix-like system */ | 374 /* OS(UNIX) - Any Unix-like system */ |
378 #if OS(AIX) \ | 375 #if OS(AIX) \ |
379 || OS(ANDROID) \ | 376 || OS(ANDROID) \ |
380 || OS(DARWIN) \ | 377 || OS(DARWIN) \ |
381 || OS(FREEBSD) \ | 378 || OS(FREEBSD) \ |
382 || OS(HURD) \ | 379 || OS(HURD) \ |
383 || OS(LINUX) \ | 380 || OS(LINUX) \ |
384 || OS(NETBSD) \ | 381 || OS(NETBSD) \ |
385 || OS(OPENBSD) \ | 382 || OS(OPENBSD) \ |
386 || OS(QNX) \ | 383 || OS(QNX) \ |
387 || OS(SOLARIS) \ | 384 || OS(SOLARIS) \ |
388 || defined(unix) \ | 385 || defined(unix) \ |
389 || defined(__unix) \ | 386 || defined(__unix) \ |
390 || defined(__unix__) | 387 || defined(__unix__) |
391 #define WTF_OS_UNIX 1 | 388 #define WTF_OS_UNIX 1 |
392 #endif | 389 #endif |
393 | 390 |
394 /* Operating environments */ | 391 /* Operating environments */ |
395 | 392 |
396 /* Graphics engines */ | 393 #if OS(ANDROID) |
397 | |
398 #if OS(DARWIN) | |
399 #define WTF_USE_ICCJPEG 1 | |
400 #define WTF_USE_QCMSLIB 1 | |
401 #elif OS(ANDROID) | |
402 #define WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION 1 | 394 #define WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION 1 |
403 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_DITHERING 1 | 395 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_DITHERING 1 |
404 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_FANCY_UPSAMPLING 1 | 396 #define WTF_USE_LOW_QUALITY_IMAGE_NO_JPEG_FANCY_UPSAMPLING 1 |
405 #else | 397 #else |
406 #define WTF_USE_ICCJPEG 1 | 398 #define WTF_USE_ICCJPEG 1 |
407 #define WTF_USE_QCMSLIB 1 | 399 #define WTF_USE_QCMSLIB 1 |
408 #endif | 400 #endif |
409 | 401 |
410 /* On Windows, use QueryPerformanceCounter by default */ | |
411 #if OS(WINDOWS) | |
412 #define WTF_USE_QUERY_PERFORMANCE_COUNTER 1 | |
413 #endif | |
414 | |
415 #define WTF_USE_ICU_UNICODE 1 | 402 #define WTF_USE_ICU_UNICODE 1 |
416 | 403 |
417 #if OS(DARWIN) | 404 #if OS(DARWIN) |
418 #define WTF_USE_CF 1 | 405 #define WTF_USE_CF 1 |
419 #define WTF_USE_WK_SCROLLBAR_PAINTER 1 | 406 #define WTF_USE_WK_SCROLLBAR_PAINTER 1 |
420 | 407 |
421 /* We can't override the global operator new and delete on OS(DARWIN) because | 408 /* We can't override the global operator new and delete on OS(DARWIN) because |
422 * some object are allocated by WebKit and deallocated by the embedder. */ | 409 * some object are allocated by WebKit and deallocated by the embedder. */ |
423 #else /* !OS(DARWIN) */ | 410 #else /* !OS(DARWIN) */ |
424 /* On non-OS(DARWIN), the "system malloc" is actually TCMalloc anyway, so there'
s | 411 /* On non-OS(DARWIN), the "system malloc" is actually TCMalloc anyway, so there'
s |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 #endif | 453 #endif |
467 #endif | 454 #endif |
468 | 455 |
469 #if !OS(WINDOWS) && !OS(SOLARIS) && !OS(ANDROID) | 456 #if !OS(WINDOWS) && !OS(SOLARIS) && !OS(ANDROID) |
470 #define HAVE_TM_GMTOFF 1 | 457 #define HAVE_TM_GMTOFF 1 |
471 #define HAVE_TM_ZONE 1 | 458 #define HAVE_TM_ZONE 1 |
472 #define HAVE_TIMEGM 1 | 459 #define HAVE_TIMEGM 1 |
473 #endif | 460 #endif |
474 | 461 |
475 #if OS(DARWIN) | 462 #if OS(DARWIN) |
476 | |
477 #define HAVE_MERGESORT 1 | 463 #define HAVE_MERGESORT 1 |
478 #define HAVE_SYS_TIMEB_H 1 | 464 #define HAVE_SYS_TIMEB_H 1 |
479 #define WTF_USE_ACCELERATE 1 | 465 #define WTF_USE_ACCELERATE 1 |
480 | |
481 #define HAVE_DISPATCH_H 1 | 466 #define HAVE_DISPATCH_H 1 |
482 #define HAVE_MADV_FREE 1 | 467 #define HAVE_MADV_FREE 1 |
483 #define HAVE_PTHREAD_SETNAME_NP 1 | 468 #define HAVE_PTHREAD_SETNAME_NP 1 |
484 | |
485 #define HAVE_HOSTED_CORE_ANIMATION 1 | 469 #define HAVE_HOSTED_CORE_ANIMATION 1 |
486 #define HAVE_MADV_FREE_REUSE 1 | 470 #define HAVE_MADV_FREE_REUSE 1 |
487 | |
488 #endif /* OS(DARWIN) */ | 471 #endif /* OS(DARWIN) */ |
489 | 472 |
490 #if OS(WINDOWS) | 473 #if OS(WINDOWS) |
491 #define HAVE_SYS_TIMEB_H 1 | 474 #define HAVE_SYS_TIMEB_H 1 |
492 #define HAVE_ALIGNED_MALLOC 1 | 475 #define HAVE_ALIGNED_MALLOC 1 |
493 #define HAVE_ISDEBUGGERPRESENT 1 | 476 #define HAVE_ISDEBUGGERPRESENT 1 |
494 #define HAVE_VIRTUALALLOC 1 | 477 #define HAVE_VIRTUALALLOC 1 |
495 #endif | 478 #endif |
496 | 479 |
497 /* FIXME: When all platforms' compositors can compute their own filter outsets,
we should remove this define. | 480 /* FIXME: When all platforms' compositors can compute their own filter outsets,
we should remove this define. |
498 https://bugs.webkit.org/show_bug.cgi?id=112830 */ | 481 https://bugs.webkit.org/show_bug.cgi?id=112830 */ |
499 #if USE(CG) | 482 #if USE(CG) |
500 #define HAVE_COMPOSITOR_FILTER_OUTSETS 1 | 483 #define HAVE_COMPOSITOR_FILTER_OUTSETS 1 |
501 #endif | 484 #endif |
502 | 485 |
503 #if !defined(WTF_USE_3D_GRAPHICS) | 486 #if !defined(WTF_USE_3D_GRAPHICS) |
504 #define WTF_USE_3D_GRAPHICS 1 | 487 #define WTF_USE_3D_GRAPHICS 1 |
505 #endif | 488 #endif |
506 | 489 |
507 #if !defined(ENABLE_THREADING_LIBDISPATCH) && HAVE(DISPATCH_H) | 490 #if !defined(ENABLE_THREADING_LIBDISPATCH) && HAVE(DISPATCH_H) |
508 #define ENABLE_THREADING_LIBDISPATCH 1 | 491 #define ENABLE_THREADING_LIBDISPATCH 1 |
509 #elif !defined(ENABLE_THREADING_OPENMP) && defined(_OPENMP) | 492 #elif !defined(ENABLE_THREADING_OPENMP) && defined(_OPENMP) |
510 #define ENABLE_THREADING_OPENMP 1 | 493 #define ENABLE_THREADING_OPENMP 1 |
511 #elif !defined(THREADING_GENERIC) | 494 #elif !defined(THREADING_GENERIC) |
512 #define ENABLE_THREADING_GENERIC 1 | 495 #define ENABLE_THREADING_GENERIC 1 |
513 #endif | 496 #endif |
514 | 497 |
515 #endif /* WTF_Platform_h */ | 498 #endif /* WTF_Platform_h */ |
OLD | NEW |