mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
package/libvncserver: enable websocket server
Signed-off-by: Christian Hitz <christian.hitz@bbv.ch> Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
3b62f17f32
commit
707756a5a8
@@ -21,6 +21,11 @@ config BR2_PACKAGE_LIBVNCSERVER_TIGHTPNG
|
|||||||
|
|
||||||
http://wiki.qemu.org/VNC_Tight_PNG
|
http://wiki.qemu.org/VNC_Tight_PNG
|
||||||
|
|
||||||
|
config BR2_PACKAGE_LIBVNCSERVER_WEBSOCKETS
|
||||||
|
bool "WebSockets support"
|
||||||
|
help
|
||||||
|
Enable WebSocket support (e.g. for noVNC)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
comment "libvncserver needs a toolchain w/ dynamic library"
|
comment "libvncserver needs a toolchain w/ dynamic library"
|
||||||
|
|||||||
@@ -77,4 +77,17 @@ else
|
|||||||
LIBVNCSERVER_CONF_OPTS += -DWITH_ZLIB=OFF
|
LIBVNCSERVER_CONF_OPTS += -DWITH_ZLIB=OFF
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LIBVNCSERVER_WEBSOCKETS),y)
|
||||||
|
HBT_LIBVNCSERVER_CONF_OPTS += -DWITH_WEBSOCKETS=ON
|
||||||
|
|
||||||
|
define LIBVNCSERVER_INSTALL_VNC
|
||||||
|
$(INSTALL) -D -m 644 $(@D)/webclients/index.vnc \
|
||||||
|
$(TARGET_DIR)/usr/share/vnc/index.vnc
|
||||||
|
endef
|
||||||
|
|
||||||
|
LIBVNCSERVER_POST_INSTALL_TARGET_HOOKS += LIBVNCSERVER_INSTALL_VNC
|
||||||
|
else
|
||||||
|
LIBVNCSERVER_CONF_OPTS += -DWITH_WEBSOCKETS=OFF
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(cmake-package))
|
$(eval $(cmake-package))
|
||||||
|
|||||||
Reference in New Issue
Block a user