bpy_module.cmake 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # defaults for building blender as a python module 'bpy'
  2. #
  3. # Example usage:
  4. # cmake -C../blender/build_files/cmake/config/bpy_module.cmake ../blender
  5. #
  6. set(WITH_PYTHON_MODULE ON CACHE BOOL "" FORCE)
  7. # install into the systems python dir
  8. set(WITH_INSTALL_PORTABLE OFF CACHE BOOL "" FORCE)
  9. # no point int copying python into python
  10. set(WITH_PYTHON_INSTALL OFF CACHE BOOL "" FORCE)
  11. # dont build the game engine
  12. set(WITH_GAMEENGINE OFF CACHE BOOL "" FORCE)
  13. # disable audio, its possible some devs may want this but for now disable
  14. # so the python module doesnt hold the audio device and loads quickly.
  15. set(WITH_AUDASPACE OFF CACHE BOOL "" FORCE)
  16. set(WITH_FFTW3 OFF CACHE BOOL "" FORCE)
  17. set(WITH_JACK OFF CACHE BOOL "" FORCE)
  18. set(WITH_SDL OFF CACHE BOOL "" FORCE)
  19. set(WITH_OPENAL OFF CACHE BOOL "" FORCE)
  20. set(WITH_CODEC_FFMPEG OFF CACHE BOOL "" FORCE)
  21. set(WITH_CODEC_SNDFILE OFF CACHE BOOL "" FORCE)
  22. # other features which are not especially useful as a python module
  23. set(WITH_X11_XINPUT OFF CACHE BOOL "" FORCE)
  24. set(WITH_INPUT_NDOF OFF CACHE BOOL "" FORCE)
  25. set(WITH_OPENCOLLADA OFF CACHE BOOL "" FORCE)
  26. set(WITH_INTERNATIONAL OFF CACHE BOOL "" FORCE)
  27. set(WITH_BULLET OFF CACHE BOOL "" FORCE)
  28. set(WITH_OPENVDB OFF CACHE BOOL "" FORCE)
  29. set(WITH_ALEMBIC OFF CACHE BOOL "" FORCE)