Skip to content

Commit

Permalink
fix: deps must be resolved in first setup attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Jan 16, 2024
1 parent 3bf71b3 commit fde19ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,16 @@ jobs:
echo opts=$(meson/resolve-dependencies.py $args --cli) >> $GITHUB_OUTPUT
- name: meson setup
run: |
# use the example INI file, and override some of its options
meson setup --native-file meson/build-iguana.ini build-iguana
meson configure \
# use the example INI file, adding `prefix` and dependency resolution opts
meson setup \
--native-file meson/build-iguana.ini \
--prefix=$(pwd)/iguana \
${{ steps.deps.outputs.opts }} \
build-iguana
# then override project build options
meson configure \
-Dexamples=True \
-Ddocumentation=False \
${{ steps.deps.outputs.opts }} \
${{ matrix.binding_opts }} \
build-iguana
- name: dump build options
Expand Down
4 changes: 2 additions & 2 deletions meson/resolve-dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def ini_string_arr(arr):
# CLI options
cli_opts = []
if(len(pkg_config_path) > 0):
cli_opts.append(f'-Dpkg_config_path=\'{",".join(pkg_config_path)}\'')
cli_opts.append(f'--pkg_config_path=\'{",".join(pkg_config_path)}\'')
if(len(cmake_prefix_path) > 0):
cli_opts.append(f'-Dcmake_prefix_path=\'{",".join(cmake_prefix_path)}\'')
cli_opts.append(f'--cmake_prefix_path=\'{",".join(cmake_prefix_path)}\'')

##################################################
# print
Expand Down

0 comments on commit fde19ad

Please sign in to comment.