summaryrefslogtreecommitdiff
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
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/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 4562e86..eaff7f5 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
6installed_ecorexmainheadersdir = $(includedir)/ecore-@VMAJ@ 6installed_ecorexmainheadersdir = $(includedir)/ecore-@VMAJ@
7dist_installed_ecorexmainheaders_DATA = \ 7dist_installed_ecorexmainheaders_DATA = \
8lib/ecore_x/Ecore_X.h \ 8lib/ecore_x/Ecore_X.h \
9lib/ecore_x/ecore_x_version.h \
9lib/ecore_x/Ecore_X_Atoms.h \ 10lib/ecore_x/Ecore_X_Atoms.h \
10lib/ecore_x/Ecore_X_Cursor.h 11lib/ecore_x/Ecore_X_Cursor.h
11 12
@@ -119,6 +120,16 @@ lib/eina/libeina.la \
119 120
120lib_ecore_x_libecore_x_la_LDFLAGS = -no-undefined -version-info @version_info@ @release_info@ 121lib_ecore_x_libecore_x_la_LDFLAGS = -no-undefined -version-info @version_info@ @release_info@
121 122
123MAINTAINERCLEANFILES += \
124$(top_builddir)/src/lib/ecore_x/ecore_x_version.h
125
126BUILT_SOURCES += \
127$(top_builddir)/src/lib/ecore_x/ecore_x_version.h
128
129$(top_builddir)/src/lib/ecore_x/ecore_x_version.h: $(top_srcdir)/src/lib/ecore_x/ecore_x_version.h.in $(top_builddir)/Makefile
130 $(SED) -e 's/[@]VMAJ[@]/$(VMAJ)/g;s/[@]VMIN[@]/$(VMIN)/g;s/[@]HAVE_ECORE_X_BACKEND[@]/$(HAVE_ECORE_X_BACKEND)/g' $< > $@
131
132
122if HAVE_ECORE_X_XCB 133if HAVE_ECORE_X_XCB
123MAINTAINERCLEANFILES += \ 134MAINTAINERCLEANFILES += \
124$(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table.h \ 135$(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table.h \