CMakeLists.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. # This subdirectory is generally full of 'stubs' in the sense of
  2. # functions and types that don't do anything interesting, and are
  3. # substituted in some contexts for ones that do.
  4. #
  5. # Some of the files here, with names beginning 'no-', are substituted
  6. # at link time, conditional on the application. For example, a program
  7. # that doesn't use the timing subsystem but still includes a module
  8. # that makes a passing reference to it (say, in a context that never
  9. # turns out to be called) can link against no-timing.c in place of the
  10. # real timing.c.
  11. #
  12. # Other files, with names beginning 'null-', provide non-functional
  13. # implementations of a particular internal API, or a selection of
  14. # non-functional methods for that API that real implementations can
  15. # selectively use. Those are linked in to a program _alongside_ real
  16. # implementations of the same API.
  17. #
  18. # So the cmake setup for this directory puts all the 'null-' files
  19. # into the utils library (at the end of the link, where they'll be
  20. # available everywhere), but doesn't mention the 'no-' files, because
  21. # those will be selected manually by add_executable() commands
  22. # elsewhere.
  23. add_sources_from_current_dir(utils
  24. null-lp.c
  25. null-cipher.c
  26. null-key.c
  27. null-mac.c
  28. null-opener.c
  29. null-plug.c
  30. null-seat.c
  31. null-socket.c)