split the version.h into render/ and obt/ copies, with the appropriate version info
This commit is contained in:
parent
1a1619c9a8
commit
de0873824e
7 changed files with 43 additions and 28 deletions
15
Makefile.am
15
Makefile.am
|
@ -8,7 +8,8 @@ rcdir = $(configdir)/openbox
|
|||
xsessionsdir = $(datadir)/xsessions
|
||||
gnomewmfilesdir = $(datadir)/gnome/wm-properties
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pubincludedir = $(includedir)/openbox/@OBT_VERSION@/openbox
|
||||
obtpubincludedir= $(includedir)/openbox/@OBT_VERSION@/obt/
|
||||
rrpubincludedir = $(includedir)/openbox/@RR_VERSION@/render/
|
||||
pixmapdir = $(datadir)/pixmaps
|
||||
xsddir = $(datadir)/openbox
|
||||
|
||||
|
@ -376,7 +377,7 @@ dist_syscrash_theme_DATA= \
|
|||
|
||||
## public headers ##
|
||||
|
||||
pubinclude_HEADERS = \
|
||||
rrpubinclude_HEADERS = \
|
||||
render/color.h \
|
||||
render/font.h \
|
||||
render/geom.h \
|
||||
|
@ -386,7 +387,9 @@ pubinclude_HEADERS = \
|
|||
render/mask.h \
|
||||
render/render.h \
|
||||
render/theme.h \
|
||||
render/version.h \
|
||||
render/version.h
|
||||
|
||||
obtpubinclude_HEADERS = \
|
||||
obt/display.h \
|
||||
obt/keyboard.h \
|
||||
obt/mainloop.h \
|
||||
|
@ -397,9 +400,6 @@ pubinclude_HEADERS = \
|
|||
obt/version.h \
|
||||
obt/xevent.h
|
||||
|
||||
nodist_pubinclude_HEADERS = \
|
||||
version.h
|
||||
|
||||
nodist_pkgconfig_DATA = \
|
||||
render/obrender-4.0.pc \
|
||||
obt/obt-4.0.pc
|
||||
|
@ -444,7 +444,6 @@ nodist_xsessions_DATA = \
|
|||
data/xsession/openbox-kde.desktop
|
||||
|
||||
dist_noinst_DATA = \
|
||||
version.h.in \
|
||||
data/rc.xsd \
|
||||
data/menu.xsd \
|
||||
data/xsession/openbox.desktop.in \
|
||||
|
@ -461,8 +460,10 @@ dist_noinst_DATA = \
|
|||
doc/openbox-gnome-session.1.in \
|
||||
doc/openbox-kde-session.1.sgml \
|
||||
doc/openbox-kde-session.1.in \
|
||||
render/version.h.in \
|
||||
render/obrender-4.0.pc.in \
|
||||
obt/obt-4.0.pc.in \
|
||||
obt/version.h.in \
|
||||
tools/themeupdate/themeupdate.py \
|
||||
tests/hideshow.py \
|
||||
tests/Makefile \
|
||||
|
|
|
@ -18,14 +18,14 @@ RR_MINOR_VERSION=0
|
|||
RR_MICRO_VERSION=17
|
||||
RR_INTERFACE_AGE=0
|
||||
RR_BINARY_AGE=0
|
||||
RR_VERSION=$OB_MAJOR_VERSION.$OB_MINOR_VERSION
|
||||
RR_VERSION=$RR_MAJOR_VERSION.$RR_MINOR_VERSION
|
||||
|
||||
OBT_MAJOR_VERSION=4
|
||||
OBT_MINOR_VERSION=0
|
||||
OBT_MICRO_VERSION=0
|
||||
OBT_INTERFACE_AGE=0
|
||||
OBT_BINARY_AGE=0
|
||||
OBT_VERSION=$OB_MAJOR_VERSION.$OB_MINOR_VERSION
|
||||
OBT_VERSION=$OBT_MAJOR_VERSION.$OBT_MINOR_VERSION
|
||||
|
||||
AC_SUBST(RR_MAJOR_VERSION)
|
||||
AC_SUBST(RR_MINOR_VERSION)
|
||||
|
@ -180,7 +180,8 @@ AC_CONFIG_FILES([
|
|||
po/Makefile.in
|
||||
render/obrender-4.0.pc
|
||||
obt/obt-4.0.pc
|
||||
version.h
|
||||
render/version.h
|
||||
obt/version.h
|
||||
])
|
||||
AC_CONFIG_COMMANDS([doc],
|
||||
[test -d doc || mkdir doc])
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
#ifndef __obt_parse_h
|
||||
#define __obt_parse_h
|
||||
|
||||
#include "version.h"
|
||||
|
||||
#include <libxml/parser.h>
|
||||
#include <glib.h>
|
||||
|
||||
|
|
15
obt/version.h.in
Normal file
15
obt/version.h.in
Normal file
|
@ -0,0 +1,15 @@
|
|||
#ifndef obt__version_h
|
||||
#define obt__version_h
|
||||
|
||||
#define OBT_MAJOR_VERSION @OBT_MAJOR_VERSION@
|
||||
#define OBT_MINOR_VERSION @OBT_MINOR_VERSION@
|
||||
#define OBT_MICRO_VERSION @OBT_MICRO_VERSION@
|
||||
#define OBT_VERSION OBT_MAJOR_VERSION.OBT_MINOR_VERSION.OBT_MICRO_VERSION
|
||||
|
||||
#define OBT_CHECK_VERSION(major,minor,micro) \
|
||||
(OBT_MAJOR_VERSION > (major) || \
|
||||
(OBT_MAJOR_VERSION == (major) && OBT_MINOR_VERSION > (minor)) || \
|
||||
(OBT_MAJOR_VERSION == (major) && OBT_MINOR_VERSION == (minor) && \
|
||||
OBT_MICRO_VERSION >= (micro)))
|
||||
|
||||
#endif
|
|
@ -22,7 +22,7 @@
|
|||
#define __render_h
|
||||
|
||||
#include "geom.h"
|
||||
#include "version.h"
|
||||
#include "render/version.h"
|
||||
|
||||
#include <X11/Xlib.h> /* some platforms dont include this as needed for Xft */
|
||||
#include <pango/pangoxft.h>
|
||||
|
|
15
render/version.h.in
Normal file
15
render/version.h.in
Normal file
|
@ -0,0 +1,15 @@
|
|||
#ifndef rr__version_h
|
||||
#define rr__version_h
|
||||
|
||||
#define RR_MAJOR_VERSION @RR_MAJOR_VERSION@
|
||||
#define RR_MINOR_VERSION @RR_MINOR_VERSION@
|
||||
#define RR_MICRO_VERSION @RR_MICRO_VERSION@
|
||||
#define RR_VERSION RR_MAJOR_VERSION.RR_MINOR_VERSION.RR_MICRO_VERSION
|
||||
|
||||
#define RR_CHECK_VERSION(major,minor,micro) \
|
||||
(RR_MAJOR_VERSION > (major) || \
|
||||
(RR_MAJOR_VERSION == (major) && RR_MINOR_VERSION > (minor)) || \
|
||||
(RR_MAJOR_VERSION == (major) && RR_MINOR_VERSION == (minor) && \
|
||||
RR_MICRO_VERSION >= (micro)))
|
||||
|
||||
#endif
|
15
version.h.in
15
version.h.in
|
@ -1,15 +0,0 @@
|
|||
#ifndef ob__version_h
|
||||
#define ob__version_h
|
||||
|
||||
#define OB_MAJOR_VERSION @OB_MAJOR_VERSION@
|
||||
#define OB_MINOR_VERSION @OB_MINOR_VERSION@
|
||||
#define OB_MICRO_VERSION @OB_MICRO_VERSION@
|
||||
#define OB_VERSION OB_MAJOR_VERSION.OB_MINOR_VERSION.OB_MICRO_VERSION
|
||||
|
||||
#define OB_CHECK_VERSION(major,minor,micro) \
|
||||
(OB_MAJOR_VERSION > (major) || \
|
||||
(OB_MAJOR_VERSION == (major) && OB_MINOR_VERSION > (minor)) || \
|
||||
(OB_MAJOR_VERSION == (major) && OB_MINOR_VERSION == (minor) && \
|
||||
OB_MICRO_VERSION >= (micro)))
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue