-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dialogue.pro
182 lines (152 loc) · 3.71 KB
/
Dialogue.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
QT += core network qml quick quickcontrols2
TARGET = Dialogue
TEMPLATE = app
CONFIG += c++17
RESOURCES += src/qml.qrc
# Qt Creator Debug/Release Differentiation
# Ensure one "debug_and_release" in CONFIG, for clarity.
debug_and_release {
CONFIG -= debug_and_release
CONFIG += debug_and_release
}
# Ensure one "debug" or "release" in CONFIG so they can be used as conditionals
# instead of writing "CONFIG(debug, debug|release)"
CONFIG(debug, debug|release) {
CONFIG -= debug release
CONFIG += debug
}
CONFIG(release, debug|release) {
CONFIG -= debug release
CONFIG += release
}
HEADERS += \
src/Dialogue.hpp \
src/Connection.hpp \
src/ConnectionInterface.hpp \
src/MessageModel.hpp \
src/Thread.hpp
SOURCES += \
src/main.cpp \
src/Dialogue.cpp \
src/Connection.cpp \
src/ConnectionInterface.cpp \
src/MessageModel.cpp \
src/Thread.cpp
# Platform-specific configuration
android {
message(Android)
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/resources/android
DISTFILES += \
resources/android/AndroidManifest.xml \
resources/android/gradle/wrapper/gradle-wrapper.jar \
resources/android/gradlew \
resources/android/res/values/libs.xml \
resources/android/build.gradle \
resources/android/gradle/wrapper/gradle-wrapper.properties \
resources/android/gradlew.bat
debug {
message(Debug)
DESTDIR = build/android/debug/
}
release {
message(Release)
DESTDIR = build/android/release/
}
} else:ios {
message(iOS)
message(clang)
debug {
message(Debug)
DESTDIR = build/iOS/debug/
}
release {
message(Release)
DESTDIR = build/iOS/release/
}
} else { # Desktop OS
linux {
message(Linux)
QMAKE_CXXFLAGS += -fstack-protector
QMAKE_LFLAGS += -fstack-protector
QMAKE_LFLAGS += -Wl,-rpath,"'\$$ORIGIN'"
linux-clang {
message(clang x86_64)
debug {
message(Debug)
DESTDIR = build/linux/clang/x86_64/debug/Dialogue/
}
release {
message(Release)
DESTDIR = build/linux/clang/x86_64/release/Dialogue/
}
}
linux-g++ {
message(g++)
debug {
message(Debug)
DESTDIR = build/linux/gcc/x86_64/debug/Dialogue/
}
release {
message(Release)
DESTDIR = build/linux/gcc/x86_64/release/Dialogue/
}
}
} # End Linux
macos {
message(macOS)
message(clang x86_64)
QMAKE_CXXFLAGS += -fstack-protector
QMAKE_LFLAGS += -fstack-protector
ICON = resources/icons/dialogue.icns
debug {
message(Debug)
DESTDIR = build/macOS/clang/x86_64/debug/
}
release {
message(Release)
DESTDIR = build/macOS/clang/x86_64/release/
}
}
win32 {
message(Windows)
win32-g++ {
message(MinGW x86)
debug {
message(Debug)
DESTDIR = build/windows/mingw/x86/debug/Dialogue/
}
release {
message(Release)
DESTDIR = build/windows/mingw/x86/release/Dialogue/
}
}
win32-msvc {
contains(QT_ARCH, x86_64) {
message(MSVC x86_64)
debug {
message(Debug)
DESTDIR = build/windows/msvc/x86_64/debug/Dialogue/
}
release {
message(Release)
DESTDIR = build/windows/msvc/x86_64/release/Dialogue/
}
} else {
message(MSVC x86)
debug {
message(Debug)
DESTDIR = build/windows/msvc/x86/debug/Dialogue/
}
release {
message(Release)
DESTDIR = build/windows/msvc/x86/release/Dialogue/
}
}
}
RC_ICONS += resources/icons/dialogue.ico
} # End win32
} # End desktop
OBJECTS_DIR = $$DESTDIR/obj
MOC_DIR = $$DESTDIR/moc
RCC_DIR = $$DESTDIR/qrc
include(deployment.pri)