Work on Win32 packaging
This commit is contained in:
parent
26829fcb6a
commit
757a7274c6
1
Makefile
1
Makefile
|
@ -27,7 +27,6 @@ MOCS=$(MOC_HEADERS:.hpp=.objs)
|
|||
MOCS_OBJS=$(MOC_HEADERS:.hpp=.moc)
|
||||
|
||||
CXXFLAGS+=-Ilib/libkdchart/include -Ilib/libkdchart/src -Ilib/libkdchart/kdablibfakes/include
|
||||
CXXFLAGS+=-DKDCHART_BUILD_KDCHART_LIB
|
||||
KDCHART_SOURCES=$(shell find lib/libkdchart/src -name '*.cpp' -type f | tr '\n' ' ')
|
||||
KDCHART_OBJS=$(KDCHART_SOURCES:.cpp=.o)
|
||||
UI_CHARTSELECTOR=lib/libkdchart/src/ui_KDChartDatasetSelector.h
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
DATE=`date +%d.%m.%Y`
|
||||
[ -z "$ARCH" ] && ARCH=`${PREFIX}gcc -dumpmachine | cut -d- -f1`
|
||||
VERSION=`cat src/controller/KissCount.h | grep APP_VERSION | cut -d\" -f2`
|
||||
VERSION=`cat src/controller/KissCount.hpp | grep APP_VERSION | cut -d\" -f2`
|
||||
DIR="KissCount_build_${VERSION}_${DATE}_${ARCH}"
|
||||
FILE="$DIR.tar.bz2"
|
||||
FILE="$DIR.zip"
|
||||
|
||||
rm -f "$FILE"
|
||||
rm -rf "$DIR"
|
||||
|
@ -13,9 +13,10 @@ make clean
|
|||
fi
|
||||
make || (echo "Compilation failed" ; exit 1)
|
||||
mkdir -p "$DIR"
|
||||
cp -r lib/freechart/lib/*.dll* lib/wxsqlite3-1.9.9/lib/*.dll* "$DIR"
|
||||
cp -r kc init.sql ressources tools/launch_kc.sh TODO CONTRIBUTORS COPYING README README.fr www "$DIR"
|
||||
cp -r lib/*.dll* "$DIR"
|
||||
cp -r kc ressources TODO CONTRIBUTORS COPYING README README.fr www "$DIR"
|
||||
mv "$DIR"/kc "$DIR"/kc.exe
|
||||
find "$DIR" -type f -executable -exec ${PREFIX}strip \{\} \;
|
||||
tar -jcf "$FILE" "$DIR"
|
||||
zip "$FILE" "$DIR"
|
||||
rm -rf "$DIR"
|
||||
echo "Packaged into $FILE !"
|
Loading…
Reference in New Issue
Block a user