Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continues #48 #57

Merged
merged 1 commit into from
Mar 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
mkdir build
cd build

REM set environement variables
:: Set environment variables.
set HDF5_EXT_ZLIB=zlib.lib

REM configure step
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE:STRING=RELEASE -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% -DCMAKE_INSTALL_PREFIX:PATH=%LIBRARY_PREFIX% -DHDF5_BUILD_CPP_LIB=ON -DBUILD_SHARED_LIBS:BOOL=ON -DHDF5_BUILD_HL_LIB=ON -DHDF5_BUILD_TOOLS:BOOL=ON -DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=ON %SRC_DIR%
:: Configure step.
cmake -G "NMake Makefiles" ^
-D CMAKE_BUILD_TYPE:STRING=RELEASE ^
-D CMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^
-D CMAKE_INSTALL_PREFIX:PATH=%LIBRARY_PREFIX% ^
-D HDF5_BUILD_CPP_LIB=ON ^
-D BUILD_SHARED_LIBS:BOOL=ON ^
-D HDF5_BUILD_HL_LIB=ON ^
-D HDF5_BUILD_TOOLS:BOOL=ON ^
-D HDF5_ENABLE_Z_LIB_SUPPORT:BOOL=ON ^
-D HDF5_ENABLE_THREADSAFE=ON ^
-D ALLOW_UNSUPPORTED=ON ^
%SRC_DIR%
if errorlevel 1 exit 1

REM Build C libraries and tools
:: Build C libraries and tools.
nmake
if errorlevel 1 exit 1

REM Install step
:: Install step.
nmake install
if errorlevel 1 exit 1
18 changes: 7 additions & 11 deletions recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
#!/bin/bash

# FIXME: This is a hack to make sure the environment is activated.
# The reason this is required is due to the conda-build issue
# mentioned below.
#
# https://github.com/conda/conda-build/issues/910
#
source activate "${CONDA_DEFAULT_ENV}"

if [ "$(uname)" == "Darwin" ]
then
if [ "$(uname)" == "Darwin" ]; then
export CXX="${CXX} -stdlib=libc++"
export LDFLAGS="${LDFLAGS} -Wl,-rpath,$PREFIX/lib"
fi
Expand All @@ -23,8 +14,13 @@ export LIBRARY_PATH="${PREFIX}/lib"
--enable-cxx \
--enable-fortran \
--enable-fortran2003 \
--with-default-plugindir="${PREFIX}/lib/hdf5/plugin"
--with-default-plugindir="${PREFIX}/lib/hdf5/plugin" \
--enable-threadsafe \
--enable-production \
--enable-unsupported \
--with-ssl

# --disable-static \
make -j "${CPU_COUNT}"
make check
make install
Expand Down
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ source:
- test_Makefile.in.patch

build:
number: 9
number: 10
skip: True # [py==36]
features:
- vc9 # [win and py27]
Expand Down