-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from andrewbird/ci-58
Ci 58
- Loading branch information
Showing
3 changed files
with
40 additions
and
15 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
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 |
---|---|---|
@@ -1,20 +1,27 @@ | ||
if [ -f meson.build ]; then | ||
echo -e "Create a build dir first:" | ||
echo -e "\tmkdir build" | ||
echo -e "\tcd build" | ||
echo -e "\t../$(basename $0)" | ||
echo "Bye!" | ||
exit 0 | ||
#!/bin/sh | ||
|
||
# set -xv | ||
|
||
if [ -z "$1" ] ; then | ||
echo "Usage: ./$(basename $0) builddir" | ||
exit 1 | ||
fi | ||
BLD="$1" | ||
|
||
TOP=$(dirname "$0") | ||
meson setup --native-file $TOP/fdpp/toolchain.ini \ | ||
|
||
if [ -z "${PREFIX}" ] ; then | ||
PREFIX="/usr/local" | ||
fi | ||
|
||
meson setup --prefix ${PREFIX} \ | ||
--native-file $TOP/fdpp/toolchain.ini \ | ||
--cross-file $TOP/fdpp/toolchain.ini \ | ||
--cross-file $TOP/fdpp/kernel/toolchain.ini \ | ||
--native-file $TOP/fdpp/kernel/toolchain.ini . $TOP | ||
--native-file $TOP/fdpp/kernel/toolchain.ini $BLD $TOP | ||
[ "$?" = "0" ] || exit 1 | ||
|
||
echo | ||
echo "Done configure" | ||
echo "Now run \"meson compile --verbose\" to build" | ||
echo "After that you can do \"sudo meson install\" to install" | ||
echo "Now run \"meson compile --verbose -C $BLD\" to build" | ||
echo "After that you can do \"sudo meson install -C $BLD\" to install" |