Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/biology/btllib/files/patch-meson.build
16461 views
1
--- meson.build.orig 2023-07-06 15:52:18 UTC
2
+++ meson.build
3
@@ -1,7 +1,7 @@
4
project('btllib', 'cpp',
5
version : '1.6.2',
6
license : 'GPL3',
7
- default_options : [ 'cpp_std=c++17', 'warning_level=3', 'werror=true', 'b_coverage=true' ],
8
+ default_options : [ 'cpp_std=c++17', 'warning_level=3', 'b_coverage=true' ],
9
meson_version : '>= 0.60.0')
10
11
# Configuration
12
@@ -48,22 +48,28 @@ threads_dep = dependency('threads')
13
openmp_dep = dependency('openmp', required : false)
14
15
cmake_options = cmake.subproject_options()
16
-cmake_options.set_override_option('werror', 'false')
17
+#cmake_options.set_override_option('werror', 'false')
18
cmake_options.set_install(false)
19
20
cpptoml_subproject = cmake.subproject('cpptoml', options : cmake_options)
21
cpptomp_dep = cpptoml_subproject.dependency('cpptoml')
22
23
-run_command(meson.project_source_root() + '/scripts/prepare-sdsl')
24
+#run_command(meson.project_source_root() + '/scripts/prepare-sdsl')
25
26
-sdsl_subproject = cmake.subproject('sdsl-lite', options : cmake_options)
27
-sdsl_dep = sdsl_subproject.dependency('sdsl', include_type: 'system')
28
+#sdsl_subproject = cmake.subproject('sdsl-lite', options : cmake_options)
29
30
+#sdsl_dep = sdsl_subproject.dependency('sdsl', include_type: 'system')
31
+
32
+pkg = import('pkgconfig')
33
+sdsl_dep = dependency('sdsl-lite')
34
+#lib = library('foo', dependencies : [bar])
35
+#pkg.generate(lib)
36
+
37
deps = [ threads_dep, openmp_dep, cpptomp_dep, sdsl_dep ]
38
39
# These are unfortunate hacks. Currently, neither cpptoml nor sdsl-lite install their headers (even when set_install(true) is called), and so we need to do it manually
40
meson.add_install_script('scripts/install-cpptoml')
41
-meson.add_install_script('scripts/install-sdsl-lite')
42
+#meson.add_install_script('scripts/install-sdsl-lite')
43
44
argparse_subproject = cmake.subproject('argparse', options : cmake_options)
45
argparse_dep = argparse_subproject.dependency('argparse')
46
@@ -126,7 +132,7 @@ run_target('test-wrappers', command: join_paths(rootpa
47
btllib_include = [ include_directories('include'), include_directories('.') ]
48
btllib_sources = run_command('scripts/get-files', 'src').stdout().strip().split()
49
50
-btllib_lib = static_library('btllib',
51
+btllib_lib = shared_library('btllib',
52
btllib_sources,
53
include_directories : btllib_include,
54
dependencies : deps,
55
56