mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
separated the recipes
This commit is contained in:
29
conda-recipes/main-library/build.sh
Executable file
29
conda-recipes/main-library/build.sh
Executable file
@ -0,0 +1,29 @@
|
||||
# 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 .. -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_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
|
||||
|
||||
export SLSDETNAME=automated_tests
|
||||
CTEST_OUTPUT_ON_FAILURE=1 ctest -j 1
|
26
conda-recipes/main-library/conda_build_config.yaml
Normal file
26
conda-recipes/main-library/conda_build_config.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
python:
|
||||
# - 3.8
|
||||
# - 3.9
|
||||
# - 3.10
|
||||
# - 3.11
|
||||
# - 3.12
|
||||
- 3.13
|
||||
|
||||
c_compiler:
|
||||
- gcc # [linux]
|
||||
|
||||
c_compiler_version:
|
||||
- 13 # [linux]
|
||||
|
||||
c_stdlib:
|
||||
- sysroot # [linux]
|
||||
|
||||
cxx_compiler:
|
||||
- gxx # [linux]
|
||||
|
||||
|
||||
cxx_compiler_version:
|
||||
- 13 # [linux]
|
||||
|
||||
c_stdlib_version: # [linux]
|
||||
- 2.17 # [linux]
|
5
conda-recipes/main-library/copy_gui.sh
Executable file
5
conda-recipes/main-library/copy_gui.sh
Executable file
@ -0,0 +1,5 @@
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-other
|
||||
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
||||
#Copy the GUI
|
||||
mkdir -p $PREFIX/bin
|
||||
cp build/install/bin/slsDetectorGui $PREFIX/bin/.
|
23
conda-recipes/main-library/copy_lib.sh
Executable file
23
conda-recipes/main-library/copy_lib.sh
Executable file
@ -0,0 +1,23 @@
|
||||
# # SPDX-License-Identifier: LGPL-3.0-or-other
|
||||
# # Copyright (C) 2021 Contributors to the SLS Detector Package
|
||||
|
||||
# mkdir -p $PREFIX/lib
|
||||
# mkdir -p $PREFIX/bin
|
||||
# mkdir -p $PREFIX/include/sls
|
||||
# # mkdir $PREFIX/include/slsDetectorPackage
|
||||
|
||||
# #Shared and static libraries
|
||||
# cp build/install/lib/* $PREFIX/lib/
|
||||
|
||||
# #Binaries
|
||||
# cp build/install/bin/sls_detector_acquire $PREFIX/bin/.
|
||||
# cp build/install/bin/sls_detector_acquire_zmq $PREFIX/bin/.
|
||||
# cp build/install/bin/sls_detector_get $PREFIX/bin/.
|
||||
# cp build/install/bin/sls_detector_put $PREFIX/bin/.
|
||||
# cp build/install/bin/sls_detector_help $PREFIX/bin/.
|
||||
# cp build/install/bin/slsReceiver $PREFIX/bin/.
|
||||
# cp build/install/bin/slsMultiReceiver $PREFIX/bin/.
|
||||
|
||||
|
||||
# cp build/install/include/sls/* $PREFIX/include/sls
|
||||
# cp -rv build/install/share $PREFIX
|
6
conda-recipes/main-library/copy_moench.sh
Normal file
6
conda-recipes/main-library/copy_moench.sh
Normal file
@ -0,0 +1,6 @@
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-other
|
||||
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
||||
|
||||
#Copy the Moench executables
|
||||
mkdir -p $PREFIX/bin
|
||||
cp build/install/bin/moench* $PREFIX/bin/.
|
104
conda-recipes/main-library/meta.yaml
Executable file
104
conda-recipes/main-library/meta.yaml
Executable file
@ -0,0 +1,104 @@
|
||||
package:
|
||||
name: sls_detector_software
|
||||
version: 2025.3.19
|
||||
|
||||
|
||||
source:
|
||||
path: ../..
|
||||
|
||||
build:
|
||||
number: 0
|
||||
binary_relocation: True
|
||||
rpaths:
|
||||
- lib/
|
||||
|
||||
requirements:
|
||||
build:
|
||||
- {{ compiler('c') }}
|
||||
- {{ stdlib("c") }}
|
||||
- {{ compiler('cxx') }}
|
||||
|
||||
- cmake
|
||||
- ninja
|
||||
- qt 5.*
|
||||
# - xorg-libx11
|
||||
# - xorg-libice
|
||||
# - xorg-libxext
|
||||
# - xorg-libsm
|
||||
# - xorg-libxau
|
||||
# - xorg-libxrender
|
||||
# - xorg-libxfixes
|
||||
# - {{ cdt('mesa-libgl-devel') }} # [linux]
|
||||
# - {{ cdt('mesa-libegl-devel') }} # [linux]
|
||||
# - {{ cdt('mesa-dri-drivers') }} # [linux]
|
||||
# - {{ cdt('libselinux') }} # [linux]
|
||||
# - {{ cdt('libxdamage') }} # [linux]
|
||||
# - {{ cdt('libxxf86vm') }} # [linux]
|
||||
# - expat
|
||||
|
||||
host:
|
||||
- libstdcxx-ng
|
||||
- libgcc-ng
|
||||
- libgl-devel # [linux]
|
||||
# - xorg-libx11
|
||||
# - xorg-libice
|
||||
# - xorg-libxext
|
||||
# - xorg-libsm
|
||||
# - xorg-libxau
|
||||
# - xorg-libxrender
|
||||
# - xorg-libxfixes
|
||||
# - expat
|
||||
- libtiff
|
||||
# - libpng
|
||||
|
||||
run:
|
||||
# - libstdcxx-ng
|
||||
# - libgcc-ng
|
||||
|
||||
|
||||
outputs:
|
||||
- name: slsdetlib
|
||||
script: copy_lib.sh
|
||||
|
||||
requirements:
|
||||
build:
|
||||
- {{ compiler('c') }}
|
||||
- {{ stdlib("c") }}
|
||||
- {{ compiler('cxx') }}
|
||||
# - libstdcxx-ng
|
||||
# - libgcc-ng
|
||||
|
||||
run:
|
||||
# - libstdcxx-ng
|
||||
# - libgcc-ng
|
||||
|
||||
|
||||
|
||||
|
||||
- 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
|
26
conda-recipes/python-client/conda_build_config.yaml
Normal file
26
conda-recipes/python-client/conda_build_config.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
python:
|
||||
# - 3.8
|
||||
# - 3.9
|
||||
# - 3.10
|
||||
# - 3.11
|
||||
# - 3.12
|
||||
- 3.13
|
||||
|
||||
c_compiler:
|
||||
- gcc # [linux]
|
||||
|
||||
c_compiler_version:
|
||||
- 13 # [linux]
|
||||
|
||||
c_stdlib:
|
||||
- sysroot # [linux]
|
||||
|
||||
cxx_compiler:
|
||||
- gxx # [linux]
|
||||
|
||||
|
||||
cxx_compiler_version:
|
||||
- 13 # [linux]
|
||||
|
||||
c_stdlib_version: # [linux]
|
||||
- 2.17 # [linux]
|
46
conda-recipes/python-client/meta.yaml
Normal file
46
conda-recipes/python-client/meta.yaml
Normal file
@ -0,0 +1,46 @@
|
||||
package:
|
||||
name: slsdet
|
||||
version: 2025.2.18 #TODO! how to not duplicate this?
|
||||
|
||||
source:
|
||||
path: ../..
|
||||
|
||||
build:
|
||||
number: 0
|
||||
script:
|
||||
- unset CMAKE_GENERATOR && {{ PYTHON }} -m pip install . -vv # [not win]
|
||||
- {{ PYTHON }} -m pip install . -vv # [win]
|
||||
|
||||
requirements:
|
||||
build:
|
||||
- python {{python}}
|
||||
- {{ compiler('c') }}
|
||||
- {{ stdlib("c") }}
|
||||
- {{ compiler('cxx') }}
|
||||
|
||||
|
||||
host:
|
||||
- cmake
|
||||
- ninja
|
||||
- python {{python}}
|
||||
- pip
|
||||
- scikit-build-core
|
||||
- pybind11 >=2.13.0
|
||||
- fmt
|
||||
- zeromq
|
||||
- nlohmann_json
|
||||
- catch2
|
||||
|
||||
run:
|
||||
- python {{python}}
|
||||
- numpy
|
||||
|
||||
|
||||
test:
|
||||
imports:
|
||||
- slsdet
|
||||
|
||||
|
||||
about:
|
||||
summary: An example project built with pybind11 and scikit-build.
|
||||
# license_file: LICENSE
|
Reference in New Issue
Block a user