build_environment: blosc 1.14.4
authorRay Molenkamp <github@lazydodo.com>
Sat, 11 Aug 2018 21:34:11 +0000 (15:34 -0600)
committerRay Molenkamp <github@lazydodo.com>
Sat, 11 Aug 2018 21:34:11 +0000 (15:34 -0600)
build_files/build_environment/cmake/blosc.cmake
build_files/build_environment/cmake/harvest.cmake
build_files/build_environment/cmake/versions.cmake
build_files/build_environment/patches/blosc.diff

index 9a5ef745985c45d1585c6878e7794b9a9cd18ad6..02f98dfe1f3dea6041cd151e8e9846dcf6f16080 100644 (file)
@@ -33,7 +33,7 @@ ExternalProject_Add(external_blosc
        DOWNLOAD_DIR ${DOWNLOAD_DIR}
        URL_HASH MD5=${BLOSC_HASH}
        PREFIX ${BUILD_DIR}/blosc
-       PATCH_COMMAND ${PATCH_CMD} --verbose -p 1 -N -d ${BUILD_DIR}/blosc/src/external_blosc < ${PATCH_DIR}/blosc.diff
+       #PATCH_COMMAND ${PATCH_CMD} --verbose -p 1 -N -d ${BUILD_DIR}/blosc/src/external_blosc < ${PATCH_DIR}/blosc.diff
        CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${LIBDIR}/blosc ${DEFAULT_CMAKE_FLAGS} ${BLOSC_EXTRA_ARGS}
        INSTALL_DIR ${LIBDIR}/blosc
 )
@@ -48,3 +48,20 @@ if(WIN32)
                external_pthreads
        )
 endif()
+
+if (WIN32)
+       if(BUILD_MODE STREQUAL Release)
+               ExternalProject_Add_Step(external_blosc after_install
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/blosc/lib/libblosc.lib ${HARVEST_TARGET}/blosc/lib/libblosc.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/blosc/include/ ${HARVEST_TARGET}/blosc/include/
+                       DEPENDEES install
+               )
+       endif()
+       if(BUILD_MODE STREQUAL Debug)
+               ExternalProject_Add_Step(external_blosc after_install
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/blosc/lib/libblosc_d.lib ${HARVEST_TARGET}/blosc/lib/libblosc_d.lib
+                       DEPENDEES install
+               )
+       endif()
+endif()
+
index 860800f05b88c96c0fd04b4e93fab7a8908fbc8e..277e414a7d9afa07a0ebc035aa23a04cb1b231b7 100644 (file)
@@ -78,9 +78,6 @@ if(BUILD_MODE STREQUAL Release)
                                ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/osl/ ${HARVEST_TARGET}/osl &&
                                # OpenVDB
                                ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/openVDB/ ${HARVEST_TARGET}/openVDB &&
-                               # blosc
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/blosc/lib/libblosc.lib ${HARVEST_TARGET}/blosc/lib/libblosc.lib &&
-                               ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/blosc/include/ ${HARVEST_TARGET}/blosc/include/ &&
                                # tbb
                                ${CMAKE_COMMAND} -E copy ${LIBDIR}/tbb/lib/tbb_static.lib ${HARVEST_TARGET}/tbb/lib/tbb.lib &&
                                ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/tbb/include/ ${HARVEST_TARGET}/tbb/include/ &&
@@ -126,8 +123,6 @@ if(BUILD_MODE STREQUAL Debug)
                                ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/pcre.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/pcre_d.lib &&
                                ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/UTF.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/UTF_d.lib &&
                                ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/xml.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/xml_d.lib &&
-                               # blosc
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/blosc/lib/libblosc_d.lib ${HARVEST_TARGET}/blosc/lib/libblosc_d.lib &&
                                # osl
                                ${CMAKE_COMMAND} -E copy ${LIBDIR}/osl/lib/oslcomp.lib ${HARVEST_TARGET}/osl/lib/oslcomp_d.lib &&
                                ${CMAKE_COMMAND} -E copy ${LIBDIR}/osl/lib/oslexec.lib ${HARVEST_TARGET}/osl/lib/oslexec_d.lib &&
index 490688016a4b12ad76acd7742a27331139c04b63..27cd1d200e0105faf11d3a2abe896b19021bb804 100644 (file)
@@ -37,9 +37,9 @@ set(BOOST_VERSION_NODOTS 1_68_0)
 set(BOOST_URI https://dl.bintray.com/boostorg/release/${BOOST_VERSION}/source/boost_${BOOST_VERSION_NODOTS}.tar.gz)
 set(BOOST_HASH 5d8b4503582fffa9eefdb9045359c239)
   
-set(BLOSC_VERSION 1.7.1)
-set(BLOSC_URI https://github.com/Blosc/c-blosc/archive/v${BLOSC_VERSION}.zip)
-set(BLOSC_HASH ff5cc729a5a25934ef714217218eed26)
+set(BLOSC_VERSION 1.14.4)
+set(BLOSC_URI https://github.com/Blosc/c-blosc/archive/v${BLOSC_VERSION}.tar.gz)
+set(BLOSC_HASH e80dfc71e4cba03b8d01ed0876547ffe)
 
 set(PTHREADS_VERSION 2-9-1)
 set(PTHREADS_URI ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-${PTHREADS_VERSION}-release.tar.gz)
index 3bd6ef281446878f9c92d36aa23088dc6c9c36f5..2c473d3b6323c21e370cb5068ebc8adbb47a565c 100644 (file)
@@ -10,24 +10,22 @@ diff -Naur src/blosc/CMakeLists.txt external_blosc/blosc/CMakeLists.txt
      endif(NOT Threads_FOUND)
  else(WIN32)
      find_package(Threads REQUIRED)
-diff -Naur src/blosc/blosc.c external_blosc/blosc/blosc.c
---- src/blosc/blosc.c  2016-02-03 10:26:28 -0700
-+++ external_blosc/blosc/blosc.c       2017-03-03 09:01:50 -0700
-@@ -49,12 +49,12 @@
+diff -Naur external_blosc.orig/blosc/blosc.c external_blosc/blosc/blosc.c
+--- external_blosc.orig/blosc/blosc.c   2018-07-30 04:56:38 -0600
++++ external_blosc/blosc/blosc.c        2018-08-11 15:27:26 -0600
+@@ -56,14 +56,7 @@
    #include <inttypes.h>
  #endif  /* _WIN32 */
--#if defined(_WIN32) && !defined(__GNUC__)
+
+-/* Include the win32/pthread.h library for all the Windows builds. See #224. */
+-#if defined(_WIN32)
 -  #include "win32/pthread.h"
 -  #include "win32/pthread.c"
 -#else
-+//#if defined(_WIN32) && !defined(__GNUC__)
-+//  #include "win32/pthread.h"
-+  //#include "win32/pthread.c"
-+//#else
-   #include <pthread.h>
+-  #include <pthread.h>
 -#endif
-+//#endif
- /* If C11 is supported, use it's built-in aligned allocation. */
- #if __STDC_VERSION__ >= 201112L
+-
++#include <pthread.h>
+
+ /* Some useful units */
+ #define KB 1024