adds the --debug config option to compile in debugging messages, adds better support for install paths
git-svn-id: svn://svn.code.sf.net/p/qjoypad/code/trunk@103 c05e91a0-76c8-4ec0-b377-ef19ce7cc080
This commit is contained in:
committed by
virtuoussin13
parent
cb917d39c1
commit
ace3d5f898
14
src/config
14
src/config
@ -5,7 +5,7 @@ devdir="/dev/input"
|
|||||||
prefix="/usr/local"
|
prefix="/usr/local"
|
||||||
installdir="";
|
installdir="";
|
||||||
plain_keys=""
|
plain_keys=""
|
||||||
|
debug_option="";
|
||||||
for arg in $*
|
for arg in $*
|
||||||
do
|
do
|
||||||
case $arg in
|
case $arg in
|
||||||
@ -28,6 +28,9 @@ Options:
|
|||||||
|
|
||||||
--install-dir=DIR Sets an optional installation path that will be prepended
|
--install-dir=DIR Sets an optional installation path that will be prepended
|
||||||
to prefix during installation.
|
to prefix during installation.
|
||||||
|
--debug Causes Qjoypad to spit out debugging messages (debug messages
|
||||||
|
will be compiled in; to get rid of the messages you'll have
|
||||||
|
to recompile).
|
||||||
--help Show this message.
|
--help Show this message.
|
||||||
"; exit 0;;
|
"; exit 0;;
|
||||||
--devdir=*) devdir=${arg##*=}
|
--devdir=*) devdir=${arg##*=}
|
||||||
@ -49,17 +52,18 @@ Options:
|
|||||||
exit 1
|
exit 1
|
||||||
fi;;
|
fi;;
|
||||||
--plain_keys) plain_keys="PLAIN_KEYS";;
|
--plain_keys) plain_keys="PLAIN_KEYS";;
|
||||||
|
--debug)
|
||||||
|
debug_option+="_DEBUG";;
|
||||||
*) echo "Unrecognized argument: \"$arg\". Try ./config --help for help."
|
*) echo "Unrecognized argument: \"$arg\". Try ./config --help for help."
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
arg1="DEVDIR=$devdir"
|
arg1="DEVDIR=$devdir"
|
||||||
arg2="PREFIX=$prefix"
|
arg2="PREFIX=$prefix"
|
||||||
arg3="DEFINES += $plain_keys"
|
arg3="DEFINES += $plain_keys $debug_option"
|
||||||
arg4="DESTDIR=${installdir}/${prefix}/bin"
|
arg4="INSTALL_PREFIX=${installdir}/${prefix}/"
|
||||||
arg5="INSTALL=$installdir"
|
|
||||||
|
|
||||||
qmake -makefile "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" qjoypad.pro
|
qmake -makefile "$arg1" "$arg2" "$arg3" "$arg4" qjoypad.pro
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
Configuring QJoyPad installation...
|
Configuring QJoyPad installation...
|
||||||
|
@ -11,13 +11,13 @@
|
|||||||
|
|
||||||
##### Setup Targets #####
|
##### Setup Targets #####
|
||||||
|
|
||||||
icons.path = $$INSTALL/$$PREFIX/share/pixmaps/qjoypad
|
icons.path = $$INSTALL_PREFIX/share/pixmaps/qjoypad
|
||||||
icons.conf_path = $$PREFIX/share/pixmaps/qjoypad
|
icons.conf_path = $$PREFIX/share/pixmaps/qjoypad
|
||||||
icons.extra = cp ../icons/* $${icons.path}; cd $${icons.path}; ln -sf gamepad4-24x24.png icon24.png; ln -sf gamepad3-64x64.png icon64.png; chmod -R a+r $${icons.path}
|
icons.extra = cp ../icons/* $${icons.path}; cd $${icons.path}; ln -sf gamepad4-24x24.png icon24.png; ln -sf gamepad3-64x64.png icon64.png; chmod -R a+r $${icons.path}
|
||||||
|
|
||||||
doc.path = $$INSTALL/$$PREFIX/share/doc/qjoypad3
|
doc.path = $$INSTALL_PREFIX/share/doc/qjoypad3
|
||||||
doc.extra = cp ../README.txt ../LICENSE.txt $${doc.path}
|
doc.extra = cp ../README.txt ../LICENSE.txt $${doc.path}
|
||||||
|
target.path = $$INSTALL_PREFIX/bin
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user