[gnote] Add thread support to build
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Add thread support to build
- Date: Sun, 2 May 2021 18:46:47 +0000 (UTC)
commit 18e1ddd6467c4b40b25b75b5cfe9d1be32307198
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun May 2 21:42:17 2021 +0300
Add thread support to build
src/meson.build | 4 +++-
src/test/meson.build | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/meson.build b/src/meson.build
index 70625c41..0f556422 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -90,6 +90,8 @@ dbus_sources = [
'dbus/searchprovider.cpp',
]
+threads_support = dependency('threads')
+
libgnote_shared_lib = shared_library(
'gnote-@0@'.format(gnote_release),
[ libgnote_sources, dbus_sources ],
@@ -102,7 +104,7 @@ libgnote_shared_lib = shared_library(
gnote = executable(
'gnote',
gnote_sources,
- dependencies: dependencies,
+ dependencies: [ dependencies, threads_support ],
include_directories: root_include_dir,
link_with: libgnote_shared_lib,
install: true,
diff --git a/src/test/meson.build b/src/test/meson.build
index 26f843de..6a01e414 100644
--- a/src/test/meson.build
+++ b/src/test/meson.build
@@ -31,7 +31,7 @@ extra_testee_sources = [
gnoteunittests = executable(
'gnoteunittests',
[test_sources, extra_testee_sources],
- dependencies: [dependencies, unit_test_pp],
+ dependencies: [ dependencies, unit_test_pp, threads_support ],
include_directories: [root_include_dir, src_include_dir],
link_with: libgnote_shared_lib,
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]