WTF should know about Language
https://bugs.webkit.org/show_bug.cgi?id=157756
Source/JavaScriptCore:
Reviewed by Geoffrey Garen.
Teach our scripts that a ObjC class beginning with WTF is totally cool.
* JavaScriptCore.xcodeproj/project.pbxproj:
Source/WebCore:
Reviewed by Geoffrey Garen.
No new tests because this does not change behavior.
This change is all about moving some language functionality to WTF. Quoting the WTF
ChangeLog, this contains two changes:
- Move everything that WebCore's logic for getting the platform user preferred language
depended on into WTF. This means CFBundleSPI.h and BlockObjCExceptions.h|cpp.
- Move WebCore::platformUserPreferredLanguages() to WTF::platformUserPreferredLanguages().
This is needed by https://bugs.webkit.org/show_bug.cgi?id=157755, which will make JSC
use this to detect the platform user preferred language when running standalone.
The changes in WebCore are mostly about rewiring #includes and #imports and removing the
code that we moved to WTF. But there is one logic change: previously,
platformUserPreferredLanguages() would call WebCore::languageDidChange(). It can't do that
directly anymore, but WTF gives WebCore some API for registering the callback. So in
Language.cpp we now register languageDidChange anytime we do something that would
necessitate it, like calling platformUserPreferredLanguages(). This also registers the
callback inside addLanguageChangeObserver(), since it's possible for that to be called
after JSC had called platformUserPreferredLanguages() but before WebCore does so.
* PlatformEfl.cmake:
* PlatformGTK.cmake:
* PlatformMac.cmake:
* PlatformWin.cmake:
* WebCore.xcodeproj/project.pbxproj:
* bindings/objc/DOMCustomXPathNSResolver.mm:
* editing/ios/EditorIOS.mm:
* editing/mac/DictionaryLookup.mm:
* editing/mac/EditorMac.mm:
* page/CaptionUserPreferencesMediaAF.cpp:
* page/ios/EventHandlerIOS.mm:
* page/ios/FrameIOS.mm:
* page/mac/ChromeMac.mm:
* page/mac/EventHandlerMac.mm:
* platform/Language.cpp:
(WebCore::registerLanguageDidChangeCallbackIfNecessary):
(WebCore::observerMap):
(WebCore::addLanguageChangeObserver):
(WebCore::overrideUserPreferredLanguages):
(WebCore::userPreferredLanguages):
* platform/Language.h:
* platform/cocoa/ContentFilterUnblockHandlerCocoa.mm:
* platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm:
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
* platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
* platform/graphics/ca/cocoa/PlatformCAFiltersCocoa.mm:
* platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm:
* platform/graphics/cocoa/FontCocoa.mm:
* platform/graphics/mac/ColorMac.mm:
* platform/graphics/mac/GraphicsContext3DMac.mm:
* platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
* platform/ios/PlatformSpeechSynthesizerIOS.mm:
* platform/ios/ScrollViewIOS.mm:
* platform/ios/WidgetIOS.mm:
* platform/mac/BlockExceptions.h: Removed.
* platform/mac/BlockExceptions.mm: Removed.
* platform/mac/CursorMac.mm:
* platform/mac/Language.mm: Removed.
* platform/mac/ScrollAnimatorMac.mm:
* platform/mac/ScrollViewMac.mm:
* platform/mac/ScrollbarThemeMac.mm:
* platform/mac/ThemeMac.mm:
* platform/mac/WidgetMac.mm:
* platform/mediastream/mac/AVVideoCaptureSource.mm:
* platform/network/mac/CookieJarMac.mm:
* platform/network/mac/ResourceErrorMac.mm:
* platform/network/mac/ResourceHandleMac.mm:
* platform/spi/cf/CFBundleSPI.h: Removed.
* platform/unix/LanguageUnix.cpp: Removed.
* platform/win/LanguageWin.cpp: Removed.
Source/WebKit/mac:
Reviewed by Geoffrey Garen.
Rewires a bunch of includes/imports.
* WebCoreSupport/PopupMenuMac.mm:
* WebCoreSupport/WebChromeClient.mm:
* WebCoreSupport/WebFrameLoaderClient.mm:
* WebCoreSupport/WebGeolocationClient.mm:
* WebCoreSupport/WebNotificationClient.mm:
* WebCoreSupport/WebPlatformStrategies.mm:
* WebCoreSupport/WebUserMediaClient.mm:
* WebCoreSupport/WebVisitedLinkStore.mm:
* WebView/WebHTMLView.mm:
Source/WebKit2:
Reviewed by Geoffrey Garen and Alexey Proskuryakov.
Rewires a bunch of includes/imports.
* Shared/mac/RemoteLayerTreePropertyApplier.mm:
* UIProcess/Launcher/mac/ProcessLauncherMac.mm:
* UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm:
* WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm:
Source/WTF:
Reviewed by Geoffrey Garen.
This contains two changes:
- Move everything that WebCore's logic for getting the platform user preferred language
depended on into WTF. This means CFBundleSPI.h and BlockObjCExceptions.h|cpp.
- Move WebCore::platformUserPreferredLanguages() to WTF::platformUserPreferredLanguages().
This is needed by https://bugs.webkit.org/show_bug.cgi?id=157755, which will make JSC
use this to detect the platform user preferred language when running standalone.
Moving the dependencies accounts for a huge chunk of this change, since we have to rewire
all of the references to those headers in all of WebKit.
Moving platformUserPreferredLanguages() is mostly easy except for the weird callback.
That function would call languageDidChange(), which needs to stay in WebCore. So, this
gives WebCore the ability to register a languageDidChange callback. Other than this new
logic, the code being added to WTF is just being lifted out of WebCore.
* WTF.xcodeproj/project.pbxproj:
* wtf/BlockObjCExceptions.h: Added.
* wtf/BlockObjCExceptions.mm: Added.
(ReportBlockedObjCException):
* wtf/PlatformEfl.cmake:
* wtf/PlatformGTK.cmake:
* wtf/PlatformJSCOnly.cmake:
* wtf/PlatformMac.cmake:
* wtf/PlatformUserPreferredLanguages.h: Added.
* wtf/PlatformUserPreferredLanguagesMac.mm: Added.
(WTF::setPlatformUserPreferredLanguagesChangedCallback):
(WTF::preferredLanguages):
(+[WTFLanguageChangeObserver languagePreferencesDidChange:]):
(WTF::httpStyleLanguageCode):
(WTF::isValidICUCountryCode):
(WTF::platformUserPreferredLanguages):
* wtf/PlatformUserPreferredLanguagesUnix.cpp: Added.
(WTF::setPlatformUserPreferredLanguagesChangedCallback):
(WTF::platformLanguage):
(WTF::platformUserPreferredLanguages):
* wtf/PlatformUserPreferredLanguagesWin.cpp: Added.
(WTF::setPlatformUserPreferredLanguagesChangedCallback):
(WTF::localeInfo):
(WTF::platformLanguage):
(WTF::platformUserPreferredLanguages):
* wtf/PlatformWin.cmake:
* wtf/spi/cf: Added.
* wtf/spi/cf/CFBundleSPI.h: Added.
Canonical link: https://commits.webkit.org/175929@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@201038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-05-17 19:38:51 +00:00
|
|
|
list(APPEND WTF_SOURCES
|
2017-03-16 03:15:03 +00:00
|
|
|
generic/WorkQueueGeneric.cpp
|
WTF should know about Language
https://bugs.webkit.org/show_bug.cgi?id=157756
Source/JavaScriptCore:
Reviewed by Geoffrey Garen.
Teach our scripts that a ObjC class beginning with WTF is totally cool.
* JavaScriptCore.xcodeproj/project.pbxproj:
Source/WebCore:
Reviewed by Geoffrey Garen.
No new tests because this does not change behavior.
This change is all about moving some language functionality to WTF. Quoting the WTF
ChangeLog, this contains two changes:
- Move everything that WebCore's logic for getting the platform user preferred language
depended on into WTF. This means CFBundleSPI.h and BlockObjCExceptions.h|cpp.
- Move WebCore::platformUserPreferredLanguages() to WTF::platformUserPreferredLanguages().
This is needed by https://bugs.webkit.org/show_bug.cgi?id=157755, which will make JSC
use this to detect the platform user preferred language when running standalone.
The changes in WebCore are mostly about rewiring #includes and #imports and removing the
code that we moved to WTF. But there is one logic change: previously,
platformUserPreferredLanguages() would call WebCore::languageDidChange(). It can't do that
directly anymore, but WTF gives WebCore some API for registering the callback. So in
Language.cpp we now register languageDidChange anytime we do something that would
necessitate it, like calling platformUserPreferredLanguages(). This also registers the
callback inside addLanguageChangeObserver(), since it's possible for that to be called
after JSC had called platformUserPreferredLanguages() but before WebCore does so.
* PlatformEfl.cmake:
* PlatformGTK.cmake:
* PlatformMac.cmake:
* PlatformWin.cmake:
* WebCore.xcodeproj/project.pbxproj:
* bindings/objc/DOMCustomXPathNSResolver.mm:
* editing/ios/EditorIOS.mm:
* editing/mac/DictionaryLookup.mm:
* editing/mac/EditorMac.mm:
* page/CaptionUserPreferencesMediaAF.cpp:
* page/ios/EventHandlerIOS.mm:
* page/ios/FrameIOS.mm:
* page/mac/ChromeMac.mm:
* page/mac/EventHandlerMac.mm:
* platform/Language.cpp:
(WebCore::registerLanguageDidChangeCallbackIfNecessary):
(WebCore::observerMap):
(WebCore::addLanguageChangeObserver):
(WebCore::overrideUserPreferredLanguages):
(WebCore::userPreferredLanguages):
* platform/Language.h:
* platform/cocoa/ContentFilterUnblockHandlerCocoa.mm:
* platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm:
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
* platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
* platform/graphics/ca/cocoa/PlatformCAFiltersCocoa.mm:
* platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm:
* platform/graphics/cocoa/FontCocoa.mm:
* platform/graphics/mac/ColorMac.mm:
* platform/graphics/mac/GraphicsContext3DMac.mm:
* platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
* platform/ios/PlatformSpeechSynthesizerIOS.mm:
* platform/ios/ScrollViewIOS.mm:
* platform/ios/WidgetIOS.mm:
* platform/mac/BlockExceptions.h: Removed.
* platform/mac/BlockExceptions.mm: Removed.
* platform/mac/CursorMac.mm:
* platform/mac/Language.mm: Removed.
* platform/mac/ScrollAnimatorMac.mm:
* platform/mac/ScrollViewMac.mm:
* platform/mac/ScrollbarThemeMac.mm:
* platform/mac/ThemeMac.mm:
* platform/mac/WidgetMac.mm:
* platform/mediastream/mac/AVVideoCaptureSource.mm:
* platform/network/mac/CookieJarMac.mm:
* platform/network/mac/ResourceErrorMac.mm:
* platform/network/mac/ResourceHandleMac.mm:
* platform/spi/cf/CFBundleSPI.h: Removed.
* platform/unix/LanguageUnix.cpp: Removed.
* platform/win/LanguageWin.cpp: Removed.
Source/WebKit/mac:
Reviewed by Geoffrey Garen.
Rewires a bunch of includes/imports.
* WebCoreSupport/PopupMenuMac.mm:
* WebCoreSupport/WebChromeClient.mm:
* WebCoreSupport/WebFrameLoaderClient.mm:
* WebCoreSupport/WebGeolocationClient.mm:
* WebCoreSupport/WebNotificationClient.mm:
* WebCoreSupport/WebPlatformStrategies.mm:
* WebCoreSupport/WebUserMediaClient.mm:
* WebCoreSupport/WebVisitedLinkStore.mm:
* WebView/WebHTMLView.mm:
Source/WebKit2:
Reviewed by Geoffrey Garen and Alexey Proskuryakov.
Rewires a bunch of includes/imports.
* Shared/mac/RemoteLayerTreePropertyApplier.mm:
* UIProcess/Launcher/mac/ProcessLauncherMac.mm:
* UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm:
* WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm:
Source/WTF:
Reviewed by Geoffrey Garen.
This contains two changes:
- Move everything that WebCore's logic for getting the platform user preferred language
depended on into WTF. This means CFBundleSPI.h and BlockObjCExceptions.h|cpp.
- Move WebCore::platformUserPreferredLanguages() to WTF::platformUserPreferredLanguages().
This is needed by https://bugs.webkit.org/show_bug.cgi?id=157755, which will make JSC
use this to detect the platform user preferred language when running standalone.
Moving the dependencies accounts for a huge chunk of this change, since we have to rewire
all of the references to those headers in all of WebKit.
Moving platformUserPreferredLanguages() is mostly easy except for the weird callback.
That function would call languageDidChange(), which needs to stay in WebCore. So, this
gives WebCore the ability to register a languageDidChange callback. Other than this new
logic, the code being added to WTF is just being lifted out of WebCore.
* WTF.xcodeproj/project.pbxproj:
* wtf/BlockObjCExceptions.h: Added.
* wtf/BlockObjCExceptions.mm: Added.
(ReportBlockedObjCException):
* wtf/PlatformEfl.cmake:
* wtf/PlatformGTK.cmake:
* wtf/PlatformJSCOnly.cmake:
* wtf/PlatformMac.cmake:
* wtf/PlatformUserPreferredLanguages.h: Added.
* wtf/PlatformUserPreferredLanguagesMac.mm: Added.
(WTF::setPlatformUserPreferredLanguagesChangedCallback):
(WTF::preferredLanguages):
(+[WTFLanguageChangeObserver languagePreferencesDidChange:]):
(WTF::httpStyleLanguageCode):
(WTF::isValidICUCountryCode):
(WTF::platformUserPreferredLanguages):
* wtf/PlatformUserPreferredLanguagesUnix.cpp: Added.
(WTF::setPlatformUserPreferredLanguagesChangedCallback):
(WTF::platformLanguage):
(WTF::platformUserPreferredLanguages):
* wtf/PlatformUserPreferredLanguagesWin.cpp: Added.
(WTF::setPlatformUserPreferredLanguagesChangedCallback):
(WTF::localeInfo):
(WTF::platformLanguage):
(WTF::platformUserPreferredLanguages):
* wtf/PlatformWin.cmake:
* wtf/spi/cf: Added.
* wtf/spi/cf/CFBundleSPI.h: Added.
Canonical link: https://commits.webkit.org/175929@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@201038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-05-17 19:38:51 +00:00
|
|
|
)
|
|
|
|
|
2017-03-16 11:55:13 +00:00
|
|
|
if (WIN32)
|
|
|
|
list(APPEND WTF_SOURCES
|
2021-02-23 17:23:32 +00:00
|
|
|
text/win/StringWin.cpp
|
2018-01-30 20:02:17 +00:00
|
|
|
text/win/TextBreakIteratorInternalICUWin.cpp
|
|
|
|
|
2017-04-29 18:03:22 +00:00
|
|
|
win/CPUTimeWin.cpp
|
2019-01-28 21:35:09 +00:00
|
|
|
win/DbgHelperWin.cpp
|
|
|
|
win/FileSystemWin.cpp
|
2017-09-07 23:11:21 +00:00
|
|
|
win/LanguageWin.cpp
|
2021-08-09 21:14:53 +00:00
|
|
|
win/LoggingWin.cpp
|
2018-10-01 12:33:05 +00:00
|
|
|
win/MainThreadWin.cpp
|
2019-01-29 04:00:08 +00:00
|
|
|
win/OSAllocatorWin.cpp
|
2019-01-28 21:35:09 +00:00
|
|
|
win/PathWalker.cpp
|
2019-01-29 04:00:08 +00:00
|
|
|
win/ThreadingWin.cpp
|
2017-03-16 11:55:13 +00:00
|
|
|
)
|
2018-03-13 03:19:21 +00:00
|
|
|
list(APPEND WTF_PUBLIC_HEADERS
|
2021-02-23 17:23:32 +00:00
|
|
|
text/win/WCharStringExtras.h
|
|
|
|
|
2019-01-28 21:35:09 +00:00
|
|
|
win/DbgHelperWin.h
|
|
|
|
win/PathWalker.h
|
2018-02-27 22:12:59 +00:00
|
|
|
)
|
2019-01-28 21:35:09 +00:00
|
|
|
list(APPEND WTF_LIBRARIES
|
2019-01-29 04:00:08 +00:00
|
|
|
DbgHelp
|
2019-01-28 21:35:09 +00:00
|
|
|
shlwapi
|
2019-01-29 04:00:08 +00:00
|
|
|
winmm
|
2019-01-28 21:35:09 +00:00
|
|
|
)
|
2017-03-16 11:55:13 +00:00
|
|
|
else ()
|
|
|
|
list(APPEND WTF_SOURCES
|
2018-10-01 12:33:05 +00:00
|
|
|
generic/MainThreadGeneric.cpp
|
|
|
|
|
2019-01-29 04:00:08 +00:00
|
|
|
posix/OSAllocatorPOSIX.cpp
|
|
|
|
posix/ThreadingPOSIX.cpp
|
2019-01-28 21:35:09 +00:00
|
|
|
|
2018-01-30 20:02:17 +00:00
|
|
|
text/unix/TextBreakIteratorInternalICUUnix.cpp
|
|
|
|
|
2017-09-07 23:11:21 +00:00
|
|
|
unix/LanguageUnix.cpp
|
2021-08-09 21:14:53 +00:00
|
|
|
unix/LoggingUnix.cpp
|
2017-03-16 11:55:13 +00:00
|
|
|
)
|
2018-06-30 20:53:56 +00:00
|
|
|
if (WTF_OS_FUCHSIA)
|
|
|
|
list(APPEND WTF_SOURCES
|
|
|
|
fuchsia/CPUTimeFuchsia.cpp
|
|
|
|
)
|
|
|
|
else ()
|
|
|
|
list(APPEND WTF_SOURCES
|
2021-06-17 20:49:31 +00:00
|
|
|
posix/CPUTimePOSIX.cpp
|
2018-06-30 20:53:56 +00:00
|
|
|
)
|
|
|
|
endif ()
|
2020-06-12 20:52:02 +00:00
|
|
|
|
|
|
|
if (LOWERCASE_EVENT_LOOP_TYPE STREQUAL "glib")
|
|
|
|
list(APPEND WTF_SOURCES
|
|
|
|
glib/FileSystemGlib.cpp
|
|
|
|
)
|
|
|
|
else ()
|
|
|
|
list(APPEND WTF_SOURCES
|
|
|
|
posix/FileSystemPOSIX.cpp
|
|
|
|
|
|
|
|
unix/UniStdExtrasUnix.cpp
|
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
2017-03-16 11:55:13 +00:00
|
|
|
endif ()
|
|
|
|
|
2017-05-12 05:21:41 +00:00
|
|
|
if (WIN32)
|
|
|
|
list(APPEND WTF_SOURCES
|
|
|
|
win/MemoryFootprintWin.cpp
|
2021-02-23 17:23:32 +00:00
|
|
|
win/MemoryPressureHandlerWin.cpp
|
2017-05-12 05:21:41 +00:00
|
|
|
)
|
2019-01-28 21:35:09 +00:00
|
|
|
list(APPEND WTF_PUBLIC_HEADERS
|
|
|
|
win/Win32Handle.h
|
|
|
|
)
|
2017-05-12 07:48:33 +00:00
|
|
|
elseif (APPLE)
|
2019-04-09 19:32:08 +00:00
|
|
|
file(COPY mac/MachExceptions.defs DESTINATION ${WTF_DERIVED_SOURCES_DIR})
|
2018-01-19 21:19:27 +00:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT
|
2019-04-09 19:32:08 +00:00
|
|
|
${WTF_DERIVED_SOURCES_DIR}/MachExceptionsServer.h
|
|
|
|
${WTF_DERIVED_SOURCES_DIR}/mach_exc.h
|
|
|
|
${WTF_DERIVED_SOURCES_DIR}/mach_excServer.c
|
|
|
|
${WTF_DERIVED_SOURCES_DIR}/mach_excUser.c
|
2018-01-19 21:19:27 +00:00
|
|
|
MAIN_DEPENDENCY mac/MachExceptions.defs
|
2019-04-09 19:32:08 +00:00
|
|
|
WORKING_DIRECTORY ${WTF_DERIVED_SOURCES_DIR}
|
2018-01-19 21:19:27 +00:00
|
|
|
COMMAND mig -sheader MachExceptionsServer.h MachExceptions.defs
|
|
|
|
VERBATIM)
|
2017-05-12 05:21:41 +00:00
|
|
|
list(APPEND WTF_SOURCES
|
|
|
|
cocoa/MemoryFootprintCocoa.cpp
|
2021-03-22 20:30:11 +00:00
|
|
|
|
|
|
|
generic/MemoryPressureHandlerGeneric.cpp
|
|
|
|
|
2019-04-09 19:32:08 +00:00
|
|
|
${WTF_DERIVED_SOURCES_DIR}/mach_excServer.c
|
|
|
|
${WTF_DERIVED_SOURCES_DIR}/mach_excUser.c
|
2017-05-12 05:21:41 +00:00
|
|
|
)
|
2019-08-14 16:39:15 +00:00
|
|
|
list(APPEND WTF_PUBLIC_HEADERS
|
|
|
|
spi/darwin/ProcessMemoryFootprint.h
|
|
|
|
)
|
2018-08-23 03:01:40 +00:00
|
|
|
elseif (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
2017-05-12 05:21:41 +00:00
|
|
|
list(APPEND WTF_SOURCES
|
2018-08-23 03:01:40 +00:00
|
|
|
linux/CurrentProcessMemoryStatus.cpp
|
2017-05-12 05:21:41 +00:00
|
|
|
linux/MemoryFootprintLinux.cpp
|
2020-05-09 01:13:46 +00:00
|
|
|
|
|
|
|
unix/MemoryPressureHandlerUnix.cpp
|
2018-08-23 03:01:40 +00:00
|
|
|
)
|
|
|
|
list(APPEND WTF_PUBLIC_HEADERS
|
2019-09-20 15:07:19 +00:00
|
|
|
linux/ProcessMemoryFootprint.h
|
2018-08-23 03:01:40 +00:00
|
|
|
linux/CurrentProcessMemoryStatus.h
|
|
|
|
)
|
2020-05-09 01:13:46 +00:00
|
|
|
elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
|
|
|
list(APPEND WTF_SOURCES
|
|
|
|
generic/MemoryFootprintGeneric.cpp
|
|
|
|
|
|
|
|
unix/MemoryPressureHandlerUnix.cpp
|
|
|
|
)
|
2018-08-23 03:01:40 +00:00
|
|
|
else ()
|
|
|
|
list(APPEND WTF_SOURCES
|
|
|
|
generic/MemoryFootprintGeneric.cpp
|
|
|
|
generic/MemoryPressureHandlerGeneric.cpp
|
2017-05-12 05:21:41 +00:00
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
2016-04-18 22:59:31 +00:00
|
|
|
if (LOWERCASE_EVENT_LOOP_TYPE STREQUAL "glib")
|
2016-03-13 22:30:13 +00:00
|
|
|
list(APPEND WTF_SOURCES
|
|
|
|
glib/GRefPtr.cpp
|
|
|
|
glib/RunLoopGLib.cpp
|
|
|
|
)
|
2020-06-12 20:52:02 +00:00
|
|
|
list(APPEND WTF_PUBLIC_HEADERS
|
|
|
|
glib/GRefPtr.h
|
|
|
|
glib/GTypedefs.h
|
|
|
|
glib/RunLoopSourcePriority.h
|
|
|
|
)
|
|
|
|
|
|
|
|
if (ENABLE_REMOTE_INSPECTOR)
|
|
|
|
list(APPEND WTF_SOURCES
|
|
|
|
glib/GSocketMonitor.cpp
|
|
|
|
glib/SocketConnection.cpp
|
|
|
|
)
|
|
|
|
list(APPEND WTF_PUBLIC_HEADERS
|
|
|
|
glib/GSocketMonitor.h
|
|
|
|
glib/GUniquePtr.h
|
|
|
|
glib/SocketConnection.h
|
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
2016-03-13 22:30:13 +00:00
|
|
|
list(APPEND WTF_SYSTEM_INCLUDE_DIRECTORIES
|
2020-06-12 20:52:02 +00:00
|
|
|
${GIO_UNIX_INCLUDE_DIRS}
|
2016-03-13 22:30:13 +00:00
|
|
|
${GLIB_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
list(APPEND WTF_LIBRARIES
|
2020-06-12 20:52:02 +00:00
|
|
|
${GIO_UNIX_LIBRARIES}
|
2016-03-13 22:30:13 +00:00
|
|
|
${GLIB_GIO_LIBRARIES}
|
|
|
|
${GLIB_GOBJECT_LIBRARIES}
|
|
|
|
${GLIB_LIBRARIES}
|
|
|
|
)
|
|
|
|
else ()
|
|
|
|
list(APPEND WTF_SOURCES
|
2016-04-18 22:59:31 +00:00
|
|
|
generic/RunLoopGeneric.cpp
|
2016-03-13 22:30:13 +00:00
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
list(APPEND WTF_LIBRARIES
|
2020-02-17 15:37:39 +00:00
|
|
|
Threads::Threads
|
2016-03-13 22:30:13 +00:00
|
|
|
)
|