Fix building with libvncserver

This commit is contained in:
Jasmine Iwanek
2022-12-29 21:59:21 -05:00
parent 7ec2a1c148
commit a2568a6fea
3 changed files with 501 additions and 6 deletions

View File

@@ -52,11 +52,14 @@ if(DEV_BRANCH)
endif()
if(VNC)
add_compile_definitions(USE_VNC)
add_library(vnc OBJECT vnc.c vnc_keymap.c)
target_link_libraries(86Box vnc vncserver)
if(WIN32)
target_link_libraries(86Box ws2_32)
find_package(LibVNCServer)
if(LibVNCServer_FOUND)
add_compile_definitions(USE_VNC)
add_library(vnc OBJECT vnc.c vnc_keymap.c)
target_link_libraries(86Box vnc LibVNCServer::vncserver)
if(WIN32)
target_link_libraries(86Box ws2_32)
endif()
endif()
endif()

View File

@@ -416,7 +416,7 @@ ifeq ($(VNC), y)
OPTS += -I$(VNC_PATH)\INCLUDE
VNCLIB := -L$(VNC_PATH)\LIB
endif
VNCLIB += -lvncserver
VNCLIB += -lvncserver.dll
VNCOBJ := vnc.o vnc_keymap.o
endif