Cleanup
Properly add libstriezel as a meson dependency
This commit is contained in:
parent
24450dc07d
commit
6ef11e3256
5 changed files with 43 additions and 4 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
tags
|
||||
subprojects/libstriezel/
|
||||
compile_commands.json
|
|
@ -1,6 +1,6 @@
|
|||
project('ducktorrent', 'cpp',
|
||||
version: '0.1.0',
|
||||
meson_version: '>=0.56.0',
|
||||
meson_version: '>=0.63.0',
|
||||
default_options: [
|
||||
'buildtype=release',
|
||||
'cpp_std=gnu++20',
|
||||
|
@ -11,7 +11,6 @@ project('ducktorrent', 'cpp',
|
|||
|
||||
boost_dep = dependency('boost', version: '>=1.75.0')
|
||||
|
||||
libstriezel_proj = subproject('libstriezel')
|
||||
libstriezel_dep = libstriezel_proj.get_variable('libstriezel_dep')
|
||||
libstriezel_dep = dependency('libstriezel')
|
||||
|
||||
subdir('src')
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 12869dd16fbad4bc60eb264be13cf9f9b6b089ba
|
7
subprojects/libstriezel.wrap
Normal file
7
subprojects/libstriezel.wrap
Normal file
|
@ -0,0 +1,7 @@
|
|||
[wrap-git]
|
||||
url = https://gitlab.com/striezel/libstriezel.git
|
||||
revision = 12869dd16fbad4bc60eb264be13cf9f9b6b089ba
|
||||
patch_directory = libstriezel
|
||||
|
||||
[provide]
|
||||
libstriezel = libstriezel_dep
|
31
subprojects/packagefiles/libstriezel/meson.build
Normal file
31
subprojects/packagefiles/libstriezel/meson.build
Normal 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,
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue