Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/intern/bpy_app_build_options.c
| Show All 20 Lines | |||||
| #include <Python.h> | #include <Python.h> | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "bpy_app_build_options.h" | #include "bpy_app_build_options.h" | ||||
| static PyTypeObject BlenderAppBuildOptionsType; | static PyTypeObject BlenderAppBuildOptionsType; | ||||
| static PyStructSequence_Field app_builtopts_info_fields[] = { | static PyStructSequence_Field app_builtopts_info_fields[] = { | ||||
| /* names mostly follow CMake options, lowercase, after WITH_ */ | /* names mostly follow CMake options, lowercase, after WITH_ */ | ||||
mont29: should be removed? | |||||
| {(char *)"bullet", NULL}, | {(char *)"bullet", NULL}, | ||||
| {(char *)"codec_avi", NULL}, | {(char *)"codec_avi", NULL}, | ||||
| {(char *)"codec_ffmpeg", NULL}, | {(char *)"codec_ffmpeg", NULL}, | ||||
| {(char *)"codec_sndfile", NULL}, | {(char *)"codec_sndfile", NULL}, | ||||
| {(char *)"compositor", NULL}, | {(char *)"compositor", NULL}, | ||||
| {(char *)"cycles", NULL}, | {(char *)"cycles", NULL}, | ||||
| {(char *)"cycles_osl", NULL}, | {(char *)"cycles_osl", NULL}, | ||||
| {(char *)"freestyle", NULL}, | {(char *)"freestyle", NULL}, | ||||
| {(char *)"image_cineon", NULL}, | {(char *)"image_cineon", NULL}, | ||||
| {(char *)"image_dds", NULL}, | {(char *)"image_dds", NULL}, | ||||
| {(char *)"image_hdr", NULL}, | {(char *)"image_hdr", NULL}, | ||||
| {(char *)"image_openexr", NULL}, | {(char *)"image_openexr", NULL}, | ||||
| {(char *)"image_openjpeg", NULL}, | {(char *)"image_openjpeg", NULL}, | ||||
| {(char *)"image_tiff", NULL}, | {(char *)"image_tiff", NULL}, | ||||
| {(char *)"input_ndof", NULL}, | {(char *)"input_ndof", NULL}, | ||||
| {(char *)"audaspace", NULL}, | {(char *)"audaspace", NULL}, | ||||
| {(char *)"international", NULL}, | {(char *)"international", NULL}, | ||||
| {(char *)"openal", NULL}, | {(char *)"openal", NULL}, | ||||
| {(char *)"sdl", NULL}, | {(char *)"sdl", NULL}, | ||||
| {(char *)"sdl_dynload", NULL}, | {(char *)"sdl_dynload", NULL}, | ||||
| {(char *)"jack", NULL}, | {(char *)"jack", NULL}, | ||||
| {(char *)"libmv", NULL}, | {(char *)"libmv", NULL}, | ||||
| {(char *)"mod_fluid", NULL}, | |||||
| {(char *)"mod_oceansim", NULL}, | {(char *)"mod_oceansim", NULL}, | ||||
| {(char *)"mod_remesh", NULL}, | {(char *)"mod_remesh", NULL}, | ||||
| {(char *)"mod_smoke", NULL}, | |||||
| {(char *)"collada", NULL}, | {(char *)"collada", NULL}, | ||||
| {(char *)"opencolorio", NULL}, | {(char *)"opencolorio", NULL}, | ||||
| {(char *)"openmp", NULL}, | {(char *)"openmp", NULL}, | ||||
| {(char *)"openvdb", NULL}, | {(char *)"openvdb", NULL}, | ||||
| {(char *)"alembic", NULL}, | {(char *)"alembic", NULL}, | ||||
| {(char *)"manta", NULL}, | |||||
| {NULL}, | {NULL}, | ||||
| }; | }; | ||||
| static PyStructSequence_Desc app_builtopts_info_desc = { | static PyStructSequence_Desc app_builtopts_info_desc = { | ||||
| (char *)"bpy.app.build_options", /* name */ | (char *)"bpy.app.build_options", /* name */ | ||||
| (char *)"This module contains information about options blender is built with", /* doc */ | (char *)"This module contains information about options blender is built with", /* doc */ | ||||
| app_builtopts_info_fields, /* fields */ | app_builtopts_info_fields, /* fields */ | ||||
| ARRAY_SIZE(app_builtopts_info_fields) - 1, | ARRAY_SIZE(app_builtopts_info_fields) - 1, | ||||
| ▲ Show 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | |||||
| #endif | #endif | ||||
| #ifdef WITH_LIBMV | #ifdef WITH_LIBMV | ||||
| SetObjIncref(Py_True); | SetObjIncref(Py_True); | ||||
| #else | #else | ||||
| SetObjIncref(Py_False); | SetObjIncref(Py_False); | ||||
| #endif | #endif | ||||
| #ifdef WITH_MOD_FLUID | |||||
| SetObjIncref(Py_True); | |||||
| #else | |||||
| SetObjIncref(Py_False); | |||||
| #endif | |||||
| #ifdef WITH_OCEANSIM | #ifdef WITH_OCEANSIM | ||||
| SetObjIncref(Py_True); | SetObjIncref(Py_True); | ||||
| #else | #else | ||||
| SetObjIncref(Py_False); | SetObjIncref(Py_False); | ||||
| #endif | #endif | ||||
| #ifdef WITH_MOD_REMESH | #ifdef WITH_MOD_REMESH | ||||
| SetObjIncref(Py_True); | SetObjIncref(Py_True); | ||||
| #else | #else | ||||
| SetObjIncref(Py_False); | SetObjIncref(Py_False); | ||||
| #endif | #endif | ||||
| #ifdef WITH_SMOKE | |||||
| SetObjIncref(Py_True); | |||||
| #else | |||||
| SetObjIncref(Py_False); | |||||
| #endif | |||||
| #ifdef WITH_COLLADA | #ifdef WITH_COLLADA | ||||
| SetObjIncref(Py_True); | SetObjIncref(Py_True); | ||||
| #else | #else | ||||
| SetObjIncref(Py_False); | SetObjIncref(Py_False); | ||||
| #endif | #endif | ||||
| #ifdef WITH_OCIO | #ifdef WITH_OCIO | ||||
| SetObjIncref(Py_True); | SetObjIncref(Py_True); | ||||
| Show All 14 Lines | |||||
| #endif | #endif | ||||
| #ifdef WITH_ALEMBIC | #ifdef WITH_ALEMBIC | ||||
| SetObjIncref(Py_True); | SetObjIncref(Py_True); | ||||
| #else | #else | ||||
| SetObjIncref(Py_False); | SetObjIncref(Py_False); | ||||
| #endif | #endif | ||||
| #ifdef WITH_MANTA | |||||
| SetObjIncref(Py_True); | |||||
| #else | |||||
| SetObjIncref(Py_False); | |||||
| #endif | |||||
| #undef SetObjIncref | #undef SetObjIncref | ||||
| return builtopts_info; | return builtopts_info; | ||||
| } | } | ||||
| PyObject *BPY_app_build_options_struct(void) | PyObject *BPY_app_build_options_struct(void) | ||||
| { | { | ||||
| PyObject *ret; | PyObject *ret; | ||||
| Show All 13 Lines | |||||
should be removed?