-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.pro
41 lines (30 loc) · 1.09 KB
/
app.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
include(../../../common.pri)
QT += core gui network widgets core5compat
TEMPLATE = app
TARGET = Qt-App
LIBS += \
-l$$replaceLibName(dump) \
-l$$replaceLibName(extensionsystem) \
-l$$replaceLibName(thirdparty) \
-l$$replaceLibName(gui) \
-l$$replaceLibName(resource) \
-l$$replaceLibName(utils)
include(../../3rdparty/3rdparty.pri)
DESTDIR = $$APP_OUTPUT_PATH
RC_ICONS = app.ico
ICON = app.icns
SOURCES += \
main.cc
win32{
src_path = $$vcpkg_path/tools/crashpad
dist_path = $$APP_OUTPUT_PATH
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$replace(src_path, /, \\) $$replace(dist_path, /, \\)
}
macx{
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$APP_OUTPUT_PATH/plugins $$APP_OUTPUT_PATH/Qt-App.app/Contents/MacOS
QMAKE_POST_LINK += & $$QMAKE_COPY_FILE $$APP_OUTPUT_PATH/CrashReport $$APP_OUTPUT_PATH/Qt-App.app/Contents/MacOS/CrashReport
QMAKE_POST_LINK += & $$QMAKE_COPY_DIR "$$vcpkg_path/tools/crashpad/" "$$APP_OUTPUT_PATH/Qt-App.app/Contents/MacOS"
}
unix:!macx{
QMAKE_POST_LINK += $$QMAKE_COPY_DIR "$$vcpkg_path/tools/crashpad" "$$APP_OUTPUT_PATH"
}