summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x/ecore_x_version.h.in
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-08 15:26:27 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-08 15:26:27 +0000
commitf8c480fc831b53c06ca745bf6b6875e503bb3b59 (patch)
tree893a0b4853451a1ed63bca842ca5b4d39d4babf8 /src/lib/ecore_x/ecore_x_version.h.in
parentf74c3dae7527665455588647e744e2250cfabe39 (diff)
efl/ecore_x: add version and backend to header file.
instead of -DHAVE_ECORE_X_XCB in the pc, which is a super-hack, add a proper compile-time generated ecore_x_version.h that is included by Ecore_X.h This file contains HAVE_ECORE_X_XLIB or HAVE_ECORE_X_XCB defined and will also define ECORE_X_VERSION_MAJOR and ECORE_X_VERSION_MINOR as per other EFL (Ecore), also defining the runtime version in Ecore_X_Version. SVN revision: 80524
Diffstat (limited to 'src/lib/ecore_x/ecore_x_version.h.in')
-rw-r--r--src/lib/ecore_x/ecore_x_version.h.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/ecore_x/ecore_x_version.h.in b/src/lib/ecore_x/ecore_x_version.h.in
new file mode 100644
index 0000000000..24de5f86fd
--- /dev/null
+++ b/src/lib/ecore_x/ecore_x_version.h.in
@@ -0,0 +1,21 @@
1#ifndef _ECORE_X_VERSION_H_
2#define _ECORE_X_VERSION_H_ 1
3
4#define ECORE_X_VERSION_MAJOR @VMAJ@
5#define ECORE_X_VERSION_MINOR @VMIN@
6
7typedef struct _Ecore_X_Version
8{
9 int major;
10 int minor;
11 int micro;
12 int revision;
13} Ecore_X_Version;
14
15EAPI extern Ecore_X_Version *ecore_x_version;
16
17#ifndef @HAVE_ECORE_X_BACKEND@
18#define @HAVE_ECORE_X_BACKEND@ 1
19#endif
20
21#endif