Skip to content

Commit 28d96bc

Browse files
committed
package/wpe/wpewebkit: update config options for 2.38
Honour build configuration options for WebKit 2.38, trying to organize groups of options in a logical way: - Add a dummy BR2_PACKAGE_WPEWEBKIT_WEBDRIVER which is always set to enable for 2.22, this way it is possible to hoist the checks for the feature out of version conditionals. - Group shared options among versions, e.g. 2.28 and 2.38 share a good deal of them and it is possible to use the same logic for both. - Then there are only a few remaining options which only apply to 2.38, and those go into their own conditional section. Signed-off-by: Adrian Perez de Castro <[email protected]>
1 parent a5ac6de commit 28d96bc

File tree

2 files changed

+76
-31
lines changed

2 files changed

+76
-31
lines changed

package/wpe/wpewebkit/Config.in

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,20 @@ config BR2_PACKAGE_WPEWEBKIT_USE_GSTREAMER_WEBKIT_HTTP_SRC
168168
help
169169
Use the WebKit network resource loader to download Media data over HTTP(S)
170170

171+
config BR2_PACKAGE_WPEWEBKIT_ENABLE_TEXT_SINK
172+
bool "Enable text sink"
173+
default y
174+
help
175+
Defines ENABLE_TEXT_SINK=ON
176+
177+
config BR2_PACKAGE_WPEWEBKIT_WEBDRIVER
178+
bool
179+
default y
180+
181+
endif
182+
183+
if BR2_PACKAGE_WPEWEBKIT2_22 || BR2_PACKAGE_WPEWEBKIT2_38
184+
171185
config BR2_PACKAGE_WPEWEBKIT_ENABLE_NATIVE_VIDEO
172186
bool "Enable native video"
173187
default y
@@ -180,12 +194,6 @@ config BR2_PACKAGE_WPEWEBKIT_ENABLE_NATIVE_AUDIO
180194
help
181195
Defines ENABLE_NATIVE_AUDIO=ON
182196

183-
config BR2_PACKAGE_WPEWEBKIT_ENABLE_TEXT_SINK
184-
bool "Enable text sink"
185-
default y
186-
help
187-
Defines ENABLE_TEXT_SINK=ON
188-
189197
endif
190198

191199
config BR2_PACKAGE_WPEWEBKIT2_38_GST_DEPS

package/wpe/wpewebkit/wpewebkit.mk

Lines changed: 62 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,27 @@ WPEWEBKIT_CONF_OPTS = \
3838
-DPORT=WPE \
3939
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
4040

41-
ifeq ($(BR2_PACKAGE_WPEWEBKIT2_22),y)
41+
ifeq ($(BR2_PACKAGE_WPEWEBKIT2_22)$(BR2_PACKAGE_WPEWEBKIT2_28),y)
42+
WPEWEBKIT_CONF_OPTS += \
43+
-DENABLE_ACCELERATED_2D_CANVAS=ON
44+
endif
45+
46+
ifeq ($(BR2_PACKAGE_WPEWEBKIT2_28),y)
47+
WPEWEBKIT_CONF_OPTS += \
48+
-DSILENCE_CROSS_COMPILATION_NOTICES=ON
49+
endif
50+
51+
ifeq ($(BR2_PACKAGE_WPEWEBKIT2_28)$(BR2_PACKAGE_WPEWEBKIT2_38),y)
52+
WPEWEBKIT_CONF_OPTS += \
53+
-DENABLE_ACCESSIBILITY=OFF \
54+
-DENABLE_API_TESTS=OFF \
55+
-DENABLE_BUBBLEWRAP_SANDBOX=OFF \
56+
-DENABLE_MINIBROWSER=OFF \
57+
-DUSE_WOFF2=OFF
58+
endif
4259

60+
ifeq ($(BR2_PACKAGE_WPEWEBKIT2_22),y)
4361
WPEWEBKIT_CONF_OPTS += \
44-
-DENABLE_ACCELERATED_2D_CANVAS=ON \
4562
-DENABLE_DATABASE_PROCESS=OFF \
4663
-DENABLE_DEVICE_ORIENTATION=OFF \
4764
-DENABLE_FETCH_API=OFF \
@@ -58,15 +75,12 @@ WPEWEBKIT_CONF_OPTS += \
5875
-DENABLE_SUBTLE_CRYPTO=OFF \
5976
-DENABLE_SVG_FONTS=OFF \
6077
-DENABLE_TOUCH_EVENTS=OFF \
78+
-DENABLE_VIDEO=ON \
79+
-DENABLE_VIDEO_TRACK=ON \
6180
-DENABLE_WEBASSEMBLY=OFF \
62-
-DENABLE_WEBDRIVER=ON \
6381
-DEXPORT_DEPRECATED_WEBKIT2_C_API=ON
64-
6582
WPEWEBKIT_DEPENDENCIES += gstreamer1 gst1-plugins-base \
6683
gst1-plugins-good gst1-plugins-bad
67-
WPEWEBKIT_CONF_OPTS += \
68-
-DENABLE_VIDEO=ON \
69-
-DENABLE_VIDEO_TRACK=ON
7084

7185
ifeq ($(BR2_PACKAGE_WPEWEBKIT_ENABLE_NATIVE_VIDEO),y)
7286
WPEWEBKIT_CONF_OPTS += -DENABLE_NATIVE_VIDEO=ON
@@ -121,32 +135,30 @@ endif
121135

122136
endif
123137

124-
ifeq ($(BR2_PACKAGE_WPEWEBKIT2_28),y)
125-
126-
WPEWEBKIT_CONF_OPTS += \
127-
-DENABLE_ACCELERATED_2D_CANVAS=ON \
128-
-DENABLE_ACCESSIBILITY=OFF \
129-
-DENABLE_API_TESTS=OFF \
130-
-DENABLE_BUBBLEWRAP_SANDBOX=OFF \
131-
-DENABLE_MINIBROWSER=OFF \
132-
-DSILENCE_CROSS_COMPILATION_NOTICES=ON \
133-
-DUSE_WOFF2=OFF
138+
ifeq ($(BR2_PACKAGE_WPEWEBKIT2_28)$(BR2_PACKAGE_WPEWEBKIT2_38),y)
134139

135140
ifeq ($(BR2_PACKAGE_WPEWEBKIT_MULTIMEDIA),y)
136141
WPEWEBKIT_CONF_OPTS += \
137-
-DENABLE_ENCRYPTED_MEDIA=ON \
142+
-DENABLE_VIDEO=ON \
138143
-DENABLE_MEDIA_SOURCE=ON \
144+
-DENABLE_ENCRYPTED_MEDIA=ON \
139145
-DENABLE_MEDIA_STATISTICS=ON \
140-
-DENABLE_THUNDER=ON \
141-
-DENABLE_VIDEO=ON \
142146
-DENABLE_WEB_AUDIO=ON
143147
WPEWEBKIT_DEPENDENCIES += gstreamer1 gst1-plugins-base gst1-plugins-good
148+
149+
ifeq ($(BR2_PACKAGE_WPEFRAMEWORK_CLIENTLIBRARIES)$(BR2_PACKAGE_WPEFRAMEWORK_CDM),yy)
150+
WPEWEBKIT_DEPENDENCIES += wpeframework-clientlibraries
151+
WPEWEBKIT_CONF_OPTS += -DENABLE_THUNDER=ON
152+
else
153+
WPEWEBKIT_CONF_OPTS += -DENABLE_THUNDER=OFF
154+
endif
155+
144156
else
145157
WPEWEBKIT_CONF_OPTS += \
146-
-DENABLE_ENCRYPTED_MEDIA=OFF \
158+
-DENABLE_VIDEO=OFF \
147159
-DENABLE_MEDIA_SOURCE=OFF \
160+
-DENABLE_ENCRYPTED_MEDIA=OFF \
148161
-DENABLE_THUNDER=OFF \
149-
-DENABLE_VIDEO=OFF \
150162
-DENABLE_WEB_AUDIO=OFF
151163
endif
152164

@@ -156,10 +168,29 @@ else
156168
WPEWEBKIT_CONF_OPTS += -DUSE_GSTREAMER_GL=OFF
157169
endif
158170

159-
ifeq ($(BR2_PACKAGE_WPEWEBKIT_WEBDRIVER),y)
160-
WPEWEBKIT_CONF_OPTS += -DENABLE_WEBDRIVER=ON
171+
endif
172+
173+
ifeq ($(BR2_PACKAGE_WPEWEBKIT2_38),y)
174+
WPEWEBKIT_CONF_OPTS += \
175+
-DENABLE_INTROSPECTION=OFF \
176+
-DUSE_LCMS=OFF
177+
178+
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
179+
WPEWEBKIT_CONF_OPTS += -DENABLE_JOURNALD_LOG=ON
161180
else
162-
WPEWEBKIT_CONF_OPTS += -DENABLE_WEBDRIVER=OFF
181+
WPEWEBKIT_CONF_OPTS += -DENABLE_JOURNALD_LOG=OFF
182+
endif
183+
184+
ifeq ($(BR2_PACKAGE_WPEWEBKIT_ENABLE_NATIVE_VIDEO),y)
185+
WPEWEBKIT_CONF_OPTS += -DUSE_GSTREAMER_NATIVE_VIDEO=ON
186+
else
187+
WPEWEBKIT_CONF_OPTS += -DUSE_GSTREAMER_NATIVE_VIDEO=OFF
188+
endif
189+
190+
ifeq ($(BR2_PACKAGE_WPEWEBKIT_ENABLE_NATIVE_AUDIO),y)
191+
WPEWEBKIT_CONF_OPTS += -DUSE_GSTREAMER_NATIVE_AUDIO=ON
192+
else
193+
WPEWEBKIT_CONF_OPTS += -DUSE_GSTREAMER_NATIVE_AUDIO=OFF
163194
endif
164195

165196
endif
@@ -189,6 +220,12 @@ else ifeq ($(BR2_PACKAGE_WPEWEBKIT_USE_PUNCH_HOLE_EXTERNAL),y)
189220
WPEWEBKIT_CONF_OPTS += -DUSE_HOLE_PUNCH_EXTERNAL=ON -DUSE_EXTERNAL_HOLEPUNCH=ON
190221
endif
191222

223+
ifeq ($(BR2_PACKAGE_WPEWEBKIT_WEBDRIVER),y)
224+
WPEWEBKIT_CONF_OPTS += -DENABLE_WEBDRIVER=ON
225+
else
226+
WPEWEBKIT_CONF_OPTS += -DENABLE_WEBDRIVER=OFF
227+
endif
228+
192229
ifeq ($(BR2_PACKAGE_WESTEROS),y)
193230
WPEWEBKIT_DEPENDENCIES += westeros
194231
WPEWEBKIT_CONF_OPTS += -DUSE_WPEWEBKIT_PLATFORM_WESTEROS=ON

0 commit comments

Comments
 (0)