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:
Diffstat (limited to 'build_files/cmake/platform')
-rw-r--r--build_files/cmake/platform/platform_apple.cmake10
-rw-r--r--build_files/cmake/platform/platform_unix.cmake5
-rw-r--r--build_files/cmake/platform/platform_win32.cmake34
3 files changed, 31 insertions, 18 deletions
diff --git a/build_files/cmake/platform/platform_apple.cmake b/build_files/cmake/platform/platform_apple.cmake
index e60760e6cfd..a4de3876243 100644
--- a/build_files/cmake/platform/platform_apple.cmake
+++ b/build_files/cmake/platform/platform_apple.cmake
@@ -132,13 +132,13 @@ if(WITH_FFTW3)
set(FFTW3_LIBPATH ${FFTW3}/lib)
endif()
-set(PNG_LIBRARIES png)
-set(JPEG_LIBRARIES jpeg)
-
set(ZLIB /usr)
set(ZLIB_INCLUDE_DIRS "${ZLIB}/include")
set(ZLIB_LIBRARIES z bz2)
+set(PNG_LIBRARIES png ${ZLIB_LIBRARIES})
+set(JPEG_LIBRARIES jpeg)
+
set(FREETYPE ${LIBDIR}/freetype)
set(FREETYPE_INCLUDE_DIRS ${FREETYPE}/include ${FREETYPE}/include/freetype2)
set(FREETYPE_LIBPATH ${FREETYPE}/lib)
@@ -228,10 +228,6 @@ if(WITH_OPENCOLLADA)
# set(PCRE ${LIBDIR}/pcre)
# set(PCRE_LIBPATH ${PCRE}/lib)
set(PCRE_LIBRARIES pcre)
- # libxml2 is used
- # set(EXPAT ${LIBDIR}/expat)
- # set(EXPAT_LIBPATH ${EXPAT}/lib)
- set(EXPAT_LIB)
endif()
if(WITH_SDL)
diff --git a/build_files/cmake/platform/platform_unix.cmake b/build_files/cmake/platform/platform_unix.cmake
index d4a75e5e5c0..5d46ee751af 100644
--- a/build_files/cmake/platform/platform_unix.cmake
+++ b/build_files/cmake/platform/platform_unix.cmake
@@ -336,6 +336,11 @@ if(WITH_BOOST)
set(BOOST_LIBRARIES ${Boost_LIBRARIES})
set(BOOST_LIBPATH ${Boost_LIBRARY_DIRS})
set(BOOST_DEFINITIONS "-DBOOST_ALL_NO_LIB")
+
+ if(Boost_USE_STATIC_LIBS AND WITH_BOOST_ICU)
+ find_package(IcuLinux)
+ list(APPEND BOOST_LIBRARIES ${ICU_LIBRARIES})
+ endif()
endif()
if(WITH_OPENIMAGEIO)
diff --git a/build_files/cmake/platform/platform_win32.cmake b/build_files/cmake/platform/platform_win32.cmake
index f485490f300..b228930bfb1 100644
--- a/build_files/cmake/platform/platform_win32.cmake
+++ b/build_files/cmake/platform/platform_win32.cmake
@@ -225,7 +225,7 @@ windows_find_package(png)
if(NOT PNG_FOUND)
warn_hardcoded_paths(libpng)
set(PNG_PNG_INCLUDE_DIR ${LIBDIR}/png/include)
- set(PNG_LIBRARIES ${LIBDIR}/png/lib/libpng.lib)
+ set(PNG_LIBRARIES ${LIBDIR}/png/lib/libpng.lib ${ZLIB_LIBRARY})
set(PNG "${LIBDIR}/png")
set(PNG_INCLUDE_DIRS "${PNG}/include")
set(PNG_LIBPATH ${PNG}/lib) # not cmake defined
@@ -269,21 +269,33 @@ if(WITH_OPENCOLLADA)
)
set(OPENCOLLADA_LIBRARIES
- ${OPENCOLLADA}/lib/opencollada/OpenCOLLADASaxFrameworkLoader.lib
- ${OPENCOLLADA}/lib/opencollada/OpenCOLLADAFramework.lib
- ${OPENCOLLADA}/lib/opencollada/OpenCOLLADABaseUtils.lib
- ${OPENCOLLADA}/lib/opencollada/OpenCOLLADAStreamWriter.lib
- ${OPENCOLLADA}/lib/opencollada/MathMLSolver.lib
- ${OPENCOLLADA}/lib/opencollada/GeneratedSaxParser.lib
- ${OPENCOLLADA}/lib/opencollada/xml.lib
- ${OPENCOLLADA}/lib/opencollada/buffer.lib
- ${OPENCOLLADA}/lib/opencollada/ftoa.lib
+ optimized ${OPENCOLLADA}/lib/opencollada/OpenCOLLADASaxFrameworkLoader.lib
+ optimized ${OPENCOLLADA}/lib/opencollada/OpenCOLLADAFramework.lib
+ optimized ${OPENCOLLADA}/lib/opencollada/OpenCOLLADABaseUtils.lib
+ optimized ${OPENCOLLADA}/lib/opencollada/OpenCOLLADAStreamWriter.lib
+ optimized ${OPENCOLLADA}/lib/opencollada/MathMLSolver.lib
+ optimized ${OPENCOLLADA}/lib/opencollada/GeneratedSaxParser.lib
+ optimized ${OPENCOLLADA}/lib/opencollada/xml.lib
+ optimized ${OPENCOLLADA}/lib/opencollada/buffer.lib
+ optimized ${OPENCOLLADA}/lib/opencollada/ftoa.lib
+
+ debug ${OPENCOLLADA}/lib/opencollada/OpenCOLLADASaxFrameworkLoader_d.lib
+ debug ${OPENCOLLADA}/lib/opencollada/OpenCOLLADAFramework_d.lib
+ debug ${OPENCOLLADA}/lib/opencollada/OpenCOLLADABaseUtils_d.lib
+ debug ${OPENCOLLADA}/lib/opencollada/OpenCOLLADAStreamWriter_d.lib
+ debug ${OPENCOLLADA}/lib/opencollada/MathMLSolver_d.lib
+ debug ${OPENCOLLADA}/lib/opencollada/GeneratedSaxParser_d.lib
+ debug ${OPENCOLLADA}/lib/opencollada/xml_d.lib
+ debug ${OPENCOLLADA}/lib/opencollada/buffer_d.lib
+ debug ${OPENCOLLADA}/lib/opencollada/ftoa_d.lib
)
list(APPEND OPENCOLLADA_LIBRARIES ${OPENCOLLADA}/lib/opencollada/UTF.lib)
set(PCRE_LIBRARIES
- ${OPENCOLLADA}/lib/opencollada/pcre.lib
+ optimized ${OPENCOLLADA}/lib/opencollada/pcre.lib
+
+ debug ${OPENCOLLADA}/lib/opencollada/pcre_d.lib
)
endif()