Skip to content

Commit

Permalink
build: remove macOS server example
Browse files Browse the repository at this point in the history
This was split off LibVNCServer and now resides in
https://github.com/LibVNC/macVNC
  • Loading branch information
bk138 committed Mar 3, 2024
1 parent de7e92b commit f36dd86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 738 deletions.
14 changes: 2 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -585,16 +585,6 @@ if(WITH_THREADS AND WITH_TIGHTVNC_FILETRANSFER AND CMAKE_USE_PTHREADS_INIT)
)
endif(WITH_THREADS AND WITH_TIGHTVNC_FILETRANSFER AND CMAKE_USE_PTHREADS_INIT)

if(APPLE AND NOT IOS AND WITH_THREADS AND CMAKE_USE_PTHREADS_INIT)
set(LIBVNCSERVER_EXAMPLES
${LIBVNCSERVER_EXAMPLES}
mac
)
find_library(CARBON_LIBRARY Carbon)
find_library(IOKIT_LIBRARY IOKit)
find_library(IOSURFACE_LIBRARY IOSurface)
endif(APPLE AND NOT IOS AND WITH_THREADS AND CMAKE_USE_PTHREADS_INIT)

if(ANDROID)
set(LIBVNCSERVER_EXAMPLES
${LIBVNCSERVER_EXAMPLES}
Expand Down Expand Up @@ -657,7 +647,7 @@ if(WITH_EXAMPLES)
add_executable(examples_${e} ${LIBVNCSRVEXAMPLE_DIR}/${e}.c)
set_target_properties(examples_${e} PROPERTIES OUTPUT_NAME ${e})
set_target_properties(examples_${e} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/examples/server)
target_link_libraries(examples_${e} vncserver ${CMAKE_THREAD_LIBS_INIT} ${CARBON_LIBRARY} ${IOKIT_LIBRARY} ${IOSURFACE_LIBRARY} ${X11_xcb_LIB} ${X11_xcb_xtest_LIB} ${X11_xcb_keysyms_LIB})
target_link_libraries(examples_${e} vncserver ${CMAKE_THREAD_LIBS_INIT} ${X11_xcb_LIB} ${X11_xcb_xtest_LIB} ${X11_xcb_keysyms_LIB})
endforeach(e ${LIBVNCSERVER_EXAMPLES})

foreach(e ${LIBVNCCLIENT_EXAMPLES})
Expand All @@ -677,7 +667,7 @@ if(WITH_TESTS)
# First fuzzing
if(DEFINED ENV{LIB_FUZZING_ENGINE})
add_executable(fuzz_server ${TESTS_DIR}/fuzz_server.c)
target_link_libraries(fuzz_server vncserver ${CMAKE_THREAD_LIBS_INIT} ${CARBON_LIBRARY} ${IOKIT_LIBRARY} ${IOSURFACE_LIBRARY} $ENV{LIB_FUZZING_ENGINE})
target_link_libraries(fuzz_server vncserver ${CMAKE_THREAD_LIBS_INIT} $ENV{LIB_FUZZING_ENGINE})
endif()

if(UNIX)
Expand Down
Loading

0 comments on commit f36dd86

Please sign in to comment.