summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build1
-rw-r--r--tests/libpeas/testing/testing.c2
-rw-r--r--tests/testing-util/testing-util.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 827fcba..8a1b38b 100644
--- a/meson.build
+++ b/meson.build
@@ -78,6 +78,7 @@ config_h.set_quoted('PACKAGE_URL', 'https://wiki.gnome.org/Projects/Libpeas')
config_h.set_quoted('PACKAGE_URL', 'https://wiki.gnome.org/Projects/Libpeas')
config_h.set_quoted('PACKAGE_VERSION', version)
config_h.set_quoted('VERSION', version)
+config_h.set_quoted('VERSION_MAJOR_S', '@0@'.format(version_major))
config_h.set_quoted('GETTEXT_PACKAGE', package_string)
diff --git a/tests/libpeas/testing/testing.c b/tests/libpeas/testing/testing.c
index 49b94f3..011c660 100644
--- a/tests/libpeas/testing/testing.c
+++ b/tests/libpeas/testing/testing.c
@@ -50,7 +50,7 @@ testing_init (gint *argc,
g_irepository_require_private (g_irepository_get_default (),
BUILDDIR "/tests/libpeas/introspection",
- "Introspection", "1.0", 0, &error);
+ "Introspection", VERSION_MAJOR_S, 0, &error);
g_assert_no_error (error);
initialized = TRUE;
diff --git a/tests/testing-util/testing-util.c b/tests/testing-util/testing-util.c
index f35c806..7e751c8 100644
--- a/tests/testing-util/testing-util.c
+++ b/tests/testing-util/testing-util.c
@@ -209,7 +209,7 @@ testing_util_init (void)
g_irepository_require_private (g_irepository_get_default (),
BUILDDIR "/libpeas",
- "Peas", "1.0", 0, &error);
+ "Peas", VERSION_MAJOR_S, 0, &error);
g_assert_no_error (error);
initialized = TRUE;