2020-11-01 13:03:13 +01:00
|
|
|
#!/bin/sh -e
|
2019-05-16 13:17:34 +02:00
|
|
|
|
2019-05-25 11:05:41 +02:00
|
|
|
if [ "${TRAVIS_OS_NAME}" == "linux" ] || [ ${CI_LINUX} = true ]; then
|
2019-05-22 17:16:06 +02:00
|
|
|
debuild -i -us -uc -b
|
|
|
|
else
|
2020-11-01 13:03:13 +01:00
|
|
|
mkdir -p build; cd build
|
|
|
|
cmake .. -GNinja ${CMAKE_CUSTOM_OPTIONS}
|
2019-05-22 17:16:06 +02:00
|
|
|
|
|
|
|
case "${CMAKE_CUSTOM_OPTIONS}" in
|
|
|
|
*BUNDLE=ON*)
|
2020-11-01 13:03:13 +01:00
|
|
|
cmake --build . --target package
|
2019-05-22 17:16:06 +02:00
|
|
|
;;
|
|
|
|
*)
|
2020-11-01 13:03:13 +01:00
|
|
|
cmake --build .
|
2019-05-22 17:16:06 +02:00
|
|
|
;;
|
2021-04-13 10:25:04 +02:00
|
|
|
esac
|
2019-05-22 17:16:06 +02:00
|
|
|
fi
|
2021-04-13 10:25:04 +02:00
|
|
|
|
|
|
|
sudo chrpath -r /usr/lib/sdrangel /usr/lib/sdrangel/libdsdcc.so
|