-
Notifications
You must be signed in to change notification settings - Fork 2
/
olam.pro
111 lines (84 loc) · 2.03 KB
/
olam.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#-------------------------------------------------
#
# Project created by QtCreator 2013-12-15T22:52:19
#
#-------------------------------------------------
QT += core gui sql texttospeech
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += qt c++11
TARGET = olam
TEMPLATE = app
SOURCES += src/main.cpp\
src/olam.cpp \
src/about.cpp \
src/olamdatabase.cpp \
src/olamword.cpp
HEADERS += src/olam.h \
src/about.h \
src/olamdatabase.h \
src/olamword.h
FORMS += src/olam.ui \
src/about.ui
OTHER_FILES += \
src/db/olamdb.db \
src/db/datuk.sqlite \
misc/olam.desktop
RC_ICONS = src/misc/olam.ico
test {
message(Configuring test build...)
CONFIG += testcase
TEMPLATE = app
TARGET = olam_test
HEADERS += test/olam_database_test.h \
test/olam_word_test.h
SOURCES += test/main.cpp \
test/olam_database_test.cpp \
test/olam_word_test.cpp \
SOURCES -= src/main.cpp
QT+= testlib
}
RESOURCES += \
src/icons.qrc
linux {
isEmpty(PREFIX) {
PREFIX = /usr
}
isEmpty(BINDIR) {
BINDIR = $$PREFIX/bin
}
isEmpty(DATADIR) {
DATADIR = $$PREFIX/share
}
INSTALLS += target data icon desktopfile
target.files = $$TARGET
target.path = $$BINDIR
data.files = src/db
data.path = $$DATADIR/olam/data
icon.files = misc/olam.png
icon.path = $$DATADIR/icons
desktopfile.files = misc/olam.desktop
desktopfile.path = $$DATADIR/applications
QMAKE_CXXFLAGS += -DVISRULED_DATADIR=$$data.path
}
macx{
# Add file icons into the application bundle resources
DB.files = src/db/olamdb.db src/db/datuk.sqlite
DB.path = Contents/Resources
QMAKE_BUNDLE_DATA += DB
CONFIG += app_bundle
ICON = olam.icns
QMAKE_INFO_PLIST = Info.plist
}
CONFIG(debug, debug|release) {
isEmpty(DESTDIR) {
DESTDIR = build/debug
}
} else {
isEmpty(DESTDIR) {
DESTDIR = build/release
}
}
MOC_DIR = $$DESTDIR/.moc
OBJECTS_DIR = $$DESTDIR/.obj
RCC_DIR = $$DESTDIR/.rcc
UI_DIR = $$DESTDIR/.ui