[gtksourceview] build: add DEVELOPMENT_BUILD define for pre-release builds



commit 5d2f078e9030223c3e60254effc6e364333c09c3
Author: Christian Hergert <chergert redhat com>
Date:   Tue Sep 22 18:17:59 2020 -0700

    build: add DEVELOPMENT_BUILD define for pre-release builds
    
    This is useful when doing development so that we get extra checking from
    projects using GtkSourceView for nightly builds.

 meson.build | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/meson.build b/meson.build
index ae334942..c34466f6 100644
--- a/meson.build
+++ b/meson.build
@@ -149,6 +149,10 @@ config_h.set('GSV_API_VERSION', api_version)
 config_h.set('PACKAGE_VERSION', version)
 config_h.set10('ENABLE_FONT_CONFIG', fontconfig_dep.found() and pangoft2_dep.found())
 
+if (version_minor % 2 == 1) or (version_minor >= 90)
+  config_h.set10('DEVELOPMENT_BUILD', 1)
+endif
+
 check_headers = [
   ['unistd.h', 'HAVE_UNISTD_H'],
 ]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]