scanner: include config.h from command line

Meson will need to build wayland-scanner twice with different config.h files,
once for build and another for host machine. It will be easier to include the
right config.h from compiler command line than playing with files.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2019-03-11 17:05:33 +02:00 committed by Simon Ser
parent a77f6bf6c4
commit 0d3044f2ea
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 1 additions and 1 deletions

View file

@ -24,6 +24,7 @@ pkgconfig_DATA =
bin_PROGRAMS = wayland-scanner
wayland_scanner_SOURCES = src/scanner.c
wayland_scanner_CPPFLAGS = $(AM_CPPFLAGS) -include config.h
wayland_scanner_CFLAGS = $(EXPAT_CFLAGS) $(LIBXML_CFLAGS) $(AM_CFLAGS)
wayland_scanner_LDADD = $(EXPAT_LIBS) $(LIBXML_LIBS) libwayland-util.la
pkgconfig_DATA += src/wayland-scanner.pc

View file

@ -25,7 +25,6 @@
* SOFTWARE.
*/
#include "config.h"
#include "wayland-version.h"
#include <stdbool.h>