Skip to content

Commit 35f5874

Browse files
committed
package/cog: allow libsoup2 usage
Toggle the value of the USE_SOUP2 option depending on BR2_PACKAGE_LIBSOUP_VERSION_2, which allows building Cog with both libsoup APIs. Signed-off-by: Adrian Perez de Castro <[email protected]>
1 parent 8f4072b commit 35f5874

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

package/cog/cog.mk

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,17 @@ ifeq ($(BR2_PACKAGE_WPEWEBKIT2_28)$(BR2_PACKAGE_WPEWEBKIT2_38),y)
3131
COG_FDO_PLATFORM_CMAKE_OPTION = COG_PLATFORM_WL
3232
COG_CONF_OPTS += \
3333
-DCOG_PLATFORM_GTK4=OFF \
34-
-DCOG_PLATFORM_X11=OFF \
35-
-DUSE_SOUP2=OFF
34+
-DCOG_PLATFORM_X11=OFF
3635
else
3736
COG_FDO_PLATFORM_CMAKE_OPTION = COG_PLATFORM_FDO
38-
COG_CONF_OPTS += \
39-
-DUSE_SOUP2=ON
4037
endif # BR2_PACKAGE_WPEWEBKIT2_38
4138

39+
ifeq ($(BR2_PACKAGE_LIBSOUP_VERSION_2),y)
40+
COG_CONF_OPTS += -DUSE_SOUP2=ON
41+
else
42+
COG_CONF_OPTS += -DUSE_SOUP2=OFF
43+
endif # BR2_PACKAGE_LIBSOUP_VERSION_2
44+
4245
ifeq ($(BR2_PACKAGE_WESTON),y)
4346
COG_CONF_OPTS += -DCOG_WESTON_DIRECT_DISPLAY=ON
4447
COG_DEPENDENCIES += weston

0 commit comments

Comments
 (0)