diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-06-10 13:07:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-06-10 13:07:44 +0300 |
commit | 9b76dd10858313a9c6ca4733cd8ddc21d2d93842 (patch) | |
tree | aee86613a0a81f43e7902c44ebdbc1a2af7ec58a | |
parent | 9853ecfd54b74d885384f8fb5ffd4c1b5dded25a (diff) |
CMake: rename WITH_DECKLINK -> WITH_GAMEENGINE_DECKLINK
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | build_files/cmake/macros.cmake | 2 | ||||
-rw-r--r-- | intern/CMakeLists.txt | 2 | ||||
-rw-r--r-- | source/blenderplayer/CMakeLists.txt | 2 | ||||
-rw-r--r-- | source/gameengine/VideoTexture/CMakeLists.txt | 4 | ||||
-rw-r--r-- | source/gameengine/VideoTexture/DeckLink.cpp | 4 | ||||
-rw-r--r-- | source/gameengine/VideoTexture/DeckLink.h | 4 | ||||
-rw-r--r-- | source/gameengine/VideoTexture/Exception.cpp | 2 | ||||
-rw-r--r-- | source/gameengine/VideoTexture/VideoDeckLink.cpp | 4 | ||||
-rw-r--r-- | source/gameengine/VideoTexture/VideoDeckLink.h | 4 | ||||
-rw-r--r-- | source/gameengine/VideoTexture/blendVideoTex.cpp | 8 |
11 files changed, 19 insertions, 19 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e94bb7ba8d..e7a0f7ad177 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -229,8 +229,8 @@ option(WITH_BULLET "Enable Bullet (Physics Engine)" ON) option(WITH_SYSTEM_BULLET "Use the systems bullet library (currently unsupported due to missing features in upstream!)" ) mark_as_advanced(WITH_SYSTEM_BULLET) option(WITH_GAMEENGINE "Enable Game Engine" ${_init_GAMEENGINE}) +option(WITH_GAMEENGINE_DECKLINK "Support BlackMagicDesign DeckLink cards in the Game Engine" ON) option(WITH_PLAYER "Build Player" OFF) -option(WITH_DECKLINK "Support BlackMagicDesign DeckLink cards in the BGE" ON) option(WITH_OPENCOLORIO "Enable OpenColorIO color management" ${_init_OPENCOLORIO}) # Compositor diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index 15bee2a59ac..d29f086069a 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -685,7 +685,7 @@ function(SETUP_BLENDER_SORTED_LIBS) list_insert_after(BLENDER_SORTED_LIBS "ge_logic_ngnetwork" "extern_bullet") endif() - if(WITH_DECKLINK) + if(WITH_GAMEENGINE_DECKLINK) list(APPEND BLENDER_SORTED_LIBS bf_intern_decklink) endif() diff --git a/intern/CMakeLists.txt b/intern/CMakeLists.txt index b36ea3bb66c..9a5476772ab 100644 --- a/intern/CMakeLists.txt +++ b/intern/CMakeLists.txt @@ -34,7 +34,7 @@ add_subdirectory(mikktspace) add_subdirectory(glew-mx) add_subdirectory(eigen) -if (WITH_DECKLINK) +if (WITH_GAMEENGINE_DECKLINK) add_subdirectory(decklink) endif() diff --git a/source/blenderplayer/CMakeLists.txt b/source/blenderplayer/CMakeLists.txt index 5694a29acf8..206007b8d8b 100644 --- a/source/blenderplayer/CMakeLists.txt +++ b/source/blenderplayer/CMakeLists.txt @@ -215,7 +215,7 @@ endif() list(APPEND BLENDER_SORTED_LIBS bf_intern_locale) endif() - if(WITH_DECKLINK) + if(WITH_GAMEENGINE_DECKLINK) list(APPEND BLENDER_SORTED_LIBS bf_intern_decklink) endif() diff --git a/source/gameengine/VideoTexture/CMakeLists.txt b/source/gameengine/VideoTexture/CMakeLists.txt index aa7267a1d97..1eb09b02e05 100644 --- a/source/gameengine/VideoTexture/CMakeLists.txt +++ b/source/gameengine/VideoTexture/CMakeLists.txt @@ -112,8 +112,8 @@ if(WITH_CODEC_FFMPEG) ) endif() -if(WITH_DECKLINK) - add_definitions(-DWITH_DECKLINK) +if(WITH_GAMEENGINE_DECKLINK) + add_definitions(-DWITH_GAMEENGINE_DECKLINK) endif() blender_add_lib(ge_videotex "${SRC}" "${INC}" "${INC_SYS}") diff --git a/source/gameengine/VideoTexture/DeckLink.cpp b/source/gameengine/VideoTexture/DeckLink.cpp index e9b583dba05..0506756ef2d 100644 --- a/source/gameengine/VideoTexture/DeckLink.cpp +++ b/source/gameengine/VideoTexture/DeckLink.cpp @@ -29,7 +29,7 @@ * \ingroup bgevideotex */ -#ifdef WITH_DECKLINK +#ifdef WITH_GAMEENGINE_DECKLINK // implementation @@ -810,4 +810,4 @@ PyTypeObject DeckLinkType = DeckLink_new, /* tp_new */ }; -#endif /* WITH_DECKLINK */ +#endif /* WITH_GAMEENGINE_DECKLINK */ diff --git a/source/gameengine/VideoTexture/DeckLink.h b/source/gameengine/VideoTexture/DeckLink.h index 58704515fc3..1c96af7b4bc 100644 --- a/source/gameengine/VideoTexture/DeckLink.h +++ b/source/gameengine/VideoTexture/DeckLink.h @@ -32,7 +32,7 @@ #ifndef __DECKLINK_H__ #define __DECKLINK_H__ -#ifdef WITH_DECKLINK +#ifdef WITH_GAMEENGINE_DECKLINK #include "EXP_PyObjectPlus.h" #include <structmember.h> @@ -81,6 +81,6 @@ extern PyTypeObject DeckLinkType; HRESULT decklink_ReadDisplayMode(const char *format, size_t len, BMDDisplayMode *displayMode); HRESULT decklink_ReadPixelFormat(const char *format, size_t len, BMDPixelFormat *displayMode); -#endif /* WITH_DECKLINK */ +#endif /* WITH_GAMEENGINE_DECKLINK */ #endif /* __DECKLINK_H__ */ diff --git a/source/gameengine/VideoTexture/Exception.cpp b/source/gameengine/VideoTexture/Exception.cpp index 322b7f9aef3..9f82987ea62 100644 --- a/source/gameengine/VideoTexture/Exception.cpp +++ b/source/gameengine/VideoTexture/Exception.cpp @@ -225,7 +225,7 @@ void registerAllExceptions(void) SourceVideoEmptyDesc.registerDesc(); SourceVideoCreationDesc.registerDesc(); OffScreenInvalidDesc.registerDesc(); -#ifdef WITH_DECKLINK +#ifdef WITH_GAMEENGINE_DECKLINK AutoDetectionNotAvailDesc.registerDesc(); DeckLinkBadDisplayModeDesc.registerDesc(); DeckLinkBadPixelFormatDesc.registerDesc(); diff --git a/source/gameengine/VideoTexture/VideoDeckLink.cpp b/source/gameengine/VideoTexture/VideoDeckLink.cpp index 50421f47951..d9558a77509 100644 --- a/source/gameengine/VideoTexture/VideoDeckLink.cpp +++ b/source/gameengine/VideoTexture/VideoDeckLink.cpp @@ -29,7 +29,7 @@ * \ingroup bgevideotex */ -#ifdef WITH_DECKLINK +#ifdef WITH_GAMEENGINE_DECKLINK // FFmpeg defines its own version of stdint.h on Windows. // Decklink needs FFmpeg, so it uses its version of stdint.h @@ -1222,5 +1222,5 @@ PyTypeObject VideoDeckLinkType = // DeckLink Capture Delegate Class //////////////////////////////////////////// -#endif // WITH_DECKLINK +#endif // WITH_GAMEENGINE_DECKLINK diff --git a/source/gameengine/VideoTexture/VideoDeckLink.h b/source/gameengine/VideoTexture/VideoDeckLink.h index fc55460b379..be81f63d93c 100644 --- a/source/gameengine/VideoTexture/VideoDeckLink.h +++ b/source/gameengine/VideoTexture/VideoDeckLink.h @@ -32,7 +32,7 @@ #ifndef __VIDEODECKLINK_H__ #define __VIDEODECKLINK_H__ -#ifdef WITH_DECKLINK +#ifdef WITH_GAMEENGINE_DECKLINK /* this needs to be parsed with __cplusplus defined before included through DeckLink_compat.h */ #if defined(__FreeBSD__) @@ -251,6 +251,6 @@ public: }; -#endif /* WITH_DECKLINK */ +#endif /* WITH_GAMEENGINE_DECKLINK */ #endif /* __VIDEODECKLINK_H__ */ diff --git a/source/gameengine/VideoTexture/blendVideoTex.cpp b/source/gameengine/VideoTexture/blendVideoTex.cpp index fd10f8f106f..9b046d46412 100644 --- a/source/gameengine/VideoTexture/blendVideoTex.cpp +++ b/source/gameengine/VideoTexture/blendVideoTex.cpp @@ -128,7 +128,7 @@ static PyMethodDef moduleMethods[] = extern PyTypeObject VideoFFmpegType; extern PyTypeObject ImageFFmpegType; #endif -#ifdef WITH_DECKLINK +#ifdef WITH_GAMEENGINE_DECKLINK extern PyTypeObject VideoDeckLinkType; extern PyTypeObject DeckLinkType; #endif @@ -149,7 +149,7 @@ static void registerAllTypes(void) pyImageTypes.add(&VideoFFmpegType, "VideoFFmpeg"); pyImageTypes.add(&ImageFFmpegType, "ImageFFmpeg"); #endif -#ifdef WITH_DECKLINK +#ifdef WITH_GAMEENGINE_DECKLINK pyImageTypes.add(&VideoDeckLinkType, "VideoDeckLink"); #endif pyImageTypes.add(&ImageBuffType, "ImageBuff"); @@ -201,7 +201,7 @@ PyMODINIT_FUNC initVideoTexturePythonBinding(void) return NULL; if (PyType_Ready(&TextureType) < 0) return NULL; -#ifdef WITH_DECKLINK +#ifdef WITH_GAMEENGINE_DECKLINK if (PyType_Ready(&DeckLinkType) < 0) return NULL; #endif @@ -218,7 +218,7 @@ PyMODINIT_FUNC initVideoTexturePythonBinding(void) Py_INCREF(&TextureType); PyModule_AddObject(m, "Texture", (PyObject *)&TextureType); -#ifdef WITH_DECKLINK +#ifdef WITH_GAMEENGINE_DECKLINK Py_INCREF(&DeckLinkType); PyModule_AddObject(m, "DeckLink", (PyObject *)&DeckLinkType); #endif |