Path: blob/main/biology/btllib/files/patch-meson.build
16461 views
--- meson.build.orig 2023-07-06 15:52:18 UTC1+++ meson.build2@@ -1,7 +1,7 @@3project('btllib', 'cpp',4version : '1.6.2',5license : 'GPL3',6- default_options : [ 'cpp_std=c++17', 'warning_level=3', 'werror=true', 'b_coverage=true' ],7+ default_options : [ 'cpp_std=c++17', 'warning_level=3', 'b_coverage=true' ],8meson_version : '>= 0.60.0')910# Configuration11@@ -48,22 +48,28 @@ threads_dep = dependency('threads')12openmp_dep = dependency('openmp', required : false)1314cmake_options = cmake.subproject_options()15-cmake_options.set_override_option('werror', 'false')16+#cmake_options.set_override_option('werror', 'false')17cmake_options.set_install(false)1819cpptoml_subproject = cmake.subproject('cpptoml', options : cmake_options)20cpptomp_dep = cpptoml_subproject.dependency('cpptoml')2122-run_command(meson.project_source_root() + '/scripts/prepare-sdsl')23+#run_command(meson.project_source_root() + '/scripts/prepare-sdsl')2425-sdsl_subproject = cmake.subproject('sdsl-lite', options : cmake_options)26-sdsl_dep = sdsl_subproject.dependency('sdsl', include_type: 'system')27+#sdsl_subproject = cmake.subproject('sdsl-lite', options : cmake_options)2829+#sdsl_dep = sdsl_subproject.dependency('sdsl', include_type: 'system')30+31+pkg = import('pkgconfig')32+sdsl_dep = dependency('sdsl-lite')33+#lib = library('foo', dependencies : [bar])34+#pkg.generate(lib)35+36deps = [ threads_dep, openmp_dep, cpptomp_dep, sdsl_dep ]3738# 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 manually39meson.add_install_script('scripts/install-cpptoml')40-meson.add_install_script('scripts/install-sdsl-lite')41+#meson.add_install_script('scripts/install-sdsl-lite')4243argparse_subproject = cmake.subproject('argparse', options : cmake_options)44argparse_dep = argparse_subproject.dependency('argparse')45@@ -126,7 +132,7 @@ run_target('test-wrappers', command: join_paths(rootpa46btllib_include = [ include_directories('include'), include_directories('.') ]47btllib_sources = run_command('scripts/get-files', 'src').stdout().strip().split()4849-btllib_lib = static_library('btllib',50+btllib_lib = shared_library('btllib',51btllib_sources,52include_directories : btllib_include,53dependencies : deps,545556