Py-Driver: add 'self' option
[blender.git] / source / blender / python / intern / CMakeLists.txt
index aae0f926e8119c566cb52d1556dd2984c182e38f..2715d2c5992796ca169e34eb8a72bb7c62c609b7 100644 (file)
 
 set(INC 
        ..
-       ../../blenfont
        ../../blenkernel
        ../../blenlib
        ../../blenloader
+       ../../blentranslation
        ../../editors/include
        ../../gpu
+       ../../imbuf
        ../../makesdna
        ../../makesrna
        ../../windowmanager
        ../../../../intern/cycles/blender
+       ../../../../intern/opencolorio
        ../../../../intern/guardedalloc
 )
 
@@ -44,17 +46,23 @@ set(INC_SYS
 
 set(SRC
        gpu.c
+       gpu_offscreen.c
        bpy.c
        bpy_app.c
-       bpy_app_ffmpeg.c
        bpy_app_build_options.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_library.c
+       bpy_library_load.c
+       bpy_library_write.c
        bpy_operator.c
        bpy_operator_wrap.c
        bpy_path.c
@@ -63,16 +71,24 @@ set(SRC
        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_utils_previews.c
+       bpy_utils_units.c
        stubs.c
 
        gpu.h
        bpy.h
        bpy_app.h
-       bpy_app_ffmpeg.h
        bpy_app_build_options.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
@@ -84,8 +100,12 @@ set(SRC
        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_utils_previews.h
+       bpy_utils_units.h
        ../BPY_extern.h
 )
 
@@ -174,12 +194,12 @@ if(WITH_IMAGE_OPENEXR)
        add_definitions(-DWITH_OPENEXR)
 endif()
 
-if(WITH_IMAGE_OPENJPEG)
-       add_definitions(-DWITH_OPENJPEG)
+if(WITH_OPENIMAGEIO)
+       add_definitions(-DWITH_OPENIMAGEIO)
 endif()
 
-if(WITH_IMAGE_REDCODE)
-       add_definitions(-DWITH_REDCODE)
+if(WITH_IMAGE_OPENJPEG)
+       add_definitions(-DWITH_OPENJPEG)
 endif()
 
 if(WITH_IMAGE_TIFF)
@@ -199,9 +219,19 @@ if(WITH_OPENAL)
 endif()
 
 if(WITH_SDL)
+       list(APPEND INC_SYS
+               ${SDL_INCLUDE_DIR}
+       )
        add_definitions(-DWITH_SDL)
 endif()
 
+if(WITH_SDL_DYNLOAD)
+       list(APPEND INC
+               ../../../../extern/sdlew/include
+       )
+       add_definitions(-DWITH_SDL_DYNLOAD)
+endif()
+
 if(WITH_JACK)
        add_definitions(-DWITH_JACK)
 endif()
@@ -238,9 +268,24 @@ 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}")