blender_headless.cmake 981 B

1234567891011121314151617181920212223
  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. # disable audio, its possible some devs may want this but for now disable
  9. # so the python module doesn't hold the audio device and loads quickly.
  10. set(WITH_AUDASPACE OFF CACHE BOOL "" FORCE)
  11. set(WITH_FFTW3 OFF CACHE BOOL "" FORCE)
  12. set(WITH_JACK OFF CACHE BOOL "" FORCE)
  13. set(WITH_SDL OFF CACHE BOOL "" FORCE)
  14. set(WITH_OPENAL OFF CACHE BOOL "" FORCE)
  15. set(WITH_CODEC_FFMPEG OFF CACHE BOOL "" FORCE)
  16. set(WITH_CODEC_SNDFILE OFF CACHE BOOL "" FORCE)
  17. # other features which are not especially useful as a python module
  18. set(WITH_X11_XINPUT OFF CACHE BOOL "" FORCE)
  19. set(WITH_INPUT_NDOF OFF CACHE BOOL "" FORCE)