[amtk/meson-msvc: 21/22] meson: Build the programs in tests/
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [amtk/meson-msvc: 21/22] meson: Build the programs in tests/
- Date: Wed, 1 Jul 2020 08:29:14 +0000 (UTC)
commit 6517022e6b400d6e726329a7d7a5cd411275f0a9
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri May 8 14:30:26 2020 +0800
meson: Build the programs in tests/
Rename some items in amtk/meson.build to conform with the variable naming
conventions, and add a meson.build file in order to build the interactive test
programs in tests/.
amtk/meson.build | 6 ++++--
meson.build | 1 +
tests/meson.build | 12 ++++++++++++
3 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/amtk/meson.build b/amtk/meson.build
index d509fd6..9fbff41 100644
--- a/amtk/meson.build
+++ b/amtk/meson.build
@@ -63,8 +63,10 @@ libamtk = library('amtk', amtk_sources, amtk_enums,
include_directories : amtk_incdir,
)
-amtk_dep = declare_dependency(link_with : libamtk,
- include_directories : amtk_incdir)
+AMTK_DEP = declare_dependency(link_with : libamtk,
+ include_directories : amtk_incdir,
+ dependencies: deps,
+)
if get_option('introspection')
GNOME.generate_gir(
diff --git a/meson.build b/meson.build
index f02536b..4c7a871 100644
--- a/meson.build
+++ b/meson.build
@@ -13,3 +13,4 @@ GNOME = import('gnome')
pkg = import('pkgconfig')
subdir('amtk')
+subdir('tests')
diff --git a/tests/meson.build b/tests/meson.build
new file mode 100644
index 0000000..08c010c
--- /dev/null
+++ b/tests/meson.build
@@ -0,0 +1,12 @@
+interactive_tests = [
+ # executable name, sources
+ ['test-headerbar', 'test-headerbar.c'],
+ ['test-traditional-ui', 'test-traditional-ui.c'],
+]
+
+foreach test : interactive_tests
+ executable(
+ test[0], test[1],
+ dependencies: AMTK_DEP,
+ )
+endforeach
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]