KissCount

KissCount Commit Details

Date:2011-01-25 20:26:29 (8 years 5 months ago)
Author:Grégory Soutadé
Branch:dev, master, qt5
Commit:c0591e981541c642ed913e671889988bed035a67
Parents: 90994542c3ca64007364aaa23b33de16b713043b
Message:Add cross compilation support

Changes:
MChangeLog (2 diffs)
MMakefile (2 diffs)
Mtools/package.sh (2 diffs)

File differences

ChangeLog
11
2
2
33
44
55
......
77
88
99
10
1011
1112
1213
v0.2_dev (23/01/2011)
v0.2_dev (25/01/2011)
** User **
Better use of sizers (so better interface!)
** Dev **
Use a factory to create panels (prepare for plug-in)
Better cross compilation support (Makefile and package.sh)
** Bugs **
Bug on GenerateMonth with different years
Makefile
1
1
22
33
44
5
5
66
77
88
9
9
1010
1111
1212
......
3434
3535
3636
37
38
37
38
39
40
41
CXXFLAGS=`wx-config --cxxflags` -Wall -Isrc -ggdb
CXXFLAGS+=`wx-config --cxxflags` -Wall -Isrc -ggdb
CXXFLAGS+=-I./lib/wxsqlite3-1.9.9/include
CXXFLAGS+=-I./lib/freechart/include
LDFLAGS=`wx-config --libs`
LDFLAGS+=`wx-config --libs`
LDFLAGS+=-L./lib/wxsqlite3-1.9.9/lib/ -lwxcode_gtk2u_wxsqlite3-2.8
LDFLAGS+=-L./lib/freechart/lib -lwxcode_gtk2u_freechart-2.8
CXX=g++
CXX=$(PREFIX)g++
SOURCES=$(wildcard src/model/*.cpp)
SOURCES+=$(wildcard src/view/*.cpp)
kc: $(OBJS)
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
generate_locals:
./generate_locales.sh
generate_locales:
./tools/generate_locales.sh
package:
./tools/package.sh
tools/package.sh
11
22
33
4
4
55
66
77
......
1515
1616
1717
18
18
1919
2020
21
21
#!/bin/bash
DATE=`date +%d.%m.%Y`
ARCH=`uname -m`
ARCH=`${PREFIX}gcc -dumpmachine | cut -d- -f1`
VERSION=`cat src/controller/KissCount.h | grep APP_VERSION | cut -d\" -f2`
DIR="KissCount_build_${VERSION}_${DATE}_${ARCH}"
FILE="$DIR.tar.bz2"
mkdir -p "$DIR"/lib
cp -r lib/freechart/lib/*.so* lib/wxsqlite3-1.9.9/lib/*.so* "$DIR"/lib
cp -r kc init.sql ressources tools/launch_kc.sh TODO CONTRIBUTORS COPYING README README.fr www "$DIR"
find "$DIR" -type f -executable -exec strip \{\} \;
find "$DIR" -type f -executable -exec ${PREFIX}strip \{\} \;
tar -jcf "$FILE" "$DIR"
rm -rf "$DIR"
echo "Packaged !"
echo "Packaged into $FILE !"

Archive Download the corresponding diff file