Changeset View
Changeset View
Standalone View
Standalone View
source/creator/CMakeLists.txt
| Show First 20 Lines • Show All 319 Lines • ▼ Show 20 Lines | |||||
| # important to make a clean install each time, else old scripts get loaded. | # important to make a clean install each time, else old scripts get loaded. | ||||
| install( | install( | ||||
| CODE | CODE | ||||
| "file(REMOVE_RECURSE ${TARGETDIR_VER})" | "file(REMOVE_RECURSE ${TARGETDIR_VER})" | ||||
| ) | ) | ||||
| if(WITH_PYTHON) | if(WITH_PYTHON) | ||||
| # install(CODE "message(\"copying blender scripts...\")") | # install(CODE "message(\"copying blender scripts...\")") | ||||
| # exclude addons_contrib if release | get_property(exclude_dirs GLOBAL PROPERTY PYTHON_MODULE_EXCLUDE) | ||||
| if("${BLENDER_VERSION_CYCLE}" STREQUAL "release" OR | #message("PYTHON EXCLUDE = >${exclude_dirs}<") | ||||
| "${BLENDER_VERSION_CYCLE}" STREQUAL "rc") | |||||
| set(ADDON_EXCLUDE_CONDITIONAL "addons_contrib/*") | |||||
| else() | |||||
| 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( | install( | ||||
| DIRECTORY ${CMAKE_SOURCE_DIR}/release/scripts | DIRECTORY ${CMAKE_SOURCE_DIR}/release/scripts | ||||
| DESTINATION ${TARGETDIR_VER} | DESTINATION ${TARGETDIR_VER} | ||||
| PATTERN ".git" EXCLUDE | REGEX "${exclude_dirs}" EXCLUDE | ||||
campbellbarton: Would rather keep existing PATTERN's - and add REGEX as an extra argument/
Otherwise logic is… | |||||
| PATTERN ".gitignore" EXCLUDE | |||||
| PATTERN ".arcconfig" EXCLUDE | |||||
| PATTERN "__pycache__" EXCLUDE | |||||
| PATTERN "${ADDON_EXCLUDE_CONDITIONAL}" EXCLUDE | |||||
| PATTERN "${FREESTYLE_EXCLUDE_CONDITIONAL}" EXCLUDE | |||||
| ) | ) | ||||
| unset(ADDON_EXCLUDE_CONDITIONAL) | unset(ADDON_EXCLUDE_CONDITIONAL) | ||||
| unset(FREESTYLE_EXCLUDE_CONDITIONAL) | unset(FREESTYLE_EXCLUDE_CONDITIONAL) | ||||
| endif() | endif() | ||||
| # localization | # localization | ||||
| if(WITH_INTERNATIONAL) | if(WITH_INTERNATIONAL) | ||||
| install( | install( | ||||
| DIRECTORY | DIRECTORY | ||||
| ▲ Show 20 Lines • Show All 731 Lines • Show Last 20 Lines | |||||
Would rather keep existing PATTERN's - and add REGEX as an extra argument/
Otherwise logic is spread over different places.