Py-Driver: add 'self' option
[blender.git] / source / blender / python / intern / CMakeLists.txt
index 4b397ee1870d514525a755569c4c48f643a5af9b..2715d2c5992796ca169e34eb8a72bb7c62c609b7 100644 (file)
 
 set(INC 
        ..
 
 set(INC 
        ..
-       ../../blenfont
        ../../blenkernel
        ../../blenlib
        ../../blenloader
        ../../blenkernel
        ../../blenlib
        ../../blenloader
+       ../../blentranslation
        ../../editors/include
        ../../editors/include
+       ../../gpu
+       ../../imbuf
        ../../makesdna
        ../../makesrna
        ../../windowmanager
        ../../makesdna
        ../../makesrna
        ../../windowmanager
-       ../../gpu
-       ../../freestyle/intern/python
-       ../../../../intern/guardedalloc
        ../../../../intern/cycles/blender
        ../../../../intern/cycles/blender
+       ../../../../intern/opencolorio
+       ../../../../intern/guardedalloc
 )
 
 set(INC_SYS
 )
 
 set(INC_SYS
@@ -45,41 +46,66 @@ set(INC_SYS
 
 set(SRC
        gpu.c
 
 set(SRC
        gpu.c
+       gpu_offscreen.c
        bpy.c
        bpy_app.c
        bpy.c
        bpy_app.c
+       bpy_app_build_options.c
        bpy_app_ffmpeg.c
        bpy_app_handlers.c
        bpy_app_ffmpeg.c
        bpy_app_handlers.c
+       bpy_app_ocio.c
+       bpy_app_oiio.c
+       bpy_app_openvdb.c
+       bpy_app_sdl.c
+       bpy_app_translations.c
        bpy_driver.c
        bpy_interface.c
        bpy_interface_atexit.c
        bpy_intern_string.c
        bpy_driver.c
        bpy_interface.c
        bpy_interface_atexit.c
        bpy_intern_string.c
-       bpy_library.c
+       bpy_library_load.c
+       bpy_library_write.c
        bpy_operator.c
        bpy_operator_wrap.c
        bpy_operator.c
        bpy_operator_wrap.c
+       bpy_path.c
        bpy_props.c
        bpy_rna.c
        bpy_rna_anim.c
        bpy_rna_array.c
        bpy_rna_callback.c
        bpy_props.c
        bpy_rna.c
        bpy_rna_anim.c
        bpy_rna_array.c
        bpy_rna_callback.c
+       bpy_rna_driver.c
+       bpy_rna_id_collection.c
        bpy_traceback.c
        bpy_util.c
        bpy_traceback.c
        bpy_util.c
+       bpy_utils_previews.c
+       bpy_utils_units.c
        stubs.c
 
        gpu.h
        bpy.h
        bpy_app.h
        stubs.c
 
        gpu.h
        bpy.h
        bpy_app.h
+       bpy_app_build_options.h
        bpy_app_ffmpeg.h
        bpy_app_handlers.h
        bpy_app_ffmpeg.h
        bpy_app_handlers.h
+       bpy_app_ocio.h
+       bpy_app_oiio.h
+       bpy_app_openvdb.h
+       bpy_app_sdl.h
+       bpy_app_translations.h
        bpy_driver.h
        bpy_intern_string.h
        bpy_driver.h
        bpy_intern_string.h
+       bpy_library.h
        bpy_operator.h
        bpy_operator_wrap.h
        bpy_operator.h
        bpy_operator_wrap.h
+       bpy_path.h
        bpy_props.h
        bpy_rna.h
        bpy_rna_anim.h
        bpy_rna_callback.h
        bpy_props.h
        bpy_rna.h
        bpy_rna_anim.h
        bpy_rna_callback.h
+       bpy_rna_driver.h
+       bpy_rna_id_collection.h
        bpy_traceback.h
        bpy_util.h
        bpy_traceback.h
        bpy_util.h
+       bpy_utils_previews.h
+       bpy_utils_units.h
        ../BPY_extern.h
 )
 
        ../BPY_extern.h
 )
 
@@ -96,24 +122,170 @@ if(WITH_PYTHON_SAFETY)
        add_definitions(-DWITH_PYTHON_SAFETY)
 endif()
 
        add_definitions(-DWITH_PYTHON_SAFETY)
 endif()
 
+
+
 if(WITH_AUDASPACE)
        add_definitions(-DWITH_AUDASPACE)
 endif()
 
 if(WITH_AUDASPACE)
        add_definitions(-DWITH_AUDASPACE)
 endif()
 
+if(WITH_BULLET)
+       add_definitions(-DWITH_BULLET)
+endif()
+
+if(WITH_CODEC_AVI)
+       add_definitions(-DWITH_AVI)
+endif()
+
+if(WITH_CODEC_FFMPEG)
+       list(APPEND INC_SYS
+               ${FFMPEG_INCLUDE_DIRS}
+       )
+       add_definitions(-DWITH_FFMPEG)
+endif()
+
+if(WITH_CODEC_QUICKTIME)
+       add_definitions(-DWITH_QUICKTIME)
+endif()
+
+if(WITH_CODEC_SNDFILE)
+       add_definitions(-DWITH_SNDFILE)
+endif()
+
+if(WITH_COMPOSITOR)
+       add_definitions(-DWITH_COMPOSITOR)
+endif()
+
 if(WITH_CYCLES)
        add_definitions(-DWITH_CYCLES)
 endif()
 
 if(WITH_CYCLES)
        add_definitions(-DWITH_CYCLES)
 endif()
 
+if(WITH_CYCLES_OSL)
+       add_definitions(-DWITH_CYCLES_OSL)
+endif()
+
+if(WITH_FREESTYLE)
+       list(APPEND INC
+               ../../freestyle/intern/python
+       )
+       add_definitions(-DWITH_FREESTYLE)
+endif()
+
+if(WITH_GAMEENGINE)
+       add_definitions(-DWITH_GAMEENGINE)
+endif()
+
+if(WITH_IMAGE_CINEON)
+       add_definitions(-DWITH_CINEON)
+endif()
+
+if(WITH_IMAGE_DDS)
+       add_definitions(-DWITH_DDS)
+endif()
+
+if(WITH_IMAGE_FRAMESERVER)
+       add_definitions(-DWITH_FRAMESERVER)
+endif()
+
+if(WITH_IMAGE_HDR)
+       add_definitions(-DWITH_HDR)
+endif()
+
+if(WITH_IMAGE_OPENEXR)
+       add_definitions(-DWITH_OPENEXR)
+endif()
+
+if(WITH_OPENIMAGEIO)
+       add_definitions(-DWITH_OPENIMAGEIO)
+endif()
+
+if(WITH_IMAGE_OPENJPEG)
+       add_definitions(-DWITH_OPENJPEG)
+endif()
+
+if(WITH_IMAGE_TIFF)
+       add_definitions(-DWITH_TIFF)
+endif()
+
+if(WITH_INPUT_NDOF)
+       add_definitions(-DWITH_INPUT_NDOF)
+endif()
+
 if(WITH_INTERNATIONAL)
        add_definitions(-DWITH_INTERNATIONAL)
 endif()
 
 if(WITH_INTERNATIONAL)
        add_definitions(-DWITH_INTERNATIONAL)
 endif()
 
-if(WITH_CODEC_FFMPEG)
+if(WITH_OPENAL)
+       add_definitions(-DWITH_OPENAL)
+endif()
+
+if(WITH_SDL)
        list(APPEND INC_SYS
        list(APPEND INC_SYS
-               ${FFMPEG_INCLUDE_DIRS}
+               ${SDL_INCLUDE_DIR}
        )
        )
+       add_definitions(-DWITH_SDL)
+endif()
 
 
-       add_definitions(-DWITH_FFMPEG)
+if(WITH_SDL_DYNLOAD)
+       list(APPEND INC
+               ../../../../extern/sdlew/include
+       )
+       add_definitions(-DWITH_SDL_DYNLOAD)
+endif()
+
+if(WITH_JACK)
+       add_definitions(-DWITH_JACK)
 endif()
 
 endif()
 
+if(WITH_LIBMV)
+       add_definitions(-DWITH_LIBMV)
+endif()
+
+if(WITH_MOD_BOOLEAN)
+       add_definitions(-DWITH_MOD_BOOLEAN)
+endif()
+
+if(WITH_MOD_FLUID)
+       add_definitions(-DWITH_MOD_FLUID)
+endif()
+
+if(WITH_MOD_OCEANSIM)
+       add_definitions(-DWITH_OCEANSIM)
+endif()
+
+if(WITH_MOD_REMESH)
+       add_definitions(-DWITH_MOD_REMESH)
+endif()
+
+if(WITH_MOD_SMOKE)
+       add_definitions(-DWITH_SMOKE)
+endif()
+
+if(WITH_OPENCOLLADA)
+       add_definitions(-DWITH_COLLADA)
+endif()
+
+if(WITH_OPENCOLORIO)
+       add_definitions(-DWITH_OCIO)
+endif()
+
+if(WITH_OPENVDB)
+       add_definitions(-DWITH_OPENVDB)
+       list(APPEND INC
+               ../../../../intern/openvdb
+       )
+endif()
+
+if(WITH_OPENIMAGEIO)
+       add_definitions(-DWITH_OPENIMAGEIO)
+       list(APPEND INC
+               ../../imbuf/intern/oiio
+       )
+endif()
+
+if(WITH_PLAYER)
+       add_definitions(-DWITH_PLAYER)
+endif()
+
+add_definitions(${GL_DEFINITIONS})
+
 blender_add_lib(bf_python "${SRC}" "${INC}" "${INC_SYS}")
 blender_add_lib(bf_python "${SRC}" "${INC}" "${INC_SYS}")