Add a dependency for function2

std::function requires the function to be CopyConstructable and thus
does not allow you to capture by move, which is exactly what we need.
This commit is contained in:
Robbert van der Helm
2020-10-27 22:52:57 +01:00
parent 28886e7073
commit 1a18ea8614
4 changed files with 16 additions and 0 deletions
+1
View File
@@ -499,6 +499,7 @@ the following dependencies:
The following dependencies are included in the repository as a Meson wrap:
- bitsery
- function2
- tomlplusplus
The project can then be compiled as follows:
+5
View File
@@ -73,6 +73,7 @@ boost_filesystem_dep = dependency(
static : with_static_boost
)
bitsery_dep = subproject('bitsery').get_variable('bitsery_dep')
function2_dep = subproject('function2').get_variable('function2_dep')
threads_dep = dependency('threads')
tomlplusplus_dep = subproject('tomlplusplus', version : '2.1.0').get_variable('tomlplusplus_dep')
# The built in threads dependency does not know how to handle winegcc
@@ -141,6 +142,7 @@ executable(
boost_dep,
boost_filesystem_dep,
bitsery_dep,
function2_dep,
tomlplusplus_dep,
wine_threads_dep,
xcb_dep
@@ -158,6 +160,7 @@ executable(
boost_dep,
boost_filesystem_dep,
bitsery_dep,
function2_dep,
tomlplusplus_dep,
wine_threads_dep,
xcb_dep
@@ -203,6 +206,7 @@ if with_bitbridge
boost_dep,
boost_filesystem_dep,
bitsery_dep,
function2_dep,
tomlplusplus_dep,
wine_threads_dep,
xcb_dep
@@ -227,6 +231,7 @@ if with_bitbridge
boost_dep,
boost_filesystem_dep,
bitsery_dep,
function2_dep,
tomlplusplus_dep,
wine_threads_dep,
xcb_dep
Binary file not shown.
+10
View File
@@ -0,0 +1,10 @@
[wrap-file]
directory = function2-4.1.0
source_url = https://github.com/Naios/function2/archive/4.1.0.tar.gz
source_filename = function2-4.1.0.tar.gz
source_hash = c3aaeaf93bf90c0f4505a18f1094b51fe28881ce202c3bf78ec4efb336c51981
patch_url = file:./subprojects/function2-patch-4.1.0.tar.xz
patch_filename = function2-patch-4.1.0.tar.xz
patch_hash = 4b966afd862413ea1f3d96484e74401992ec958f1ee2b4cc161f3cb7c36fe7ba