aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_Ecore_X.am
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/Makefile_Ecore_X.am
parentlets not add all sorts of null object access fun! (diff)
downloadefl-f8c480fc831b53c06ca745bf6b6875e503bb3b59.tar.gz
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/Makefile_Ecore_X.am')
-rw-r--r--src/Makefile_Ecore_X.am11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Makefile_Ecore_X.am b/src/Makefile_Ecore_X.am
index 4562e86062..eaff7f5606 100644
--- a/src/Makefile_Ecore_X.am
+++ b/src/Makefile_Ecore_X.am
@@ -6,6 +6,7 @@ lib_LTLIBRARIES += lib/ecore_x/libecore_x.la
installed_ecorexmainheadersdir = $(includedir)/ecore-@VMAJ@
dist_installed_ecorexmainheaders_DATA = \
lib/ecore_x/Ecore_X.h \
+lib/ecore_x/ecore_x_version.h \
lib/ecore_x/Ecore_X_Atoms.h \
lib/ecore_x/Ecore_X_Cursor.h
@@ -119,6 +120,16 @@ lib/eina/libeina.la \
lib_ecore_x_libecore_x_la_LDFLAGS = -no-undefined -version-info @version_info@ @release_info@
+MAINTAINERCLEANFILES += \
+$(top_builddir)/src/lib/ecore_x/ecore_x_version.h
+
+BUILT_SOURCES += \
+$(top_builddir)/src/lib/ecore_x/ecore_x_version.h
+
+$(top_builddir)/src/lib/ecore_x/ecore_x_version.h: $(top_srcdir)/src/lib/ecore_x/ecore_x_version.h.in $(top_builddir)/Makefile
+ $(SED) -e 's/[@]VMAJ[@]/$(VMAJ)/g;s/[@]VMIN[@]/$(VMIN)/g;s/[@]HAVE_ECORE_X_BACKEND[@]/$(HAVE_ECORE_X_BACKEND)/g' $< > $@
+
+
if HAVE_ECORE_X_XCB
MAINTAINERCLEANFILES += \
$(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table.h \