Mostly this is is so the generated Xpoll.h can be emitted into a usable
directory when we build as a subproject.
Signed-off-by: Adam Jackson <ajax@redhat.com>
This macro is apparently an imake-ism for how much C89 you support.
Seeing as it's 2018 the answer is "all of it", and if that's not
actually true for your platform you need a better compiler.
Signed-off-by: Adam Jackson <ajax@redhat.com>
Builds on the work Dylan Baker did for glproto. Note that this does
not produce _quite_ identical pc files as the autotools build, but it
only affects the name and description strings which are only informative
anyway.
Just to be petty:
% time ( ./configure --prefix=/tmp/xorgproto && make install; ) >& /dev/null
2.42s user 1.67s system 107% cpu 3.804 total
% time ( meson setup build && meson configure build -Dprefix=/tmp/xorgproto && ninja -C build install ) >& /dev/null
0.55s user 0.11s system 100% cpu 0.658 total
Signed-off-by: Adam Jackson <ajax@redhat.com>
I kinda hate to do this, it was nice to have everything in one place.
However, the meson build wants to be able to wrap this module as a
dependency, and code that depends on these headers includes them in the
form:
#include <X11/Xfuncproto.h>
As a result, any include path meson can construct needs to point to the
root of a hierarchy that has the same path layout as an installed copy,
hence this change.
Signed-off-by: Adam Jackson <ajax@redhat.com>
At this point all that's left in subdirs (besides include/) are the
automake rules for building the specs. Probably we should make those
build again at some point.
Signed-off-by: Adam Jackson <ajax@redhat.com>
This seems to have been a thinko from the lg3d protocol, no idea why it
would have ever itself have been in cvs.
Signed-off-by: Adam Jackson <ajax@redhat.com>
Inspired mostly by x11proto/README, plus some commentary about the scope
of this project and a pointer to the xcb protocol xml.
Signed-off-by: Adam Jackson <ajax@redhat.com>
Just stuff the versions in the .pc file directly, @PACKAGE_VERSION@ is
the version set in configure.ac which is now different.
Signed-off-by: Adam Jackson <ajax@redhat.com>