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:
parent
0812c40e36
commit
63d0fb7528
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue