https://bugs.webkit.org/show_bug.cgi?id=170887
Reviewed by Alex Christensen.
.:
Align ICU header configuration to MacCMake port.
* Source/cmake/OptionsJSCOnly.cmake:
Source/JavaScriptCore:
Align ICU header configuration to MacCMake port.
* PlatformJSCOnly.cmake:
Source/WTF:
JSCOnly port does not use mac/MainThread.cpp.
We change the ifdef gurard to use generic implementaion in JSCOnly on macOS.
* wtf/MainThread.cpp:
* wtf/PlatformJSCOnly.cmake:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@215408
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2017-04-17 Yusuke Suzuki <utatane.tea@gmail.com>
+
+ [JSCOnly] Fix build failures in macOS
+ https://bugs.webkit.org/show_bug.cgi?id=170887
+
+ Reviewed by Alex Christensen.
+
+ Align ICU header configuration to MacCMake port.
+
+ * Source/cmake/OptionsJSCOnly.cmake:
+
2017-04-16 Sam Weinig <sam@webkit.org>
[WebIDL] Switch IDLAttributes.txt over to a more structured format so that more information can be added for each attribute
+2017-04-17 Yusuke Suzuki <utatane.tea@gmail.com>
+
+ [JSCOnly] Fix build failures in macOS
+ https://bugs.webkit.org/show_bug.cgi?id=170887
+
+ Reviewed by Alex Christensen.
+
+ Align ICU header configuration to MacCMake port.
+
+ * PlatformJSCOnly.cmake:
+
2017-04-17 JF Bastien <jfbastien@apple.com>
B3: don't allow unsigned offsets in Value
${GLIB_LIBRARIES}
)
endif ()
+
+if (APPLE)
+ list(APPEND JavaScriptCore_INCLUDE_DIRECTORIES
+ ${JAVASCRIPTCORE_DIR}/icu
+ )
+endif ()
+2017-04-17 Yusuke Suzuki <utatane.tea@gmail.com>
+
+ [JSCOnly] Fix build failures in macOS
+ https://bugs.webkit.org/show_bug.cgi?id=170887
+
+ Reviewed by Alex Christensen.
+
+ JSCOnly port does not use mac/MainThread.cpp.
+ We change the ifdef gurard to use generic implementaion in JSCOnly on macOS.
+
+ * wtf/MainThread.cpp:
+ * wtf/PlatformJSCOnly.cmake:
+
2017-04-17 JF Bastien <jfbastien@apple.com>
B3: don't allow unsigned offsets in Value
namespace WTF {
static bool callbacksPaused; // This global variable is only accessed from main thread.
-#if !OS(DARWIN) && !USE(GLIB)
+#if !PLATFORM(COCOA) && !USE(GLIB)
static ThreadIdentifier mainThreadIdentifier;
#endif
return functionQueue;
}
-#if OS(DARWIN) || USE(GLIB)
+#if PLATFORM(COCOA) || USE(GLIB)
static pthread_once_t initializeMainThreadKeyOnce = PTHREAD_ONCE_INIT;
static void initializeMainThreadOnce()
scheduleDispatchFunctionsOnMainThread();
}
-#if !OS(DARWIN) && !USE(GLIB)
+#if !PLATFORM(COCOA) && !USE(GLIB)
bool isMainThread()
{
return currentThread() == mainThreadIdentifier;
list(APPEND WTF_LIBRARIES
${CMAKE_THREAD_LIBS_INIT}
)
+
+if (APPLE)
+ list(APPEND WTF_INCLUDE_DIRECTORIES
+ "${WTF_DIR}/icu"
+ )
+endif ()
if (NOT APPLE)
find_package(ICU REQUIRED)
else ()
- set(ICU_INCLUDE_DIRS
- "${WEBCORE_DIR}/icu"
- "${JAVASCRIPTCORE_DIR}/icu"
- "${WTF_DIR}/icu"
- )
set(ICU_LIBRARIES libicucore.dylib)
endif ()