mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-06 12:50:02 +02:00
- renamed conda-recipe folder - added a check to see if build and install folder exists in build.sh (conda recipe) - created VERSION file that has '0.0.0'for developer but can be updated using update_version.py that takes in a version. The script checks for semantic versioning and updates VERSION file - VERSION file also copied along with py files to slsdet in python cmakelist and build_pylib.sh (for conda), also copied in root folder for installations (for no coding purpose) - init.py and setup.py reads this file to get the version (a bit differently to find the VERSION file) - VERSION file read into cmake to get the version and also added to compile definition. So RELEASE removed from versionAPI.h (using SLS_DET_VERSION compile definiton instead) and also removed updateRelease script. - conda getting project version from environment variable SLS_DET_VERSION that is set in build_pylib.sh prior. - added 3.13 python to conda build - anything related to ctb removed from release notes as users will always use developer - sets 0.0.0 to VERSION file by running update_version.py without an argument
29 lines
717 B
Bash
Executable File
29 lines
717 B
Bash
Executable File
# SPDX-License-Identifier: LGPL-3.0-or-other
|
|
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
|
|
if [ ! -d "build" ]; then
|
|
mkdir build
|
|
fi
|
|
if [ ! -d "install" ]; then
|
|
mkdir install
|
|
fi
|
|
cd build
|
|
cmake .. \
|
|
-DCMAKE_PREFIX_PATH=$CONDA_PREFIX \
|
|
-DCMAKE_INSTALL_PREFIX=install \
|
|
-DSLS_USE_TEXTCLIENT=ON \
|
|
-DSLS_USE_RECEIVER=ON \
|
|
-DSLS_USE_GUI=ON \
|
|
-DSLS_USE_MOENCH=ON\
|
|
-DSLS_USE_TESTS=ON \
|
|
-DSLS_USE_PYTHON=OFF \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DSLS_USE_HDF5=OFF\
|
|
|
|
NCORES=$(getconf _NPROCESSORS_ONLN)
|
|
echo "Building using: ${NCORES} cores"
|
|
cmake --build . -- -j${NCORES}
|
|
cmake --build . --target install
|
|
|
|
CTEST_OUTPUT_ON_FAILURE=1 ctest -j 1
|