git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New: new functions in UiUtils and IOUtils
[nikiroo-utils.git]
/
configure.sh
diff --git
a/configure.sh
b/configure.sh
index 1e12397d0e9d81e6ee3c588018d89f516209ccc3..4256eb36f1952e465a17dd932a9b4519721af527 100755
(executable)
--- a/
configure.sh
+++ b/
configure.sh
@@
-2,24
+2,16
@@
# default:
PREFIX=/usr/local
# default:
PREFIX=/usr/local
-PROGS="java javac jar
make sed
"
+PROGS="java javac jar"
-IMG=be/nikiroo/utils/ui/ImageUtilsAwt
-CLI=be/nikiroo/fanfix/reader/cli/CliReader
-TUI=be/nikiroo/fanfix/reader/tui/TuiReader
-GUI=be/nikiroo/fanfix/reader/ui/GuiReader
-JIMG=
-JCLI=
-JTUI="-C bin/ jexer"
-JGUI=
+UI=be/nikiroo/utils/ui/test/TestUI
+ANDOIRD=
valid=true
while [ "$*" != "" ]; do
key=`echo "$1" | cut -f1 -d=`
val=`echo "$1" | cut -f2 -d=`
case "$key" in
valid=true
while [ "$*" != "" ]; do
key=`echo "$1" | cut -f1 -d=`
val=`echo "$1" | cut -f2 -d=`
case "$key" in
- --)
- ;;
--help) # This help message
echo The following arguments can be used:
cat "$0" | grep '^\s*--' | grep '#' | while read ln; do
--help) # This help message
echo The following arguments can be used:
cat "$0" | grep '^\s*--' | grep '#' | while read ln; do
@@
-31,19
+23,20
@@
while [ "$*" != "" ]; do
--prefix) #=PATH Change the prefix to the given path
PREFIX="$val"
;;
--prefix) #=PATH Change the prefix to the given path
PREFIX="$val"
;;
- --
cli) #=no Disable CLI support (System.out)
- [ "$val" = no -o "$val" = false ] &&
CLI= && JCL
I=
- ;;
- --tui) #=no Enable TUI support (Jexer)
- [ "$val" = no -o "$val" = false ] && TUI= && JTUI=
+ --
ui) #=no Disable UI (Swing/AWT) support
+ [ "$val" = no -o "$val" = false ] &&
UI= && JU
I=
+ if [ "$val" = yes -o "$val" = true ]; then
+ UI=be/nikiroo/utils/ui/test/TestUI
+ fi
;;
;;
- --gui) #=no Disable GUI support (Swing)
- [ "$val" = no -o "$val" = false ] && GUI= && JGUI=
+ --android) #=yes Enable Android UI support
+ [ "$val" = no -o "$val" = false ] && ANDROID= && JANDROID=
+ if [ "$val" = yes -o "$val" = true ]; then
+ ANDROID=be/nikiroo/utils/android/test/TestAndroid
+ fi
;;
*)
echo "Unsupported parameter: '$1'" >&2
;;
*)
echo "Unsupported parameter: '$1'" >&2
- echo >&2
- sh "$0" --help >&2
valid=false
;;
esac
valid=false
;;
esac
@@
-73,14
+66,15
@@
else
cols='"`tput cols`"';
fi;
cols='"`tput cols`"';
fi;
-echo "MAIN = be/nikiroo/fanfix/Main" > Makefile
-echo "MORE = $CLI $TUI $GUI $IMG" >> Makefile
-echo "TEST = be/nikiroo/fanfix/test/Test" >> Makefile
+
+echo "MAIN = be/nikiroo/utils/test_code/Test" > Makefile
+echo "MORE = $UI $ANDROID" >> Makefile
+echo "TEST = be/nikiroo/utils/test_code/Test" >> Makefile
echo "TEST_PARAMS = $cols $ok $ko" >> Makefile
echo "TEST_PARAMS = $cols $ok $ko" >> Makefile
-echo "NAME =
fanfix
" >> Makefile
+echo "NAME =
nikiroo-utils
" >> Makefile
echo "PREFIX = $PREFIX" >> Makefile
echo "PREFIX = $PREFIX" >> Makefile
-echo "JAR_FLAGS += -C bin/
org $JCLI $JTUI $JGUI -C bin/ be
-C ./ LICENSE -C ./ VERSION -C libs/ licenses" >> Makefile
-
#echo "SJAR_FLAGS += -C src/ org -C src/ jexer
-C src/ be -C ./ LICENSE -C ./ VERSION -C libs/ licenses" >> Makefile
+echo "JAR_FLAGS += -C bin/
be -C bin/ org
-C ./ LICENSE -C ./ VERSION -C libs/ licenses" >> Makefile
+
echo "SJAR_FLAGS += -C src/ org
-C src/ be -C ./ LICENSE -C ./ VERSION -C libs/ licenses" >> Makefile
cat Makefile.base >> Makefile
cat Makefile.base >> Makefile