Properly add libstriezel as a meson dependency
This commit is contained in:
King_DuckZ 2025-04-02 23:52:45 +01:00
commit 6ef11e3256
5 changed files with 43 additions and 4 deletions

@ -1 +0,0 @@
Subproject commit 12869dd16fbad4bc60eb264be13cf9f9b6b089ba

View file

@ -0,0 +1,7 @@
[wrap-git]
url = https://gitlab.com/striezel/libstriezel.git
revision = 12869dd16fbad4bc60eb264be13cf9f9b6b089ba
patch_directory = libstriezel
[provide]
libstriezel = libstriezel_dep

View file

@ -0,0 +1,31 @@
project('libstriezel', 'cpp',
version: '0.1.0',
meson_version: '>=0.56.0',
default_options: [
'buildtype=release',
'cpp_std=gnu++11',
'b_ndebug=if-release',
'c_std=c99',
],
license: 'GPL3',
)
pub_inc = include_directories('hash')
main_target = library(meson.project_name(),
'hash/sha1/BufferSourceUtility.cpp',
'hash/sha1/FileSourceUtility.cpp',
'hash/sha1/sha1.cpp',
'hash/sha256/BufferSource.cpp',
'hash/sha256/BufferSourceUtility.cpp',
'hash/sha256/FileSource.cpp',
'hash/sha256/FileSourceUtility.cpp',
'hash/sha256/MessageSource.cpp',
'hash/sha256/sha256.cpp',
install: true,
)
libstriezel_dep = declare_dependency(
link_with: main_target,
include_directories: pub_inc,
)