Skip to content

Commit

Permalink
BLD: Add and use argparse for build_exe
Browse files Browse the repository at this point in the history
Co-authored-by: User-DK <[email protected]>
  • Loading branch information
HaoZeke and User-DK committed Aug 24, 2024
1 parent 0fc4255 commit a07a30c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# We can store explicitly what we need
/subprojects/
!/subprojects/fmt.wrap
!/subprojects/argparse.wrap
!/subprojects/tomlplusplus.wrap
*.txt

.cache/
Expand Down
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ seldon_shared_dep = declare_dependency(include_directories : _incdir,
# ------------------------------------

if get_option('build_exe')
_deps += subproject('argparse').get_variable('argparse_dep')
exe = executable('seldon', sources_seldon + 'src/main.cpp',
install : true,
dependencies : _deps,
Expand Down
13 changes: 13 additions & 0 deletions subprojects/argparse.wrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[wrap-file]
directory = argparse-3.0
source_url = https://github.com/p-ranav/argparse/archive/refs/tags/v3.0.tar.gz
source_filename = argparse-3.0.tar.gz
source_hash = ba7b465759bb01069d57302855eaf4d1f7d677f21ad7b0b00b92939645c30f47
patch_filename = argparse_3.0-1_patch.zip
patch_url = https://wrapdb.mesonbuild.com/v2/argparse_3.0-1/get_patch
patch_hash = f83ed766f07c830d3922676c67959f2078a055c07bd360f19e0e114d375d1037
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/argparse_3.0-1/argparse-3.0.tar.gz
wrapdb_version = 3.0-1

[provide]
argparse = argparse_dep

0 comments on commit a07a30c

Please sign in to comment.