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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-11-17 23:43:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-17 23:43:59 +0400
commit8c6057d5e3797478a2d62e37843ded7b8e84436e (patch)
tree864bbac104e273d189097c1d68010efc8b638ad0 /source
parent14e103b8278e43ba5c8d01dbb055d5cd81799689 (diff)
exclude addons_contrib/ for release builds.
Diffstat (limited to 'source')
-rw-r--r--source/creator/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index ff82b836981..fa68704c7cd 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -276,12 +276,23 @@ install(
if(WITH_PYTHON)
# install(CODE "message(\"copying blender scripts...\")")
+
+ # exclude addons_contrib if release
+ if("${BLENDER_VERSION_CYCLE}" STREQUAL "release")
+ set(ADDON_EXCLUDE_CONDITIONAL "addons_contrib/*")
+ else()
+ set(ADDON_EXCLUDE_CONDITIONAL "_addons_contrib/*") # 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
)
+
+ unset(ADDON_EXCLUDE_CONDITIONAL)
endif()
# localization