Skip to content

Commit

Permalink
Fix repackaging (#89)
Browse files Browse the repository at this point in the history
automerged PR by conda-forge/automerge-action
  • Loading branch information
github-actions[bot] authored Mar 25, 2024
2 parents 1b899a6 + fed3f9d commit a2434bb
Show file tree
Hide file tree
Showing 12 changed files with 91 additions and 82 deletions.
1 change: 1 addition & 0 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .azure-pipelines/azure-pipelines-osx.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .scripts/run_osx_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .scripts/run_win_build.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions azure-pipelines.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions build-locally.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 0 additions & 34 deletions recipe/bld.bat

This file was deleted.

22 changes: 0 additions & 22 deletions recipe/build.sh

This file was deleted.

42 changes: 42 additions & 0 deletions recipe/build_libsolv.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
if /I "%PKG_NAME%" == "libsolv" (

cmake -B build/ ^
-G "Ninja" ^
-D ENABLE_CONDA=ON ^
-D MULTI_SEMANTICS=ON ^
-D WITHOUT_COOKIEOPEN=ON ^
-D CMAKE_MSVC_RUNTIME_LIBRARY="MultiThreadedDLL" ^
-D DISABLE_SHARED=OFF ^
-D ENABLE_STATIC=OFF ^
%CMAKE_ARGS%
if errorlevel 1 exit 1

cmake --build build/ --parallel %CPU_COUNT%
if errorlevel 1 exit 1

cmake --install build/
if errorlevel 1 exit 1

)

if /I "%PKG_NAME%" == "libsolv-static" (

cmake -B build_static/ ^
-G "Ninja" ^
-D ENABLE_CONDA=ON ^
-D MULTI_SEMANTICS=ON ^
-D WITHOUT_COOKIEOPEN=ON ^
-D CMAKE_MSVC_RUNTIME_LIBRARY="MultiThreadedDLL" ^
-D CMAKE_RELEASE_POSTFIX="_static" ^
-D DISABLE_SHARED=ON ^
-D ENABLE_STATIC=ON ^
%CMAKE_ARGS%
if errorlevel 1 exit 1

cmake --build build_static/ --parallel %CPU_COUNT%
if errorlevel 1 exit 1

cmake --install build_static/
if errorlevel 1 exit 1

)
29 changes: 29 additions & 0 deletions recipe/build_libsolv.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash

set -euo pipefail

if [[ $PKG_NAME == "libsolv" ]]; then

cmake -B build/ \
-G Ninja \
-D ENABLE_CONDA=ON \
-D MULTI_SEMANTICS=ON \
-D DISABLE_SHARED=OFF \
-D ENABLE_STATIC=OFF \
${CMAKE_ARGS}
cmake --build build/ --parallel ${CPU_COUNT} --verbose
cmake --install build/

elif [[ $PKG_NAME == "libsolv-static" ]]; then

cmake -B build_static/ \
-G Ninja \
-D ENABLE_CONDA=ON \
-D MULTI_SEMANTICS=ON \
-D DISABLE_SHARED=ON \
-D ENABLE_STATIC=ON \
${CMAKE_ARGS}
cmake --build build_static/ --parallel ${CPU_COUNT} --verbose
cmake --install build_static/

fi
19 changes: 5 additions & 14 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ source:
- no_error_subdir_mismatch.patch

build:
number: 0
number: 1
run_exports:
- {{ pin_subpackage(name, max_pin='x.x') }}

Expand All @@ -39,15 +39,8 @@ requirements:

outputs:
- name: libsolv
files:
- "{{ install_prefix }}/bin/"
- "{{ install_prefix }}/include/solv/"
- "{{ install_prefix }}/lib/libsolv*.{{ shlib_ext }}*" # [unix]
- "{{ install_prefix }}/lib/solv.lib" # [win]
- "{{ install_prefix }}/lib/solvext.lib" # [win]
- "{{ install_prefix }}/lib/pkgconfig/libsolv*"
- "{{ install_prefix }}/share/cmake"
- "{{ install_prefix }}/share/man"
script: build_libsolv.sh # [unix]
script: build_libsolv.bat # [win]
requirements:
build:
- {{ compiler('c') }}
Expand Down Expand Up @@ -86,10 +79,8 @@ outputs:
- cmake --build build --target test

- name: libsolv-static
files:
- "{{ install_prefix }}/lib/libsolv*.a*" # [unix]
- "{{ install_prefix }}/lib/solv_static.lib" # [win]
- "{{ install_prefix }}/lib/solvext_static.lib" # [win]
script: build_libsolv.sh # [unix]
script: build_libsolv.bat # [win]
requirements:
build:
- {{ compiler('c') }}
Expand Down

0 comments on commit a2434bb

Please sign in to comment.