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: 80524devs/devilhorns/wayland_egl
parent
f74c3dae75
commit
f8c480fc83
7 changed files with 47 additions and 6 deletions
@ -0,0 +1,21 @@ |
||||
#ifndef _ECORE_X_VERSION_H_ |
||||
#define _ECORE_X_VERSION_H_ 1 |
||||
|
||||
#define ECORE_X_VERSION_MAJOR @VMAJ@ |
||||
#define ECORE_X_VERSION_MINOR @VMIN@ |
||||
|
||||
typedef struct _Ecore_X_Version |
||||
{ |
||||
int major; |
||||
int minor; |
||||
int micro; |
||||
int revision; |
||||
} Ecore_X_Version; |
||||
|
||||
EAPI extern Ecore_X_Version *ecore_x_version; |
||||
|
||||
#ifndef @HAVE_ECORE_X_BACKEND@ |
||||
#define @HAVE_ECORE_X_BACKEND@ 1 |
||||
#endif |
||||
|
||||
#endif |
Loading…
Reference in new issue