Changeset 237069 in webkit


Ignore:
Timestamp:
Oct 12, 2018 9:57:02 AM (6 years ago)
Author:
ap@apple.com
Message:

Add PLATFORM(IOS_FAMILY) and OS(IOS_FAMILY)
https://bugs.webkit.org/show_bug.cgi?id=190477

Reviewed by Tim Horton.

Currently, PLATFORM(IOS) and OS(IOS) are true when building for any
TARGET_OS_IPHONE target, which is quite confusing. Add a better named alternative,
as a first step towards mass replacing PLATFORM(IOS). Can't so it all at once
because of dependencies in other source repositories.

  • wtf/Platform.h: Changed to the new name in this file though. Kept a few

instances that actually target iOS only, having a version check.

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r237059 r237069  
     12018-10-11  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Add PLATFORM(IOS_FAMILY) and OS(IOS_FAMILY)
     4        https://bugs.webkit.org/show_bug.cgi?id=190477
     5
     6        Reviewed by Tim Horton.
     7
     8        Currently, PLATFORM(IOS) and OS(IOS) are true when building for any
     9        TARGET_OS_IPHONE target, which is quite confusing. Add a better named alternative,
     10        as a first step towards mass replacing PLATFORM(IOS). Can't so it all at once
     11        because of dependencies in other source repositories.
     12
     13        * wtf/Platform.h: Changed to the new name in this file though. Kept a few
     14        instances that actually target iOS only, having a version check.
     15
    1162018-10-11  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
    217
  • trunk/Source/WTF/wtf/Platform.h

    r236773 r237069  
    371371#endif
    372372
    373 /* OS(IOS) - iOS */
    374 /* OS(MAC_OS_X) - Mac OS X (not including iOS) */
     373/* OS(IOS_FAMILY) - iOS family, including iOSMac */
     374/* OS(MAC_OS_X) - macOS (not including iOS family) */
    375375#if OS(DARWIN)
    376376#if TARGET_OS_IPHONE
    377377#define WTF_OS_IOS 1
     378#define WTF_OS_IOS_FAMILY 1
    378379#elif TARGET_OS_MAC
    379380#define WTF_OS_MAC_OS_X 1
     
    511512/* PLATFORM(MAC) */
    512513/* PLATFORM(IOS) */
     514/* PLATFORM(IOS_FAMILY) */
    513515/* PLATFORM(IOS_SIMULATOR) */
     516/* PLATFORM(IOS_FAMILY_SIMULATOR) */
    514517/* PLATFORM(WIN) */
    515518#if defined(BUILDING_GTK__)
     
    523526#elif OS(IOS)
    524527#define WTF_PLATFORM_IOS 1
     528#define WTF_PLATFORM_IOS_FAMILY 1
    525529#if TARGET_OS_SIMULATOR
    526530#define WTF_PLATFORM_IOS_SIMULATOR 1
     531#define WTF_PLATFORM_IOS_FAMILY_SIMULATOR 1
    527532#endif
    528533#if defined(TARGET_OS_IOSMAC) && TARGET_OS_IOSMAC
     
    534539
    535540/* PLATFORM(COCOA) */
    536 #if PLATFORM(MAC) || PLATFORM(IOS)
     541#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
    537542#define WTF_PLATFORM_COCOA 1
    538543#endif
     
    616621#endif /* PLATFORM(MAC) */
    617622
    618 #if PLATFORM(IOS)
     623#if PLATFORM(IOS_FAMILY)
    619624
    620625#define HAVE_NETWORK_EXTENSION 1
     
    632637#endif
    633638
    634 #endif /* PLATFORM(IOS) */
     639#endif /* PLATFORM(IOS_FAMILY) */
    635640
    636641#if !defined(HAVE_ACCESSIBILITY)
     
    689694#define USE_ACCELERATE 1
    690695#endif
    691 #if !PLATFORM(IOS)
     696#if !PLATFORM(IOS_FAMILY)
    692697#define HAVE_HOSTED_CORE_ANIMATION 1
    693698#endif
     
    775780
    776781/* The FTL is disabled on the iOS simulator, mostly for simplicity. */
    777 #if PLATFORM(IOS_SIMULATOR)
     782#if PLATFORM(IOS_FAMILY_SIMULATOR)
    778783#undef ENABLE_FTL_JIT
    779784#define ENABLE_FTL_JIT 0
     
    801806#endif
    802807/* Enable the DFG JIT on ARMv7.  Only tested on iOS, Linux, and FreeBSD. */
    803 #if (CPU(ARM_THUMB2) || CPU(ARM64)) && (PLATFORM(IOS) || OS(LINUX) || OS(FREEBSD))
     808#if (CPU(ARM_THUMB2) || CPU(ARM64)) && (PLATFORM(IOS_FAMILY) || OS(LINUX) || OS(FREEBSD))
    804809#define ENABLE_DFG_JIT 1
    805810#endif
     
    10321037/* CSS Selector JIT Compiler */
    10331038#if !defined(ENABLE_CSS_SELECTOR_JIT)
    1034 #if (CPU(X86_64) || CPU(ARM64) || (CPU(ARM_THUMB2) && PLATFORM(IOS))) && ENABLE(JIT) && (OS(DARWIN) || PLATFORM(GTK) || PLATFORM(WPE))
     1039#if (CPU(X86_64) || CPU(ARM64) || (CPU(ARM_THUMB2) && PLATFORM(IOS_FAMILY))) && ENABLE(JIT) && (OS(DARWIN) || PLATFORM(GTK) || PLATFORM(WPE))
    10351040#define ENABLE_CSS_SELECTOR_JIT 1
    10361041#else
     
    10391044#endif
    10401045
    1041 #if PLATFORM(IOS)
     1046#if PLATFORM(IOS_FAMILY)
    10421047#if !PLATFORM(WATCHOS) && !PLATFORM(APPLETV) && !PLATFORM(IOSMAC)
    10431048#define USE_QUICK_LOOK 1
     
    11491154#endif
    11501155
    1151 #if PLATFORM(IOS) || PLATFORM(MAC)
     1156#if PLATFORM(IOS_FAMILY) || PLATFORM(MAC)
    11521157#define USE_COREMEDIA 1
    11531158#define USE_VIDEOTOOLBOX 1
     
    11601165#endif
    11611166
    1162 #if PLATFORM(IOS) || PLATFORM(MAC)
     1167#if PLATFORM(IOS_FAMILY) || PLATFORM(MAC)
    11631168#define HAVE_AVFOUNDATION_MEDIA_SELECTION_GROUP 1
    11641169#endif
    11651170
    1166 #if PLATFORM(IOS) || PLATFORM(MAC)
     1171#if PLATFORM(IOS_FAMILY) || PLATFORM(MAC)
    11671172#define HAVE_AVFOUNDATION_LEGIBLE_OUTPUT_SUPPORT 1
    11681173#define HAVE_MEDIA_ACCESSIBILITY_FRAMEWORK 1
    11691174#endif
    11701175
    1171 #if PLATFORM(IOS) || PLATFORM(MAC)
     1176#if PLATFORM(IOS_FAMILY) || PLATFORM(MAC)
    11721177#define HAVE_AVFOUNDATION_LOADER_DELEGATE 1
    11731178#endif
     
    12211226#endif
    12221227
    1223 #if PLATFORM(MAC) || PLATFORM(IOS)
     1228#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
    12241229#define HAVE_AVASSETREADER 1
    12251230#endif
     
    12331238#endif
    12341239
    1235 #if PLATFORM(COCOA) && !PLATFORM(IOS_SIMULATOR)
     1240#if PLATFORM(COCOA) && !PLATFORM(IOS_FAMILY_SIMULATOR)
    12361241#define HAVE_IOSURFACE 1
    12371242#endif
    12381243
    1239 #if PLATFORM(IOS) && !PLATFORM(IOS_SIMULATOR) && !PLATFORM(IOSMAC)
     1244#if PLATFORM(IOS_FAMILY) && !PLATFORM(IOS_FAMILY_SIMULATOR) && !PLATFORM(IOSMAC)
    12401245#define HAVE_IOSURFACE_ACCELERATOR 1
    12411246#endif
     
    12841289#endif
    12851290
    1286 #if PLATFORM(MAC) || PLATFORM(IOS)
     1291#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
    12871292#define USE_OS_LOG 1
    12881293#if USE(APPLE_INTERNAL_SDK)
     
    13191324#endif
    13201325
    1321 #if PLATFORM(MAC) || PLATFORM(IOS)
     1326#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
    13221327#define USE_MEDIAREMOTE 1
    13231328#endif
     
    13631368#endif
    13641369
    1365 #if PLATFORM(COCOA) && USE(CA) && !PLATFORM(IOS_SIMULATOR)
     1370#if PLATFORM(COCOA) && USE(CA) && !PLATFORM(IOS_FAMILY_SIMULATOR)
    13661371#define USE_IOSURFACE_CANVAS_BACKING_STORE 1
    13671372#endif
Note: See TracChangeset for help on using the changeset viewer.