Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -3073,9 +3073,10 @@
},
"microsoft-gsl": {
"dependency_names": [
"microsoft_gsl"
"msft_gsl"
],
"versions": [
"4.2.1-1",
"4.2.0-1",
"4.0.0-1",
"3.1.0-1",
Expand Down
11 changes: 5 additions & 6 deletions subprojects/microsoft-gsl.wrap
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[wrap-file]
directory = GSL-4.2.0

source_url = https://github.com/microsoft/GSL/archive/v4.2.0.zip
source_filename = GSL-4.2.0.zip
source_hash = f694e7b0f3debc0c55fe138efb5dd9f5c402989c0dc04e8a74afc9c155cb66b9
directory = GSL-4.2.1
source_url = https://github.com/microsoft/GSL/archive/v4.2.1.zip
source_filename = GSL-4.2.1.zip
source_hash = c9291d95f5f6e5c561990d06a589b01d89e553d0f366f0ce723dd1788e7a6076
patch_directory = microsoft-gsl

[provide]
microsoft_gsl = microsoft_gsl_dep
dependency_names = msft_gsl
19 changes: 19 additions & 0 deletions subprojects/packagefiles/microsoft-gsl/include/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
gsl_hdrs = files(
'gsl/algorithm',
'gsl/assert',
'gsl/byte',
'gsl/gsl',
'gsl/narrow',
'gsl/pointers',
'gsl/span',
'gsl/span_ext',
'gsl/util',
'gsl/zstring',
)

gsl_inc = include_directories('.')

install_headers(
gsl_hdrs,
preserve_path: true,
)
23 changes: 21 additions & 2 deletions subprojects/packagefiles/microsoft-gsl/meson.build
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
project(
'microsoft-gsl',
'cpp',
version: '4.2.0',
version: '4.2.1',
license: 'MIT',
meson_version: '>=0.63.0',

Check notice on line 6 in subprojects/packagefiles/microsoft-gsl/meson.build

View workflow job for this annotation

GitHub Actions / Ubuntu (x86_64)

Minimum Meson version is 0.63.0

0.56.0: oldest version supported by WrapDB 0.59.0: required arg in import 0.63.0: preserve_path arg in install_headers
)

subdir('include')

microsoft_gsl_dep = declare_dependency(
include_directories: include_directories('include'),
include_directories: gsl_inc,
)

meson.override_dependency('msft_gsl', microsoft_gsl_dep)

pkgconfig = import(
'pkgconfig',
required: false,
)

if pkgconfig.found()
pkgconfig.generate(
name: 'msft_gsl',
description: 'Guidelines Support Library',
url: 'https://github.com/microsoft/GSL',
install_dir: get_option('datadir') / 'pkgconfig',
)
endif
Loading