mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
remove obsolete workaround for libdivecomputer includes of libusb
This has been fixed in revision b1d434f0ea9a2958613da9bed32ff3ff3318065e there. Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
This commit is contained in:
parent
3664cc4ee6
commit
17211acc53
3 changed files with 2 additions and 22 deletions
|
@ -308,12 +308,6 @@ if [[ $PLATFORM = Darwin && "$BUILD_DEPS" == "1" ]] ; then
|
||||||
make -j4 -k
|
make -j4 -k
|
||||||
make -k install
|
make -k install
|
||||||
popd
|
popd
|
||||||
else
|
|
||||||
# we are getting libusb and hidapi from pkg-config and that goes wrong
|
|
||||||
# or more specifically, the way libdivecomputer references
|
|
||||||
# the include files goes wrong
|
|
||||||
pkg-config --exists libusb-1.0 && LIBDC_CFLAGS=-I$(dirname $(pkg-config --cflags libusb-1.0 | sed -e 's/^-I//'))
|
|
||||||
pkg-config --exists hidapi && LIBDC_CFLAGS="${LIBDC_CFLAGS} -I$(dirname $(pkg-config --cflags hidapi | sed -e 's/^-I//'))"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,13 +15,6 @@ git fetch --unshallow
|
||||||
git pull --tags
|
git pull --tags
|
||||||
git describe
|
git describe
|
||||||
|
|
||||||
# libdivecomputer uses the wrong include path for libusb and hidapi
|
|
||||||
# the pkgconfig file for libusb/hidapi already gives the include path as
|
|
||||||
# ../include/libusb-1.0 (../include/hidapi) yet libdivecomputer wants to use
|
|
||||||
# include <libusb-1.0/libusb.h> and include <hidapi/hidapi.h>
|
|
||||||
sudo ln -s /usr/local/include/libusb-1.0 /usr/local/include/libusb-1.0/libusb-1.0
|
|
||||||
sudo ln -s /usr/local/include/hidapi /usr/local/include/libusb-1.0/hidapi
|
|
||||||
|
|
||||||
# prep things so we can build for Mac
|
# prep things so we can build for Mac
|
||||||
# we have a custom built Qt some gives us just what we need, including QtWebKit
|
# we have a custom built Qt some gives us just what we need, including QtWebKit
|
||||||
#
|
#
|
||||||
|
|
|
@ -9,7 +9,7 @@ git pull --tags
|
||||||
git describe
|
git describe
|
||||||
|
|
||||||
# grab our own custom MXE environment
|
# grab our own custom MXE environment
|
||||||
cd ${TRAVIS_BUILD_DIR}/..
|
pushd ${TRAVIS_BUILD_DIR}/..
|
||||||
echo "Downloading prebuilt MXE environment from Subsurface-divelog.org"
|
echo "Downloading prebuilt MXE environment from Subsurface-divelog.org"
|
||||||
wget -q http://subsurface-divelog.org/downloads/mxe-994ad473.tar.xz
|
wget -q http://subsurface-divelog.org/downloads/mxe-994ad473.tar.xz
|
||||||
mkdir -p mxe
|
mkdir -p mxe
|
||||||
|
@ -21,14 +21,7 @@ sudo mkdir -p /data/winqt551/
|
||||||
sudo ln -s ${TRAVIS_BUILD_DIR}/../mxe /data/winqt551/mxe-current
|
sudo ln -s ${TRAVIS_BUILD_DIR}/../mxe /data/winqt551/mxe-current
|
||||||
ls -l /data/winqt551/mxe-current/usr
|
ls -l /data/winqt551/mxe-current/usr
|
||||||
sudo ln -s ${TRAVIS_BUILD_DIR}/../mxe /usr/src/mxe
|
sudo ln -s ${TRAVIS_BUILD_DIR}/../mxe /usr/src/mxe
|
||||||
|
popd
|
||||||
# libdivecomputer uses the wrong include path for libusb
|
|
||||||
# the pkgconfig file for libusb already gives the include path as
|
|
||||||
# ../include/libusb-1.0 yet libdivecomputer wants to use
|
|
||||||
# include <libusb-1.0/libusb.h>
|
|
||||||
cd usr/i686-w64-mingw32.shared/include/libusb-1.0
|
|
||||||
ln -s . libusb-1.0
|
|
||||||
cd ${TRAVIS_BUILD_DIR}/..
|
|
||||||
|
|
||||||
# now set up our other dependencies
|
# now set up our other dependencies
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue