Debian packaging fixes for icons and files
[scorecard] / scorecard.pro
1 TARGET = scorecard
2 DESTDIR = bin
3 MOC_DIR = moc
4 OBJECTS_DIR = obj
5 UI_DIR = obj
6
7 QMAKE_CXXFLAGS += -Wno-return-type
8
9 CONFIG  += qt debug
10 TEMPLATE = app
11 QT      += xml
12
13 HEADERS  = \
14 src/main-window.h \
15 src/score-dialog.h \
16 src/course-dialog.h \
17 src/cell-delegate.h \
18 src/table-model.h \
19 src/xml-dom-parser.h \
20 src/data.h \
21 src/tree-model.h \
22 src/tree-item.h \
23 src/tree-widget.h
24
25 SOURCES  = \
26 src/main.cpp \
27 src/main-window.cpp \
28 src/score-dialog.cpp \
29 src/course-dialog.cpp \
30 src/cell-delegate.cpp \
31 src/table-model.cpp \
32 src/xml-dom-parser.cpp \
33 src/data.cpp \
34 src/tree-model.cpp \
35 src/tree-item.cpp \
36 src/tree-widget.cpp
37
38 unix {
39     #VARIABLES
40     PREFIX = /opt/scorecard
41     BINDIR = $$PREFIX/bin
42     DATADIR = $$PREFIX/data
43     IMGDIR = /usr/share/icons/hicolor
44     MAEMODIR = /usr/share/applications/hildon
45
46     DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
47
48     #MAKE INSTALL    
49     INSTALLS += target data desktop iconxpm icon26 icon40 icon64
50
51     target.path =$$BINDIR
52
53     data.path = $$DATADIR
54     data.files += data/club.xml
55
56     desktop.path = $$MAEMODIR
57     desktop.files += maemo/scorecard.desktop
58
59     iconxpm.path = /usr/share/pixmap
60     iconxpm.files += images/scorecard.xpm 
61
62     icon26.path = $$IMGDIR/26x26/apps
63     icon26.files += images/scorecard_icon_26x26.png 
64
65     icon40.path = $$IMGADIR/40x40/apps
66     icon40.files += images/scorecard_icon_40x40.png 
67
68     icon64.path = $$IMGDIR/64x64/apps
69     icon64.files += images/scorecard_icon_64x64.png 
70     
71 }