[gegl/wip/pippin/meson] gegl: add back GEGL_MAJOR_VERSION etc in gegl-version.h
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/wip/pippin/meson] gegl: add back GEGL_MAJOR_VERSION etc in gegl-version.h
- Date: Sat, 3 Aug 2019 19:52:38 +0000 (UTC)
commit 121b659b2593345ba50d68ab0e5381a2d96c2760
Author: Øyvind Kolås <pippin gimp org>
Date: Fri Aug 2 23:16:52 2019 +0200
gegl: add back GEGL_MAJOR_VERSION etc in gegl-version.h
gegl/{gegl-version.h => gegl-version.h.in} | 7 +++++++
gegl/meson.build | 8 ++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/gegl/gegl-version.h b/gegl/gegl-version.h.in
similarity index 88%
rename from gegl/gegl-version.h
rename to gegl/gegl-version.h.in
index 8c66c7889..0b8a2e62c 100644
--- a/gegl/gegl-version.h
+++ b/gegl/gegl-version.h.in
@@ -19,6 +19,13 @@
#ifndef __GEGL_VERSION_H__
#define __GEGL_VERSION_H__
+#ifndef GEGL_MAJOR_VERSION
+#define GEGL_MAJOR_VERSION @GEGL_MAJOR_VERSION@
+#define GEGL_MINOR_VERSION @GEGL_MINOR_VERSION@
+#define GEGL_MICRO_VERSION @GEGL_MICRO_VERSION@
+#endif
+
+
/**
* gegl_get_version:
* @major: (out caller-allocates): a pointer to a int where the major version number will be stored
diff --git a/gegl/meson.build b/gegl/meson.build
index ce906c597..268d6811a 100644
--- a/gegl/meson.build
+++ b/gegl/meson.build
@@ -16,6 +16,11 @@ gegl_cflags = [
'-DGEGL_LOCALEDIR="@0@"'.format(get_option('localedir')),
]
+gegl_version_h = configure_file(input: 'gegl-version.h.in',
+ output: 'gegl-version.h',
+ configuration: config
+)
+
gegl_introspectable_headers = files(
'gegl.h',
'gegl-apply.h',
@@ -28,8 +33,7 @@ gegl_introspectable_headers = files(
'gegl-random.h',
'gegl-types.h',
'gegl-utils.h',
- 'gegl-version.h',
-)
+) + [ gegl_version_h ]
gegl_headers = files(
'gegl-cpuaccel.h',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]