travis: build toxcore with cmake
This commit is contained in:
parent
f9e44f44ee
commit
3e99a2e38c
11
.travis.yml
11
.travis.yml
@ -10,7 +10,8 @@ addons:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
# install dependencies under $HOME because we don't have sudo
|
# install dependencies under $HOME because we don't have sudo
|
||||||
- DEPENDENCY_DIR=$HOME/dependencies
|
- DEPENDENCY_DIR="$HOME/dependencies"
|
||||||
|
- PKG_CONFIG_PATH="$DEPENDENCY_DIR/lib/pkgconfig:$PKG_CONFIG_PATH"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# install libsodium, required by libtoxcore
|
# install libsodium, required by libtoxcore
|
||||||
@ -25,11 +26,9 @@ install:
|
|||||||
- mkdir c-toxcore && pushd c-toxcore
|
- mkdir c-toxcore && pushd c-toxcore
|
||||||
&& curl -fSsL "https://github.com/TokTok/c-toxcore/archive/v0.2.1.tar.gz"
|
&& curl -fSsL "https://github.com/TokTok/c-toxcore/archive/v0.2.1.tar.gz"
|
||||||
| tar -xz --strip-components 1
|
| tar -xz --strip-components 1
|
||||||
&& autoreconf -if
|
&& cmake -DCMAKE_INSTALL_PREFIX="$DEPENDENCY_DIR" \
|
||||||
&& ./configure --disable-ntox --disable-tests --disable-daemon
|
-DBUILD_AV_TEST=off \
|
||||||
--with-libsodium-libs="$DEPENDENCY_DIR/lib"
|
-DBUILD_NTOX=off
|
||||||
--with-libsodium-headers="$DEPENDENCY_DIR/include"
|
|
||||||
--prefix="$DEPENDENCY_DIR"
|
|
||||||
&& make install
|
&& make install
|
||||||
&& popd
|
&& popd
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user