|
|
@ -0,0 +1,34 @@ |
|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# Filename: lib/sde-build/flist_ns_tools.in |
|
|
|
# Copyright (C) 2020 The OpenSDE Project |
|
|
|
# |
|
|
|
# More information can be found in the files COPYING and README. |
|
|
|
# |
|
|
|
# This program is free software; you can redistribute it and/or modify |
|
|
|
# it under the terms of the GNU General Public License as published by |
|
|
|
# the Free Software Foundation; version 2 of the License. A copy of the |
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
FLNS_SRCDIR="src/tools-source/fl_ns" |
|
|
|
FLNS_RUN_SHORT="$toolsdir/bin/sde-run-ns" |
|
|
|
FLNS_MAKE_QUIET=yes |
|
|
|
|
|
|
|
flist_tools_clean() { |
|
|
|
make ${FLNS_MAKE_QUIET:+-s} -C "$FLNS_SRCDIR" O="$TOOLSDIR" uninstall clean |
|
|
|
} |
|
|
|
|
|
|
|
flist_tools_build() { |
|
|
|
echo_status "Building $FLNS_RUN_SHORT." |
|
|
|
make ${FLNS_MAKE_QUIET:+-s} -C "$FLNS_SRCDIR" CC="$BUILDCC" O="$TOOLSDIR" tools || exit 1 |
|
|
|
|
|
|
|
echo_status "Testing $FLNS_RUN_SHORT." |
|
|
|
if ! make ${FLNS_MAKE_QUIET:+-s} -C "$FLNS_SRCDIR" CC="$BUILDCC" O="$TOOLSDIR" test-tools; then |
|
|
|
echo_error "Detected a problem with the $SDECFG_FLIST flist system" |
|
|
|
echo_error "Please specify another flist-creation" \ |
|
|
|
"system in your build configuration." |
|
|
|
echo ; exit 1 |
|
|
|
fi |
|
|
|
} |