~patrick-hetu/+junk/evopedia-app

« back to all changes in this revision

Viewing changes to src.pri

  • Committer: Patrick Hetu
  • Date: 2013-07-22 02:35:22 UTC
  • Revision ID: patrick.hetu@gmail.com-20130722023522-jrfmj5s6eb3mfdv8
initial test

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
QT += core network widgets
 
2
 
 
3
!contains(DEFINES, NO_GUI) {
 
4
    QT += gui
 
5
}
 
6
INCLUDEPATH += src
 
7
 
 
8
DEFINES += QT_NO_CAST_TO_ASCII
 
9
DEFINES += QT_NO_CAST_FROM_BYTEARRAY
 
10
 
 
11
SOURCES += \
 
12
    src/archive.cpp \
 
13
    src/archivemanager.cpp \
 
14
    src/bzreader.cpp \
 
15
    src/downloadablearchive.cpp \
 
16
    src/evopedia.cpp \
 
17
    src/evopediaapplication.cpp \
 
18
    src/evopediawebserver.cpp \
 
19
    src/localarchive.cpp \
 
20
    src/partialarchive.cpp \
 
21
    src/title.cpp \
 
22
    src/titleiterator.cpp \
 
23
    src/utils.cpp \
 
24
    src/torrent/bencodeparser.cpp \
 
25
    src/torrent/connectionmanager.cpp \
 
26
    src/torrent/filemanager.cpp \
 
27
    src/torrent/metainfo.cpp \
 
28
    src/torrent/peerwireclient.cpp \
 
29
    src/torrent/ratecontroller.cpp \
 
30
    src/torrent/torrentclient.cpp \
 
31
    src/torrent/torrentserver.cpp \
 
32
    src/torrent/trackerclient.cpp
 
33
 
 
34
HEADERS += \
 
35
    src/localarchive.h \
 
36
    src/title.h \
 
37
    src/evopedia.h \
 
38
    src/bzreader.h \
 
39
    src/evopediawebserver.h \
 
40
    src/utils.h \
 
41
    src/archive.h \
 
42
    src/downloadablearchive.h \
 
43
    src/partialarchive.h \
 
44
    src/titleiterator.h \
 
45
    src/evopediaapplication.h \
 
46
    src/defines.h \
 
47
    src/archivemanager.h \
 
48
    src/torrent/bencodeparser.h \
 
49
    src/torrent/connectionmanager.h \
 
50
    src/torrent/filemanager.h \
 
51
    src/torrent/metainfo.h \
 
52
    src/torrent/peerwireclient.h \
 
53
    src/torrent/ratecontroller.h \
 
54
    src/torrent/torrentclient.h \
 
55
    src/torrent/torrentserver.h \
 
56
    src/torrent/trackerclient.h
 
57
 
 
58
!contains(DEFINES, NO_GUI) {
 
59
    SOURCES += \
 
60
        src/archivedetailsdialog.cpp \
 
61
        src/archivelist.cpp \
 
62
        src/dumpsettings.cpp \
 
63
        src/flickable.cpp \
 
64
        src/flickablemap.cpp \
 
65
        src/mainwindow.cpp \
 
66
        src/map.cpp \
 
67
        src/mapwindow.cpp \
 
68
        src/tilefetcher.cpp \
 
69
        src/titlelistmodel.cpp
 
70
    
 
71
    HEADERS += \
 
72
        src/archivedetailsdialog.h \
 
73
        src/archivelist.h \
 
74
        src/dumpsettings.h \
 
75
        src/flickable.h \
 
76
        src/flickablemap.h \
 
77
        src/geotitle.h \
 
78
        src/mainwindow.h \
 
79
        src/map.h \
 
80
        src/mapwindow.h \
 
81
        src/tilefetcher.h \
 
82
        src/titlelistmodel.h
 
83
 
 
84
    FORMS += src/ui/mainwindow.ui \
 
85
        src/ui/dumpSettings.ui \
 
86
        src/ui/mapwindow.ui \
 
87
        src/ui/archivedetailsdialog.ui
 
88
}
 
89
 
 
90
TRANSLATIONS += \
 
91
    resources/tr/evopedia_ca.ts \
 
92
    resources/tr/evopedia_cz.ts \
 
93
    resources/tr/evopedia_de.ts \
 
94
    resources/tr/evopedia_en.ts \
 
95
    resources/tr/evopedia_es.ts \
 
96
    resources/tr/evopedia_fr.ts \
 
97
    resources/tr/evopedia_it.ts \
 
98
    resources/tr/evopedia_ja.ts \
 
99
    resources/tr/evopedia_nl.ts \
 
100
    resources/tr/evopedia_vi.ts
 
101
 
 
102
OTHER_FILES += \
 
103
    resources/evopedia.desktop \
 
104
    resources/evopedia.js \
 
105
    resources/footer.html \
 
106
    resources/header.html \
 
107
    resources/magnify-clip.png \
 
108
    resources/main.css \
 
109
    resources/map.png \
 
110
    resources/maparticle.png \
 
111
    resources/random.png \
 
112
    resources/transtbl.dat \
 
113
    resources/wikipedia.png \
 
114
    resources/wikipedia48.png
 
115
 
 
116
RESOURCES += \
 
117
    resources/resources.qrc \
 
118
    src/torrent/icons.qrc
 
119
 
 
120
CONFIG += warn_on
 
121
 
 
122
maemo5 {
 
123
    CONFIG += mobility
 
124
    DEFINES += USE_MOBILITY
 
125
    MOBILITY += location
 
126
}
 
127
 
 
128
windows {
 
129
    # download the lib/dll/include for bzip2 and copy it to the source directory
 
130
    INCLUDEPATH += bzip2/include
 
131
    LIBS += $$quote($$_PRO_FILE_PWD_)/bzip2/lib/bzip2.lib
 
132
 
 
133
    RC_FILE += \
 
134
       resources/windows/windows.rc
 
135
}
 
136
 
 
137
macx {
 
138
    ICON = resources/evopedia.icns
 
139
}
 
140
 
 
141
symbian {
 
142
    ICON = resources/evopedia.svg
 
143
}
 
144
 
 
145
unix {
 
146
    LIBS += -lbz2
 
147
    #VARIABLES
 
148
 
 
149
    isEmpty(PREFIX) {
 
150
        PREFIX = /usr
 
151
    }
 
152
    BINDIR = $$PREFIX/bin
 
153
    DATADIR =$$PREFIX/share
 
154
 
 
155
    maemo5 {
 
156
        BINDIR = /opt/maemo/usr/bin
 
157
    }
 
158
 
 
159
    DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
 
160
 
 
161
    #MAKE INSTALL
 
162
    INSTALLS += target desktop iconxpm
 
163
 
 
164
    target.path =$$BINDIR
 
165
 
 
166
    desktop.path = $$DATADIR/applications
 
167
    maemo5 {
 
168
        desktop.path = $$DATADIR/applications/hildon
 
169
    }
 
170
    desktop.files += resources/$${TARGET}.desktop
 
171
 
 
172
    iconxpm.path = $$DATADIR/pixmaps
 
173
    iconxpm.files += resources/evopedia-64x64.png
 
174
}