Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-12-20 11:57:26 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-12-20 11:57:26 +0400
commita462d69bbf771e49d2fa49589608c375376b42ed (patch)
tree60d85d4131399a0a39dbc582e30a7144b14edc18 /source/creator
parentd433cd65f7127d60e17d05a824290423ad226eae (diff)
Another big patch set by Bastien Montagne, thanks a lot!
* Made Freestyle optional (turned on by default). * Fix for missing bpath.c updates in the previous merge of trunk changes.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/CMakeLists.txt15
-rw-r--r--source/creator/creator.c6
2 files changed, 19 insertions, 2 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 67bf9599baf..e0a38096904 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -36,7 +36,6 @@ blender_include_dirs(
../blender/render/extern/include
../blender/makesdna
../blender/gpu
- ../blender/freestyle
../blender/windowmanager
)
@@ -81,6 +80,11 @@ if(WITH_BINRELOC)
blender_include_dirs(${BINRELOC_INCLUDE_DIRS})
endif()
+if(WITH_FREESTYLE)
+ add_definitions(-DWITH_FREESTYLE)
+ blender_include_dirs(../blender/freestyle)
+endif()
+
# Setup the exe sources and buildinfo
set(SRC
creator.c
@@ -280,15 +284,24 @@ if(WITH_PYTHON)
set(ADDON_EXCLUDE_CONDITIONAL "_addons_contrib/*") # dummy, wont do anything
endif()
+ # do not install freestyle dir if disabled
+ if(NOT WITH_FREESTYLE)
+ set(FREESTYLE_EXCLUDE_CONDITIONAL "freestyle/*")
+ else()
+ set(FREESTYLE_EXCLUDE_CONDITIONAL "_freestyle/*") # dummy, wont do anything
+ endif()
+
install(
DIRECTORY ${CMAKE_SOURCE_DIR}/release/scripts
DESTINATION ${TARGETDIR_VER}
PATTERN ".svn" EXCLUDE
PATTERN "__pycache__" EXCLUDE
PATTERN "${ADDON_EXCLUDE_CONDITIONAL}" EXCLUDE
+ PATTERN "${FREESTYLE_EXCLUDE_CONDITIONAL}" EXCLUDE
)
unset(ADDON_EXCLUDE_CONDITIONAL)
+ unset(FREESTYLE_EXCLUDE_CONDITIONAL)
endif()
# localization
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 3bf02298ddf..bc8ed91dc05 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -102,7 +102,9 @@
#include "BLI_scanfill.h" /* for BLI_setErrorCallBack, TODO, move elsewhere */
-#include "FRS_freestyle.h"
+#ifdef WITH_FREESTYLE
+# include "FRS_freestyle.h"
+#endif
#ifdef WITH_BUILDINFO_HEADER
# define BUILD_DATE
@@ -1369,9 +1371,11 @@ int main(int argc, const char **argv)
CTX_py_init_set(C, 1);
WM_keymap_init(C);
+#ifdef WITH_FREESTYLE
/* initialize Freestyle */
FRS_initialize();
FRS_set_context(C);
+#endif
/* OK we are ready for it */
#ifndef WITH_PYTHON_MODULE