From 6920735cff6b5b2ab9e4e6d8090fb48bba7d9ba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 18 Feb 2015 12:07:48 +0100 Subject: Include SDL information in system info text. Adds bpy.app.sdl to expose SDL version information. When SDL is not available on a Linux system, certain Blender features are silently disabled (like joystick support in the BGE). This change is the first step towards making it more obvious why something isn't working. SDL information is exposed to Python via bpy.app.sdl, in the same way as OCIO and OIIO information is exposed. Generated system-info.txt contains SDL loading method (linked or dynamically loaded by Blender) and SDL version number. Reviewed by: sergey, campbellbarton Differential Revision: https://developer.blender.org/D1112 --- source/blender/python/intern/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/blender/python/intern/CMakeLists.txt') diff --git a/source/blender/python/intern/CMakeLists.txt b/source/blender/python/intern/CMakeLists.txt index a75db23d20b..8f85dbe11d7 100644 --- a/source/blender/python/intern/CMakeLists.txt +++ b/source/blender/python/intern/CMakeLists.txt @@ -52,6 +52,7 @@ set(SRC bpy_app_handlers.c bpy_app_ocio.c bpy_app_oiio.c + bpy_app_sdl.c bpy_app_translations.c bpy_driver.c bpy_interface.c @@ -210,9 +211,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() -- cgit v1.2.3