-
Notifications
You must be signed in to change notification settings - Fork 32
/
KBBI-Qt.pro
80 lines (67 loc) · 2.55 KB
/
KBBI-Qt.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
# KBBI Qt is a GUI based C++/Qt Framework program for The Big Indonesian Language Dictionary.
# Copyright (C) 2016 KBBI Qt Team <https://github.com/bgli/kbbi-qt>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# This file is a part of KBBI Qt source code.
# This file is written by Sucipto <admin@sucipto.net> and Rania el-Amina <reaamina@gmail.com>.
#
#-------------------------------------------------
#
# Project created by QtCreator 2016-10-25T00:03:13
#
#-------------------------------------------------
QT += core gui sql
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = KBBI-Qt
TEMPLATE = app
SOURCES += src/main.cpp\
src/mainwindow.cpp \
src/tentang.cpp
HEADERS += src/mainwindow.h \
src/tentang.h
FORMS += src/mainwindow.ui \
src/tentang.ui
RESOURCES += \
src/resource.qrc
# hanya dicoba di output 32bit
win32 {
RC_FILE += src/kbbi-qt.rc
DB_FILE = KBBI.db
PWD_SOURCE = $${PWD}
PWD_SOURCE ~= s,/,\\,g
PWD_DEST = $${OUT_PWD}
PWD_DEST ~= s,/,\\,g
CONFIG(release, debug|release) {
QMAKE_POST_LINK += $$quote(${COPY} $${PWD_SOURCE}\\src\\data\\$${DB_FILE} $${PWD_DEST}\\release\\)
# QMAKE_CLEAN += $$quote(release\\$${DB_FILE})
}
CONFIG(debug, debug|release) {
QMAKE_POST_LINK += $$quote(${COPY} $${PWD_SOURCE}\\src\\data\\$${DB_FILE} $${PWD_DEST}\\debug\\)
# QMAKE_CLEAN += $$quote(debug\\$${DB_FILE})
}
}
unix {
INSTALLBASE = /usr
target.path = $$INSTALLBASE/bin
dbtarget.path = $$INSTALLBASE/share/$$TARGET/data
dbtarget.files += src/data/KBBI.db src/data/*.html
htmlresources.path = $$INSTALLBASE/share/$$TARGET/data/puebi
htmlresources.files += src/data/puebi/*
icons.path = $$INSTALLBASE/share/pixmaps
icons.files = src/KBBI-qt.png
docs.path = $$INSTALLBASE/share/doc/$$TARGET/
docs.files += AUTHORS LICENSE README.md doc/pdf/dokumentasi.pdf
desktop.path = $$INSTALLBASE/share/applications/
desktop.files = KBBI-Qt.desktop
INSTALLS += target dbtarget icons docs desktop htmlresources
}