mirror of https://github.com/nirenjan/libx52.git
Add support for including inih configuration parser library
parent
4b1d524d39
commit
f82c31a6eb
|
@ -9,6 +9,7 @@ brew install \
|
||||||
gettext \
|
gettext \
|
||||||
libusb \
|
libusb \
|
||||||
hidapi \
|
hidapi \
|
||||||
|
inih \
|
||||||
doxygen \
|
doxygen \
|
||||||
rsync \
|
rsync \
|
||||||
cmocka
|
cmocka
|
||||||
|
|
|
@ -11,6 +11,7 @@ sudo apt-get install -y \
|
||||||
autopoint \
|
autopoint \
|
||||||
libusb-1.0-0-dev \
|
libusb-1.0-0-dev \
|
||||||
libhidapi-dev \
|
libhidapi-dev \
|
||||||
|
libinih-dev \
|
||||||
libevdev-dev \
|
libevdev-dev \
|
||||||
doxygen \
|
doxygen \
|
||||||
rsync \
|
rsync \
|
||||||
|
|
|
@ -18,6 +18,7 @@ Build has been tested on the following operating systems (x86-64 only):
|
||||||
* autopoint
|
* autopoint
|
||||||
* gettext
|
* gettext
|
||||||
* hidapi
|
* hidapi
|
||||||
|
* inih
|
||||||
* libtool
|
* libtool
|
||||||
* libusb-1.0 + headers
|
* libusb-1.0 + headers
|
||||||
* pkg-config
|
* pkg-config
|
||||||
|
@ -27,9 +28,9 @@ Build has been tested on the following operating systems (x86-64 only):
|
||||||
|
|
||||||
| Platform | Install instructions |
|
| Platform | Install instructions |
|
||||||
| -------- | -------------------- |
|
| -------- | -------------------- |
|
||||||
| Ubuntu | `sudo apt-get install automake autoconf gettext autopoint libhidapi-dev libtool libusb-1.0-0-dev pkg-config python3` |
|
| Ubuntu | `sudo apt-get install automake autoconf gettext autopoint libhidapi-dev libinih-dev libtool libusb-1.0-0-dev pkg-config python3` |
|
||||||
| MacOS + Homebrew | `brew install automake autoconf gettext hidapi libtool libusb pkg-config python3` |
|
| MacOS + Homebrew | `brew install automake autoconf gettext hidapi inih libtool libusb pkg-config python3` |
|
||||||
| Arch Linux | `pacman -S base-devel libusb hidapi python` |
|
| Arch Linux | `pacman -S base-devel libusb hidapi inih python` |
|
||||||
|
|
||||||
## Optional Packages
|
## Optional Packages
|
||||||
|
|
||||||
|
|
11
configure.ac
11
configure.ac
|
@ -43,10 +43,15 @@ AC_SUBST([LIBUSB_CFLAGS])
|
||||||
AC_SUBST([LIBUSB_LDFLAGS])
|
AC_SUBST([LIBUSB_LDFLAGS])
|
||||||
AC_SUBST([LIBUSB_LIBS])
|
AC_SUBST([LIBUSB_LIBS])
|
||||||
|
|
||||||
# Pinelog configuration
|
# Check for libinih
|
||||||
AC_SUBST([PINELOG_CFLAGS], [-DPINELOG_SHOW_DATE=1 -DPINELOG_SHOW_LEVEL=1 -DPINELOG_SHOW_BACKTRACE=1])
|
AX_PKG_CHECK_MODULES([INIH], [inih])
|
||||||
|
AC_SUBST([INIH_CFLAGS])
|
||||||
|
AC_SUBST([INIH_LDFLAGS])
|
||||||
|
AC_SUBST([INIH_LIBS])
|
||||||
|
|
||||||
|
# Pinelog configuration
|
||||||
|
AC_SUBST([PINELOG_CFLAGS], ["-DPINELOG_SHOW_DATE=1 -DPINELOG_SHOW_LEVEL=1 -DPINELOG_SHOW_BACKTRACE=1"])
|
||||||
|
|
||||||
AC_SUBST([X52_PKG_VERSION], [0.1])
|
|
||||||
AC_SUBST([X52_INCLUDE], ["-I \$(top_srcdir)/lib/libx52"])
|
AC_SUBST([X52_INCLUDE], ["-I \$(top_srcdir)/lib/libx52"])
|
||||||
|
|
||||||
# Check for hidapi. This uses a different pkg-config file on Linux vs other
|
# Check for hidapi. This uses a different pkg-config file on Linux vs other
|
||||||
|
|
Loading…
Reference in New Issue