Skip to content

Commit aabab08

Browse files
committed
Simplified conda build scripts
1 parent 9a59910 commit aabab08

File tree

4 files changed

+3
-74
lines changed

4 files changed

+3
-74
lines changed

conda/bld.bat

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,6 @@ SET thirdparty_install_dir=%thirdparty_dir%/local
66
mkdir %SRC_DIR%\build
77
mkdir %SRC_DIR%\thirdparty
88

9-
cd %SRC_DIR%\thirdparty
10-
11-
git clone --branch v4.0.0 --depth 1 https://github.com/Microsoft/GSL.git
12-
git clone --branch v3.0.1 --depth 1 https://github.com/HowardHinnant/date
13-
14-
REM Anaconda pkgs/main package 'eigen' for win-64 does not include Eigen3Config.cmake, so we build Eigen ourselves.
15-
git clone --branch 3.3.9 --depth 1 https://gitlab.com/libeigen/eigen.git eigen
16-
17-
cd %SRC_DIR%/thirdparty/date
18-
cmake -G Ninja ^
19-
-DCMAKE_BUILD_TYPE=Release ^
20-
-DBUILD_TZ_LIB=ON ^
21-
-DUSE_SYSTEM_TZ_DB=ON ^
22-
-DENABLE_DATE_TESTING=OFF ^
23-
-DCMAKE_INSTALL_PREFIX=../local ^
24-
-S . -B .
25-
if %ERRORLEVEL% NEQ 0 exit %ERRORLEVEL%
26-
cmake --build . --target install
27-
if %ERRORLEVEL% NEQ 0 exit %ERRORLEVEL%
28-
29-
cd %SRC_DIR%/thirdparty/GSL
30-
cmake -G Ninja ^
31-
-DCMAKE_BUILD_TYPE=Release ^
32-
-DGSL_TEST=OFF ^
33-
-DCMAKE_INSTALL_PREFIX=../local ^
34-
-S . -B .
35-
if %ERRORLEVEL% NEQ 0 exit %ERRORLEVEL%
36-
cmake --build . --target install
37-
if %ERRORLEVEL% NEQ 0 exit %ERRORLEVEL%
38-
39-
mkdir %SRC_DIR%\thirdparty\eigen\build
40-
cd %SRC_DIR%\thirdparty\eigen\build
41-
cmake -G Ninja ^
42-
-DCMAKE_BUILD_TYPE=Release ^
43-
-DCMAKE_INSTALL_PREFIX=../local ^
44-
-S .. -B .
45-
if %ERRORLEVEL% NEQ 0 exit %ERRORLEVEL%
46-
cmake --build . --target install
47-
if %ERRORLEVEL% NEQ 0 exit %ERRORLEVEL%
48-
499
cd %SRC_DIR%/build
5010

5111
cmake ^
@@ -55,12 +15,7 @@ cmake ^
5515
-DPACKAGE_VERSION_COMMITHASH=%GIT_FULL_HASH% ^
5616
-DCMAKE_INSTALL_PREFIX:PATH="%PREFIX%" ^
5717
-DCMAKE_PREFIX_PATH:PATH="%CMAKE_PREFIX_PATH%" ^
58-
-DCMAKE_FIND_ROOT_PATH:PATH="%SRC_DIR%\thirdparty\local" ^
5918
-DCMAKE_MODULE_PATH:PATH="%RECIPE_DIR%\cmake" ^
60-
-Ddate_DIR="%SRC_DIR%\thirdparty\local\CMake" ^
61-
-Dfmt_DIR:PATH="%SRC_DIR%\thirdparty\local\lib\cmake\fmt" ^
62-
-Dspdlog_DIR:PATH="%SRC_DIR%\thirdparty\local\lib\cmake\spdlog" ^
63-
-DMicrosoft.GSL_DIR="%SRC_DIR%\thirdparty\local\share\cmake\Microsoft.GSL" ^
6419
-DGDX_ENABLE_OPENMP=OFF ^
6520
-DGDX_AVX2=OFF ^
6621
-DGDX_ENABLE_SIMD=OFF ^
@@ -73,7 +28,6 @@ cmake ^
7328
-DGDX_INSTALL_DEVELOPMENT_FILES=OFF ^
7429
-DPython3_ROOT_DIR="%PREFIX%" ^
7530
-DPython3_FIND_VIRTUALENV=ONLY ^
76-
--debug-find-pkg=Microsoft.GSL ^
7731
-S .. -B .
7832
if %ERRORLEVEL% NEQ 0 exit %ERRORLEVEL%
7933
cmake --build . --target install

conda/build.sh

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,6 @@
22
set -e
33

44
mkdir ${SRC_DIR}/build
5-
mkdir ${SRC_DIR}/thirdparty
6-
mkdir -p ${SRC_DIR}/thirdparty/local/share/cmake
7-
8-
cd ${SRC_DIR}/thirdparty
9-
10-
git clone --branch v4.0.0 --depth 1 https://github.com/Microsoft/GSL.git
11-
git clone --branch v3.0.1 --depth 1 https://github.com/HowardHinnant/date
12-
13-
cd ${SRC_DIR}/thirdparty/GSL
14-
cmake -G Ninja \
15-
-DCMAKE_BUILD_TYPE=Release \
16-
-DGSL_TEST=OFF \
17-
-DCMAKE_INSTALL_PREFIX=../local \
18-
-S . -B .
19-
cmake --build . --target install
20-
21-
cd ${SRC_DIR}/thirdparty/date
22-
cmake -G Ninja \
23-
-DCMAKE_BUILD_TYPE=Release \
24-
-DBUILD_TZ_LIB=ON \
25-
-DUSE_SYSTEM_TZ_DB=ON \
26-
-DENABLE_DATE_TESTING=OFF \
27-
-DCMAKE_INSTALL_PREFIX=../local \
28-
-S . -B .
29-
cmake --build . --target install
305

316
cd ${SRC_DIR}/build
327
# unset the SYSCONFIGDATA_NAME otherwise pybind11 python module extension detection fails
@@ -36,7 +11,7 @@ cmake \
3611
${CMAKE_ARGS} \
3712
-DPACKAGE_VERSION_COMMITHASH=${GIT_FULL_HASH} \
3813
-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} \
39-
-DCMAKE_FIND_ROOT_PATH:PATH="${SRC_DIR}\thirdparty\local;${PREFIX};${BUILD_PREFIX}/x86_64-conda-linux-gnu/sysroot" \
14+
-DCMAKE_FIND_ROOT_PATH:PATH="${PREFIX};${BUILD_PREFIX}/x86_64-conda-linux-gnu/sysroot" \
4015
-DCMAKE_MODULE_PATH="${RECIPE_DIR}/cmake" \
4116
-DGDX_DISABLE_OPENMP=OFF \
4217
-DGDX_ENABLE_TOOLS=OFF \

deps/vcpkg

Submodule vcpkg updated 223 files

0 commit comments

Comments
 (0)