3 add_subdirectory(wineguts)
11 src/APIPrintFormat.cpp
13 src/APIStringCodepages.cpp
23 src/sudo/sudo_common.cpp
24 src/sudo/sudo_client.cpp
25 src/sudo/sudo_client_api.cpp
26 src/sudo/sudo_dispatcher.cpp
27 src/sudo/sudo_askpass.cpp
28 src/sudo/sudo_askpass_ipc.cpp
29 src/Backend/WinPortMain.cpp
30 src/Backend/WinPortRGB.cpp
31 src/Backend/SudoAskpassImpl.cpp
32 src/Backend/FSClipboardBackend.cpp
33 src/Backend/ExtClipboardBackend.cpp
34 src/Backend/TTY/TTYBackend.cpp
35 src/Backend/TTY/TTYRevive.cpp
36 src/Backend/TTY/TTYInput.cpp
37 src/Backend/TTY/TTYInputSequenceParser.cpp
38 src/Backend/TTY/TTYInputSequenceParserExts.cpp
39 src/Backend/TTY/TTYOutput.cpp
40 src/Backend/TTY/TTYFar2lClipboardBackend.cpp
41 src/Backend/TTY/OSC52ClipboardBackend.cpp
42 src/Backend/TTY/TTYNegotiateFar2l.cpp
43 src/Backend/TTY/TTYXGlue.cpp
46 add_library (WinPort STATIC ${SOURCES})
48 target_include_directories(WinPort PRIVATE .)
49 target_include_directories(WinPort PRIVATE src)
50 target_include_directories(WinPort PRIVATE src/Backend)
52 target_link_libraries(WinPort wineguts utils)
54 find_package(Threads REQUIRED)
55 if(THREADS_HAVE_PTHREAD_ARG)
56 target_compile_options(WinPort PUBLIC "-pthread")
58 if(CMAKE_THREAD_LIBS_INIT)
59 target_link_libraries(WinPort "${CMAKE_THREAD_LIBS_INIT}")
61 if(${CMAKE_SYSTEM_NAME} MATCHES "Haiku")
62 target_link_libraries(WinPort root)