blender_headless.cmake 1.0 KB

123456789101112131415161718192021222324
  1. # headless configuration, useful in for servers or renderfarms
  2. # builds without a windowing system (X11/Windows/Cocoa).
  3. #
  4. # Example usage:
  5. # cmake -C../blender/build_files/cmake/config/blender_headless.cmake ../blender
  6. #
  7. set(WITH_HEADLESS ON CACHE BOOL "" FORCE)
  8. set(WITH_GAMEENGINE OFF CACHE BOOL "" FORCE)
  9. # disable audio, its possible some devs may want this but for now disable
  10. # so the python module doesnt hold the audio device and loads quickly.
  11. set(WITH_AUDASPACE OFF CACHE BOOL "" FORCE)
  12. set(WITH_FFTW3 OFF CACHE BOOL "" FORCE)
  13. set(WITH_JACK OFF CACHE BOOL "" FORCE)
  14. set(WITH_SDL OFF CACHE BOOL "" FORCE)
  15. set(WITH_OPENAL OFF CACHE BOOL "" FORCE)
  16. set(WITH_CODEC_FFMPEG OFF CACHE BOOL "" FORCE)
  17. set(WITH_CODEC_SNDFILE OFF CACHE BOOL "" FORCE)
  18. # other features which are not especially useful as a python module
  19. set(WITH_X11_XINPUT OFF CACHE BOOL "" FORCE)
  20. set(WITH_INPUT_NDOF OFF CACHE BOOL "" FORCE)