-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: fix builds for libiio-v0 dependencies
- build libiio from sources based on old API for libiio-v0 Signed-off-by: Adrian Stanea <Adrian.Stanea@analog.com>
- Loading branch information
1 parent
b37eabb
commit 59ec8a7
Showing
5 changed files
with
76 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh -e | ||
|
||
TOP_DIR=$(pwd) | ||
|
||
handle_default() { | ||
echo $BUILD_TYPE | ||
|
||
cd ${TOP_DIR} | ||
echo $LIBIIO_BRANCH | ||
git clone --branch $LIBIIO_BRANCH https://github.com/analogdevicesinc/libiio | ||
cd libiio | ||
set -e | ||
mkdir -p build && cd build | ||
|
||
cmake .. -Werror=dev -DCOMPILE_WARNING_AS_ERROR=ON -DENABLE_PACKAGING=ON -DPYTHON_BINDINGS=ON -DWITH_DOC=ON -DWITH_SERIAL_BACKEND=ON -DWITH_MAN=ON -DCPACK_SYSTEM_NAME=${ARTIFACTNAME} | ||
|
||
make | ||
} | ||
|
||
setup_build_type_env_vars | ||
handle_default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh -e | ||
|
||
TOP_DIR=$(pwd) | ||
|
||
handle_default() { | ||
brew install doxygen libusb libxml2 ncurses cdk libserialport sphinx-doc pkg-config | ||
pip3 install sphinx | ||
|
||
echo $BUILD_TYPE | ||
|
||
cd ${TOP_DIR} | ||
echo $LIBIIO_BRANCH | ||
git clone --branch $LIBIIO_BRANCH https://github.com/analogdevicesinc/libiio | ||
cd libiio | ||
set -e | ||
mkdir -p build && cd build | ||
|
||
cmake .. -Werror=dev -DCOMPILE_WARNING_AS_ERROR=ON -DOSX_PACKAGE=ON -DCPP_BINDINGS=ON -DPYTHON_BINDINGS=ON -DWITH_EXAMPLES=ON -DWITH_SERIAL_BACKEND=ON -DWITH_ZSTD=OFF | ||
sudo make install | ||
cd .. | ||
} | ||
|
||
setup_build_type_env_vars | ||
handle_default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters