Move public headers into include/libsigrok.

This is needed so that the C++ bindings, the header for which
references "libsigrok/libsigrok.h", can have a valid include
directory passed to build them before the headers are installed.
This commit is contained in:
Martin Ling 2014-04-26 03:03:11 +01:00
parent 0812c40e36
commit 63d0fb7528
5 changed files with 6 additions and 3 deletions

View File

@ -333,7 +333,10 @@ libsigrok_la_LIBADD = $(LIBOBJS)
libsigrok_la_LDFLAGS = $(SR_LIB_LDFLAGS)
library_includedir = $(includedir)/libsigrok
library_include_HEADERS = libsigrok.h proto.h version.h
library_include_HEADERS = \
include/libsigrok/libsigrok.h \
include/libsigrok/proto.h \
include/libsigrok/version.h
noinst_HEADERS = libsigrok-internal.h
pkgconfigdir = $(libdir)/pkgconfig

View File

@ -316,7 +316,7 @@ esac
AC_SUBST(SR_PKGLIBS)
CFLAGS="$CFLAGS $LIB_CFLAGS"
CFLAGS="$CFLAGS -I./include/libsigrok $LIB_CFLAGS"
# Now set AM_CONDITIONALs and AC_DEFINEs for the enabled/disabled drivers.
@ -525,7 +525,7 @@ AC_SUBST(SR_PACKAGE_VERSION_MINOR)
AC_SUBST(SR_PACKAGE_VERSION_MICRO)
AC_SUBST(SR_PACKAGE_VERSION)
AC_CONFIG_FILES([Makefile version.h libsigrok.pc])
AC_CONFIG_FILES([Makefile include/libsigrok/version.h libsigrok.pc])
AC_OUTPUT