se BLI_snprintf() for msvc compat, cleanup CMake file, some bad comments left in.
also on only try build RPM's on linux.
This commit is contained in:
@@ -33,14 +33,16 @@ set(BUILD_REV ${MY_WC_REVISION})
|
|||||||
# Force Package Name
|
# Force Package Name
|
||||||
set(CPACK_PACKAGE_FILE_NAME ${PROJECT_NAME}-${BLENDER_VERSION}-r${BUILD_REV}-${CPACK_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR})
|
set(CPACK_PACKAGE_FILE_NAME ${PROJECT_NAME}-${BLENDER_VERSION}-r${BUILD_REV}-${CPACK_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR})
|
||||||
|
|
||||||
# RPM packages
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
include(build_files/cmake/RpmBuild.cmake)
|
# RPM packages
|
||||||
if(RPMBUILD_FOUND AND NOT WIN32)
|
include(build_files/cmake/RpmBuild.cmake)
|
||||||
set(CPACK_GENERATOR "RPM")
|
if(RPMBUILD_FOUND AND NOT WIN32)
|
||||||
set(CPACK_SET_DESTDIR TRUE)
|
set(CPACK_GENERATOR "RPM")
|
||||||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_DESCRIPTION}")
|
set(CPACK_SET_DESTDIR TRUE)
|
||||||
set(CPACK_RPM_PACKAGE_LICENSE "GPLv2")
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_DESCRIPTION}")
|
||||||
set(CPACK_RPM_PACKAGE_GROUP "Amusements/Graphics")
|
set(CPACK_RPM_PACKAGE_LICENSE "GPLv2")
|
||||||
|
set(CPACK_RPM_PACKAGE_GROUP "Amusements/Graphics")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Mac Bundle
|
# Mac Bundle
|
||||||
|
@@ -258,16 +258,13 @@ static void GPU_print_framebuffer_error(GLenum status, char err_out[256])
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(err_out) {
|
if(err_out) {
|
||||||
snprintf(err_out, 256, "GPUFrameBuffer: framebuffer incomplete error %d '%s'",
|
BLI_snprintf(err_out, 256, "GPUFrameBuffer: framebuffer incomplete error %d '%s'",
|
||||||
(int)status,
|
(int)status, err);
|
||||||
err);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fprintf(stderr, "GPUFrameBuffer: framebuffer incomplete error %d '%s'\n",
|
fprintf(stderr, "GPUFrameBuffer: framebuffer incomplete error %d '%s'\n",
|
||||||
(int)status,
|
(int)status, err);
|
||||||
err);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* GPUTexture */
|
/* GPUTexture */
|
||||||
@@ -349,7 +346,7 @@ static GPUTexture *GPU_texture_create_nD(int w, int h, int n, float *fpixels, in
|
|||||||
|
|
||||||
if (!tex->bindcode) {
|
if (!tex->bindcode) {
|
||||||
if(err_out) {
|
if(err_out) {
|
||||||
snprintf(err_out, 256, "GPUTexture: texture create failed: %d",
|
BLI_snprintf(err_out, 256, "GPUTexture: texture create failed: %d",
|
||||||
(int)glGetError());
|
(int)glGetError());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@@ -148,7 +148,7 @@ if(WITH_BUILDINFO)
|
|||||||
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/buildinfo.h
|
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/buildinfo.h
|
||||||
PROPERTIES GENERATED TRUE
|
PROPERTIES GENERATED TRUE
|
||||||
HEADER_FILE_ONLY TRUE)
|
HEADER_FILE_ONLY TRUE)
|
||||||
|
|
||||||
# add deps below, after adding blender
|
# add deps below, after adding blender
|
||||||
# -------------- done with header values.
|
# -------------- done with header values.
|
||||||
|
|
||||||
@@ -356,6 +356,11 @@ if(WITH_INSTALL)
|
|||||||
PATTERN ".svn" EXCLUDE
|
PATTERN ".svn" EXCLUDE
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install(
|
||||||
|
FILES ${LIBDIR}/gettext/lib/gnu_gettext.dll
|
||||||
|
DESTINATION ${TARGETDIR}/
|
||||||
|
)
|
||||||
|
|
||||||
if(NOT CMAKE_CL_64)
|
if(NOT CMAKE_CL_64)
|
||||||
install(
|
install(
|
||||||
FILES ${LIBDIR}/iconv/lib/iconv.dll
|
FILES ${LIBDIR}/iconv/lib/iconv.dll
|
||||||
@@ -427,8 +432,6 @@ if(WITH_INSTALL)
|
|||||||
"
|
"
|
||||||
)
|
)
|
||||||
|
|
||||||
# TODO, debug
|
|
||||||
|
|
||||||
# doesnt work, todo
|
# doesnt work, todo
|
||||||
# install(CODE "execute_process(COMMAND find ${TARGETDIR}/${BLENDER_VERSION}/python/lib/ -name '*.so' -exec strip -s {} '\;')")
|
# install(CODE "execute_process(COMMAND find ${TARGETDIR}/${BLENDER_VERSION}/python/lib/ -name '*.so' -exec strip -s {} '\;')")
|
||||||
endif()
|
endif()
|
||||||
@@ -443,7 +446,6 @@ if(WITH_INSTALL)
|
|||||||
else()
|
else()
|
||||||
install(
|
install(
|
||||||
FILES
|
FILES
|
||||||
${LIBDIR}/gettext/lib/gnu_gettext.dll # TODO INTERNATIONAL ONLY!
|
|
||||||
${LIBDIR}/png/lib/libpng.dll
|
${LIBDIR}/png/lib/libpng.dll
|
||||||
${LIBDIR}/zlib/lib/zlib.dll
|
${LIBDIR}/zlib/lib/zlib.dll
|
||||||
DESTINATION ${TARGETDIR}/
|
DESTINATION ${TARGETDIR}/
|
||||||
@@ -472,7 +474,7 @@ if(WITH_INSTALL)
|
|||||||
${LIBDIR}/ffmpeg/lib/swscale-0.dll
|
${LIBDIR}/ffmpeg/lib/swscale-0.dll
|
||||||
DESTINATION ${TARGETDIR}/
|
DESTINATION ${TARGETDIR}/
|
||||||
)
|
)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_CODEC_SNDFILE)
|
if(WITH_CODEC_SNDFILE)
|
||||||
@@ -518,7 +520,7 @@ if(WITH_INSTALL)
|
|||||||
COMMAND mkdir ${TARGETDIR}/blender.app/Contents/MacOS/${BLENDER_VERSION}/datafiles/
|
COMMAND mkdir ${TARGETDIR}/blender.app/Contents/MacOS/${BLENDER_VERSION}/datafiles/
|
||||||
COMMAND cp ${CMAKE_SOURCE_DIR}/release/bin/.blender/.bfont.ttf ${TARGETDIR}/blender.app/Contents/MacOS/${BLENDER_VERSION}/datafiles/
|
COMMAND cp ${CMAKE_SOURCE_DIR}/release/bin/.blender/.bfont.ttf ${TARGETDIR}/blender.app/Contents/MacOS/${BLENDER_VERSION}/datafiles/
|
||||||
)
|
)
|
||||||
|
|
||||||
if(WITH_INTERNATIONAL)
|
if(WITH_INTERNATIONAL)
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET blender POST_BUILD MAIN_DEPENDENCY blender
|
TARGET blender POST_BUILD MAIN_DEPENDENCY blender
|
||||||
@@ -526,7 +528,7 @@ if(WITH_INSTALL)
|
|||||||
COMMAND cp -Rf ${CMAKE_SOURCE_DIR}/release/bin/.blender/locale ${TARGETDIR}/blender.app/Contents/MacOS/${BLENDER_VERSION}/datafiles/
|
COMMAND cp -Rf ${CMAKE_SOURCE_DIR}/release/bin/.blender/locale ${TARGETDIR}/blender.app/Contents/MacOS/${BLENDER_VERSION}/datafiles/
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_PYTHON)
|
if(WITH_PYTHON)
|
||||||
set(PYTHON_ZIP "python_${CMAKE_OSX_ARCHITECTURES}.zip")
|
set(PYTHON_ZIP "python_${CMAKE_OSX_ARCHITECTURES}.zip")
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
@@ -537,10 +539,10 @@ if(WITH_INSTALL)
|
|||||||
COMMAND find ${TARGETDIR}/blender.app -name '*.py[co]' -prune -exec rm -rf {} '\;'
|
COMMAND find ${TARGETDIR}/blender.app -name '*.py[co]' -prune -exec rm -rf {} '\;'
|
||||||
COMMAND find ${TARGETDIR}/blender.app -name '__pycache__' -exec rmdir {} '+'
|
COMMAND find ${TARGETDIR}/blender.app -name '__pycache__' -exec rmdir {} '+'
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET blender POST_BUILD MAIN_DEPENDENCY blender
|
TARGET blender POST_BUILD MAIN_DEPENDENCY blender
|
||||||
COMMAND find ${TARGETDIR}/blender.app -name .DS_Store -prune -exec rm -rf {} "\;"
|
COMMAND find ${TARGETDIR}/blender.app -name .DS_Store -prune -exec rm -rf {} "\;"
|
||||||
COMMAND find ${TARGETDIR}/blender.app -name .svn -prune -exec rm -rf {} "\;"
|
COMMAND find ${TARGETDIR}/blender.app -name .svn -prune -exec rm -rf {} "\;"
|
||||||
COMMAND find ${TARGETDIR}/blender.app -name __MACOSX -prune -exec rm -rf {} "\;"
|
COMMAND find ${TARGETDIR}/blender.app -name __MACOSX -prune -exec rm -rf {} "\;"
|
||||||
@@ -603,10 +605,10 @@ endif()
|
|||||||
bf_editor_animation
|
bf_editor_animation
|
||||||
bf_editor_datafiles
|
bf_editor_datafiles
|
||||||
|
|
||||||
bf_render
|
bf_render
|
||||||
bf_intern_opennl
|
bf_intern_opennl
|
||||||
bf_python
|
bf_python
|
||||||
bf_python_ext
|
bf_python_ext
|
||||||
bf_ikplugin
|
bf_ikplugin
|
||||||
bf_modifiers
|
bf_modifiers
|
||||||
bf_blenkernel
|
bf_blenkernel
|
||||||
@@ -616,44 +618,44 @@ endif()
|
|||||||
bf_blenlib
|
bf_blenlib
|
||||||
bf_intern_ghost
|
bf_intern_ghost
|
||||||
bf_intern_string
|
bf_intern_string
|
||||||
bf_blenpluginapi
|
bf_blenpluginapi
|
||||||
bf_imbuf
|
bf_imbuf
|
||||||
bf_avi
|
bf_avi
|
||||||
bf_imbuf_cineon
|
bf_imbuf_cineon
|
||||||
bf_imbuf_openexr
|
bf_imbuf_openexr
|
||||||
bf_imbuf_dds
|
bf_imbuf_dds
|
||||||
bf_readblenfile
|
bf_readblenfile
|
||||||
bf_collada
|
bf_collada
|
||||||
bf_intern_bsp
|
bf_intern_bsp
|
||||||
bf_intern_bop
|
bf_intern_bop
|
||||||
bf_gen_system
|
bf_gen_system
|
||||||
bf_intern_decimate
|
bf_intern_decimate
|
||||||
bf_intern_elbeem
|
bf_intern_elbeem
|
||||||
bf_intern_ik
|
bf_intern_ik
|
||||||
bf_intern_memutil
|
bf_intern_memutil
|
||||||
bf_intern_guardedalloc
|
bf_intern_guardedalloc
|
||||||
bf_intern_ctr
|
bf_intern_ctr
|
||||||
ge_blen_routines
|
ge_blen_routines
|
||||||
ge_converter
|
ge_converter
|
||||||
ge_phys_dummy
|
ge_phys_dummy
|
||||||
ge_phys_bullet
|
ge_phys_bullet
|
||||||
bf_intern_smoke
|
bf_intern_smoke
|
||||||
extern_minilzo
|
extern_minilzo
|
||||||
extern_lzma
|
extern_lzma
|
||||||
ge_logic_ketsji
|
ge_logic_ketsji
|
||||||
ge_phys_common
|
ge_phys_common
|
||||||
ge_logic
|
ge_logic
|
||||||
ge_rasterizer
|
ge_rasterizer
|
||||||
ge_oglrasterizer
|
ge_oglrasterizer
|
||||||
ge_logic_expressions
|
ge_logic_expressions
|
||||||
ge_scenegraph
|
ge_scenegraph
|
||||||
ge_logic_network
|
ge_logic_network
|
||||||
bf_gen_system
|
bf_gen_system
|
||||||
bf_python # duplicate for BPY_driver_exec
|
bf_python # duplicate for BPY_driver_exec
|
||||||
ge_logic_ngnetwork
|
ge_logic_ngnetwork
|
||||||
extern_bullet
|
extern_bullet
|
||||||
ge_logic_loopbacknetwork
|
ge_logic_loopbacknetwork
|
||||||
bf_intern_moto
|
bf_intern_moto
|
||||||
extern_glew
|
extern_glew
|
||||||
extern_openjpeg
|
extern_openjpeg
|
||||||
extern_redcode
|
extern_redcode
|
||||||
|
Reference in New Issue
Block a user