This commit is contained in:
Fröjd Lars Erik
2025-03-19 16:37:37 +01:00
parent d9a50ad9f4
commit 2f390971e6
5 changed files with 199 additions and 182 deletions

View File

@@ -8,12 +8,12 @@ if [ ! -d "install" ]; then
mkdir install
fi
cd build
cmake .. \
cmake .. -G Ninja \
-DCMAKE_PREFIX_PATH=$CONDA_PREFIX \
-DCMAKE_INSTALL_PREFIX=install \
-DSLS_USE_TEXTCLIENT=ON \
-DSLS_USE_RECEIVER=ON \
-DSLS_USE_GUI=ON \
-DSLS_USE_GUI=OFF \
-DSLS_USE_MOENCH=ON\
-DSLS_USE_TESTS=ON \
-DSLS_USE_PYTHON=OFF \
@@ -25,4 +25,5 @@ echo "Building using: ${NCORES} cores"
cmake --build . -- -j${NCORES}
cmake --build . --target install
export SLSDETNAME=automated_tests
CTEST_OUTPUT_ON_FAILURE=1 ctest -j 1

View File

@@ -6,3 +6,11 @@ python:
# - 3.12
- 3.13
c_compiler_version: # [unix]
- 11 # [linux]
cxx_compiler_version:
- 11 # [linux]
c_stdlib_version: # [linux]
- 2.17 # [linux]

View File

@@ -15,8 +15,9 @@ build:
requirements:
build:
- {{ compiler('c') }}
- {{compiler('cxx')}}
- {{ compiler('cxx') }}
- cmake
- ninja
- qt 5.*
- xorg-libx11
- xorg-libice
@@ -34,8 +35,8 @@ requirements:
- expat
host:
- libstdcxx-ng
- libgcc-ng
# - libstdcxx-ng
# - libgcc-ng
- xorg-libx11
- xorg-libice
- xorg-libxext
@@ -44,10 +45,12 @@ requirements:
- xorg-libxrender
- xorg-libxfixes
- expat
- libtiff
- libpng
run:
- libstdcxx-ng
- libgcc-ng
# - libstdcxx-ng
# - libgcc-ng
outputs:
@@ -58,70 +61,68 @@ outputs:
build:
- {{ compiler('c') }}
- {{compiler('cxx')}}
- libstdcxx-ng
- libgcc-ng
# - libstdcxx-ng
# - libgcc-ng
run:
- libstdcxx-ng
- libgcc-ng
# - libstdcxx-ng
# - libgcc-ng
- name: slsdet
script:
- unset CMAKE_GENERATOR && {{ PYTHON }} -m pip install . -vv # [not win]
# - name: slsdet
# script: build_pylib.sh
requirements:
build:
- python {{python}}
- {{ compiler('c') }}
- {{compiler('cxx')}}
# - {{ pin_subpackage('slsdetlib', exact=True) }} #discuss keeping pinning for simplicity?
- pybind11>=2.13
# requirements:
# build:
# - python
# - {{ compiler('c') }}
# - {{compiler('cxx')}}
# - {{ pin_subpackage('slsdetlib', exact=True) }}
# - setuptools
# - pybind11=2.13
host:
- cmake
- ninja
- python {{python}}
- pip
- setuptools
- pybind11>=2.13
- scikit-build-core
# host:
# - python
# - {{ pin_subpackage('slsdetlib', exact=True) }}
# - setuptools
# - pybind11=2.13
run:
- libstdcxx-ng
- libgcc-ng
- python {{python}}
# run:
# - libstdcxx-ng
# - libgcc-ng
# - python
# - numpy
# - {{ pin_subpackage('slsdetlib', exact=True) }}
# test:
# imports:
# - slsdet
test:
imports:
- slsdet
# - name: slsdetgui
# script: copy_gui.sh
# requirements:
# build:
# - {{ compiler('c') }}
# - {{compiler('cxx')}}
# - {{ pin_subpackage('slsdetlib', exact=True) }}
# run:
# - {{ pin_subpackage('slsdetlib', exact=True) }}
# - qt 5.*
# - expat
# - name: moenchzmq
# script: copy_moench.sh
# requirements:
# build:
# - {{ compiler('c') }}
# - {{compiler('cxx')}}
# - {{ pin_subpackage('slsdetlib', exact=True) }}
- name: slsdetgui
script: copy_gui.sh
requirements:
build:
- {{ compiler('c') }}
- {{compiler('cxx')}}
- {{ pin_subpackage('slsdetlib', exact=True) }}
run:
- {{ pin_subpackage('slsdetlib', exact=True) }}
- qt 5.*
- expat
- name: moenchzmq
script: copy_moench.sh
requirements:
build:
- {{ compiler('c') }}
- {{compiler('cxx')}}
- {{ pin_subpackage('slsdetlib', exact=True) }}
run:
- {{ pin_subpackage('slsdetlib', exact=True) }}
- expat
# run:
# - {{ pin_subpackage('slsdetlib', exact=True) }}
# - expat