Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit 8232bf0

Browse files
Build is broken with EVENT_LOOP_TYPE=GLib
https://bugs.webkit.org/show_bug.cgi?id=212987 Reviewed by Konstantin Tokarev. .: * Source/cmake/OptionsJSCOnly.cmake: Add gio-unix as a required component of the GLib package, as it is needed for the remote inspector support with EVENT_LOOP_TYPE=GLib. Source/JavaScriptCore: * PlatformJSCOnly.cmake: Add sources needed to support the remote inspector to JavaScriptCore_SOURCES. Source/WTF: * wtf/CurrentTime.cpp: Make sure that <time.h> is included to get clock_gettime() and friends defined when USE_GLIB is disabled. * wtf/PlatformJSCOnly.cmake: Use FileSystemGLib instead of FileSystemPOSIX when EVENT_LOOP_TYPE=GLib is set, add missing sources needed when ENABLE_REMOTE_INSPECTOR is set. * wtf/glib/RunLoopSourcePriority.h: Use the same list of priorities for WPE and JSCOnly. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@262973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent fc64649 commit 8232bf0

File tree

8 files changed

+85
-4
lines changed

8 files changed

+85
-4
lines changed

ChangeLog

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2020-06-12 Adrian Perez de Castro <[email protected]>
2+
3+
Build is broken with EVENT_LOOP_TYPE=GLib
4+
https://bugs.webkit.org/show_bug.cgi?id=212987
5+
6+
Reviewed by Konstantin Tokarev.
7+
8+
* Source/cmake/OptionsJSCOnly.cmake: Add gio-unix as a required component of the GLib
9+
package, as it is needed for the remote inspector support with EVENT_LOOP_TYPE=GLib.
10+
111
2020-06-12 Carlos Garcia Campos <[email protected]>
212

313
[GTK4] Get MiniBrowser ready for GTK4

Source/JavaScriptCore/ChangeLog

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2020-06-12 Adrian Perez de Castro <[email protected]>
2+
3+
Build is broken with EVENT_LOOP_TYPE=GLib
4+
https://bugs.webkit.org/show_bug.cgi?id=212987
5+
6+
Reviewed by Konstantin Tokarev.
7+
8+
* PlatformJSCOnly.cmake: Add sources needed to support the remote inspector to
9+
JavaScriptCore_SOURCES.
10+
111
2020-06-11 Saam Barati <[email protected]>
212

313
Linear Scan uses the wrong Interval for spills for tmps with roles of early def or late use

Source/JavaScriptCore/PlatformJSCOnly.cmake

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
add_definitions(-DSTATICALLY_LINKED_WITH_WTF)
22

3+
if (ENABLE_REMOTE_INSPECTOR)
4+
list(APPEND JavaScriptCore_SOURCES
5+
inspector/remote/RemoteConnectionToTarget.cpp
6+
inspector/remote/RemoteControllableTarget.cpp
7+
inspector/remote/RemoteInspectionTarget.cpp
8+
inspector/remote/RemoteInspector.cpp
9+
)
10+
endif ()
11+
312
if (USE_GLIB)
13+
if (ENABLE_REMOTE_INSPECTOR)
14+
list(APPEND JavaScriptCore_SOURCES
15+
inspector/remote/glib/RemoteInspectorGlib.cpp
16+
)
17+
endif ()
18+
419
list(APPEND JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES
520
${GLIB_INCLUDE_DIRS}
621
)

Source/WTF/ChangeLog

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
2020-06-12 Adrian Perez de Castro <[email protected]>
2+
3+
Build is broken with EVENT_LOOP_TYPE=GLib
4+
https://bugs.webkit.org/show_bug.cgi?id=212987
5+
6+
Reviewed by Konstantin Tokarev.
7+
8+
* wtf/CurrentTime.cpp: Make sure that <time.h> is included to get clock_gettime() and
9+
friends defined when USE_GLIB is disabled.
10+
* wtf/PlatformJSCOnly.cmake: Use FileSystemGLib instead of FileSystemPOSIX when
11+
EVENT_LOOP_TYPE=GLib is set, add missing sources needed when ENABLE_REMOTE_INSPECTOR
12+
is set.
13+
* wtf/glib/RunLoopSourcePriority.h: Use the same list of priorities for WPE and JSCOnly.
14+
115
2020-06-11 Alex Christensen <[email protected]>
216

317
Re-enable download resume tests

Source/WTF/wtf/CurrentTime.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
#include <time.h>
5454
#else
5555
#include <sys/time.h>
56+
#include <time.h>
5657
#endif
5758

5859
#if OS(FUCHSIA)

Source/WTF/wtf/PlatformJSCOnly.cmake

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,12 @@ else ()
3131
list(APPEND WTF_SOURCES
3232
generic/MainThreadGeneric.cpp
3333

34-
posix/FileSystemPOSIX.cpp
3534
posix/OSAllocatorPOSIX.cpp
3635
posix/ThreadingPOSIX.cpp
3736

3837
text/unix/TextBreakIteratorInternalICUUnix.cpp
3938

4039
unix/LanguageUnix.cpp
41-
unix/UniStdExtrasUnix.cpp
4240
)
4341
if (WTF_OS_FUCHSIA)
4442
list(APPEND WTF_SOURCES
@@ -49,6 +47,19 @@ else ()
4947
unix/CPUTimeUnix.cpp
5048
)
5149
endif ()
50+
51+
if (LOWERCASE_EVENT_LOOP_TYPE STREQUAL "glib")
52+
list(APPEND WTF_SOURCES
53+
glib/FileSystemGlib.cpp
54+
)
55+
else ()
56+
list(APPEND WTF_SOURCES
57+
posix/FileSystemPOSIX.cpp
58+
59+
unix/UniStdExtrasUnix.cpp
60+
)
61+
endif ()
62+
5263
endif ()
5364

5465
if (WIN32)
@@ -107,10 +118,30 @@ if (LOWERCASE_EVENT_LOOP_TYPE STREQUAL "glib")
107118
glib/GRefPtr.cpp
108119
glib/RunLoopGLib.cpp
109120
)
121+
list(APPEND WTF_PUBLIC_HEADERS
122+
glib/GRefPtr.h
123+
glib/GTypedefs.h
124+
glib/RunLoopSourcePriority.h
125+
)
126+
127+
if (ENABLE_REMOTE_INSPECTOR)
128+
list(APPEND WTF_SOURCES
129+
glib/GSocketMonitor.cpp
130+
glib/SocketConnection.cpp
131+
)
132+
list(APPEND WTF_PUBLIC_HEADERS
133+
glib/GSocketMonitor.h
134+
glib/GUniquePtr.h
135+
glib/SocketConnection.h
136+
)
137+
endif ()
138+
110139
list(APPEND WTF_SYSTEM_INCLUDE_DIRECTORIES
140+
${GIO_UNIX_INCLUDE_DIRS}
111141
${GLIB_INCLUDE_DIRS}
112142
)
113143
list(APPEND WTF_LIBRARIES
144+
${GIO_UNIX_LIBRARIES}
114145
${GLIB_GIO_LIBRARIES}
115146
${GLIB_GOBJECT_LIBRARIES}
116147
${GLIB_LIBRARIES}

Source/WTF/wtf/glib/RunLoopSourcePriority.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ enum RunLoopSourcePriority {
8282
DiskCacheWrite = 200,
8383
};
8484

85-
#elif PLATFORM(WPE)
85+
#else
8686

8787
enum RunLoopSourcePriority {
8888
RunLoopDispatcher = 0,

Source/cmake/OptionsJSCOnly.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ endif ()
8787

8888
string(TOLOWER ${EVENT_LOOP_TYPE} LOWERCASE_EVENT_LOOP_TYPE)
8989
if (LOWERCASE_EVENT_LOOP_TYPE STREQUAL "glib")
90-
find_package(GLIB 2.36 REQUIRED COMPONENTS gio gobject)
90+
find_package(GLIB 2.36 REQUIRED COMPONENTS gio gio-unix gobject)
9191
SET_AND_EXPOSE_TO_BUILD(USE_GLIB 1)
9292
SET_AND_EXPOSE_TO_BUILD(USE_GLIB_EVENT_LOOP 1)
9393
SET_AND_EXPOSE_TO_BUILD(WTF_DEFAULT_EVENT_LOOP 0)

0 commit comments

Comments
 (0)