-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBabel.pro
More file actions
84 lines (58 loc) · 1.8 KB
/
Babel.pro
File metadata and controls
84 lines (58 loc) · 1.8 KB
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
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17 static static_runtime no-exceptions no-rtti embed_translations lrelease
QT_CONFIG -= accessibility concurrent dbus network printsupport sql testlib
QMAKE_CFLAGS_RELEASE -= -O0
QMAKE_CFLAGS_RELEASE += -O2
QMAKE_CXXFLAGS_RELEASE -= -O0
QMAKE_CXXFLAGS_RELEASE += -O2
QMAKE_CXXFLAGS_RELEASE += -ffunction-sections -fdata-sections
QMAKE_LFLAGS_RELEASE += -Wl,--gc-sections
CONFIG += ninja
CONFIG += lto
DESTDIR = $PWD/build
OBJECTS_DIR = $PWD/build/obj
MOC_DIR = $PWD/build/moc
RCC_DIR = $PWD/build/rcc
UI_DIR = build/ui
win32 {
copy_mappings.commands = $(COPY_DIR) $shell_path($PWD/resources/mappings.json) $shell_path($DESTDIR/)
} else:unix {
copy_mappings.commands = cp -f $PWD/resources/mappings.json $DESTDIR/
}
QMAKE_EXTRA_TARGETS += copy_mappings
POST_TARGETDEPS += copy_mappings
SOURCES += \
src/LetterConverter.cpp \
src/aboutdialog.cpp \
src/main.cpp \
src/mainwindow.cpp \
src/phoneticchartdialog.cpp
HEADERS += \
include/LetterConverter.h \
include/aboutdialog.h \
include/mainwindow.h \
include/phoneticchartdialog.h
INCLUDEPATH += include
FORMS += \
ui/aboutdialog.ui \
ui/mainwindow.ui \
ui/phoneticchartdialog.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
RC_FILE = resources/logo.rc
RC_ICON = resources/app.ico
DISTFILES += \
resources/logo.rc \
resources/mappings.json
RESOURCES += \
resources/res.qrc
TRANSLATIONS += \
translations/Babel_ar_SA.ts \
translations/Babel_en_US.ts \
translations/Babel_es_ES.ts \
translations/Babel_fr_FR.ts \
translations/Babel_ru_RU.ts \
translations/Babel_zh_CN.ts