mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Reorganise the stubs collection.
I made a specific subdirectory 'stubs' to keep all the link-time stub modules in, like notiming.c. And I put _one_ run-time stub in it, namely nullplug.c. But the rest of the runtime stubs went into utils. I think it's better to keep all the stubs together, so I've moved all the null*.c in utils into stubs (with the exception of nullstrcmp.c, which means the 'null' in a different sense). Also, fiddled with the naming to be a bit more consistent, and stated in the new CMakeLists the naming policy that distinguishes no-*.c from null-*.c.
This commit is contained in:
@ -53,7 +53,7 @@ add_sources_from_current_dir(agent
|
||||
add_executable(fuzzterm
|
||||
${CMAKE_SOURCE_DIR}/test/fuzzterm.c
|
||||
${CMAKE_SOURCE_DIR}/logging.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/noprint.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/no-print.c
|
||||
unicode.c
|
||||
no-gtk.c)
|
||||
be_list(fuzzterm FuZZterm)
|
||||
@ -71,7 +71,7 @@ add_sources_from_current_dir(psocks no-gtk.c)
|
||||
|
||||
add_executable(psusan
|
||||
psusan.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/nogss.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/no-gss.c
|
||||
${CMAKE_SOURCE_DIR}/ssh/scpserver.c
|
||||
no-gtk.c
|
||||
pty.c)
|
||||
@ -81,7 +81,7 @@ target_link_libraries(psusan
|
||||
installed_program(psusan)
|
||||
|
||||
add_library(puttygen-common OBJECT
|
||||
${CMAKE_SOURCE_DIR}/stubs/notiming.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/no-timing.c
|
||||
keygen-noise.c
|
||||
no-gtk.c
|
||||
noise.c
|
||||
@ -114,7 +114,7 @@ add_executable(uppity
|
||||
${CMAKE_SOURCE_DIR}/ssh/scpserver.c
|
||||
no-gtk.c
|
||||
pty.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/nogss.c)
|
||||
${CMAKE_SOURCE_DIR}/stubs/no-gss.c)
|
||||
be_list(uppity Uppity)
|
||||
target_link_libraries(uppity
|
||||
eventloop sshserver keygen settings network crypto utils)
|
||||
@ -135,7 +135,7 @@ if(GTK_FOUND)
|
||||
add_executable(pterm
|
||||
pterm.c
|
||||
main-gtk-simple.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/nogss.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/no-gss.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/no-ca-config.c
|
||||
${CMAKE_SOURCE_DIR}/proxy/nosshproxy.c
|
||||
pty.c)
|
||||
@ -149,8 +149,8 @@ if(GTK_FOUND)
|
||||
add_executable(ptermapp
|
||||
pterm.c
|
||||
main-gtk-application.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/nocmdline.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/nogss.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/no-cmdline.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/no-gss.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/no-ca-config.c
|
||||
${CMAKE_SOURCE_DIR}/proxy/nosshproxy.c
|
||||
pty.c)
|
||||
@ -176,7 +176,7 @@ if(GTK_FOUND)
|
||||
add_executable(puttyapp
|
||||
putty.c
|
||||
main-gtk-application.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/nocmdline.c)
|
||||
${CMAKE_SOURCE_DIR}/stubs/no-cmdline.c)
|
||||
be_list(puttyapp PuTTY SSH SERIAL OTHERBACKENDS)
|
||||
target_link_libraries(puttyapp
|
||||
guiterminal eventloop sshclient otherbackends settings
|
||||
@ -187,9 +187,9 @@ if(GTK_FOUND)
|
||||
add_executable(puttytel
|
||||
putty.c
|
||||
main-gtk-simple.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/nogss.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/no-gss.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/no-ca-config.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/norand.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/no-rand.c
|
||||
${CMAKE_SOURCE_DIR}/proxy/nocproxy.c
|
||||
${CMAKE_SOURCE_DIR}/proxy/nosshproxy.c)
|
||||
be_list(puttytel PuTTYtel SERIAL OTHERBACKENDS)
|
||||
@ -210,7 +210,7 @@ else()
|
||||
endif()
|
||||
add_executable(pageant
|
||||
pageant.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/nogss.c
|
||||
${CMAKE_SOURCE_DIR}/stubs/no-gss.c
|
||||
x11.c
|
||||
noise.c
|
||||
${CMAKE_SOURCE_DIR}/ssh/x11fwd.c
|
||||
|
Reference in New Issue
Block a user