Skip to content

Commit

Permalink
Set windows to search for .a files as well
Browse files Browse the repository at this point in the history
  • Loading branch information
makepath-alex committed Dec 19, 2024
1 parent b784ca2 commit 797d750
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
2 changes: 1 addition & 1 deletion recipes/rte-rrtmgp/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ cmake --build . -- -j%NUMBER_OF_PROCESSORS%
ctest --output-on-failure --test-dir . -V

:: Manually copy libraries, binaries, and Fortran module files to %PREFIX%
xcopy /s /y build\*.lib %PREFIX%\lib\
xcopy /s /y build\*.a %PREFIX%\lib\
xcopy /s /y build\*.mod %PREFIX%\include\
32 changes: 11 additions & 21 deletions recipes/rte-rrtmgp/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package:
source:
# TODO: Set `makepath-cmake` to {{ version }} when we have real version
url: https://github.com/makepath-alex/rte-rrtmgp/archive/refs/heads/conda-recipe-dev.zip
sha256: f896d4e2c23bace17b49a669b85d132fd10052d8b82d83c16779af398698f82a
sha256: 2407de8bdf483946dcf294ee270b90ee4b02591991b8a08c7d818c5a4c5b9bdb

build:
number: 0
Expand Down Expand Up @@ -49,30 +49,20 @@ requirements:
test:
commands:
# Check if the files exists
# Unix
- test -f $PREFIX/lib/librrtmgp.a # [unix]
- test -f $PREFIX/lib/librrtmgpkernels.a # [unix]
- test -f $PREFIX/lib/librte.a # [unix]
- test -f $PREFIX/lib/librtekernels.a # [unix]
# Win
- test -f $PREFIX/lib/librrtmgp.lib # [win]
- test -f $PREFIX/lib/librrtmgpkernels.lib # [win]
- test -f $PREFIX/lib/librte.lib # [win]
- test -f $PREFIX/lib/librtekernels.lib # [win]
# Unix & Win (we build with mingw, so it generates .a files)
- test -f $PREFIX/lib/librrtmgp.a
- test -f $PREFIX/lib/librrtmgpkernels.a
- test -f $PREFIX/lib/librte.a
- test -f $PREFIX/lib/librtekernels.a

outputs:
- name: rte_rrtmgp
files:
# Unix
- lib/librrtmgp.a # [unix]
- lib/librrtmgpkernels.a # [unix]
- lib/librte.a # [unix]
- lib/librtekernels.a # [unix]
# Win
- lib/librrtmgp.lib # [win]
- lib/librrtmgpkernels.lib # [win]
- lib/librte.lib # [win]
- lib/librtekernels.lib # [win]
# Unix & Win
- lib/librrtmgp.a
- lib/librrtmgpkernels.a
- lib/librte.a
- lib/librtekernels.a

about:
home: https://github.com/earth-system-radiation/rte-rrtmgp
Expand Down

0 comments on commit 797d750

Please sign in to comment.