generated from QuardCRT-platform/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
textstatistics.pro
38 lines (32 loc) · 1.39 KB
/
textstatistics.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
TEMPLATE = lib
CONFIG += plugin
QT += core widgets
INCLUDEPATH += $$PWD/plugininterface \
$$PWD
HEADERS = plugininterface/plugininterface.h \
textstatistics.h \
textstatisticsdialog.h
SOURCES = plugininterface/plugininterface.cpp \
textstatistics.cpp \
textstatisticsdialog.cpp
TRANSLATIONS = textstatistics_zh_CN.ts \
textstatistics_en_US.ts
RESOURCES = textstatistics.qrc
TARGET = $$qtLibraryTarget(textstatistics)
win32:{
build_info.commands = $$quote("c:/Windows/system32/WindowsPowerShell/v1.0/powershell.exe -ExecutionPolicy Bypass -NoLogo -NoProfile -File \"$$PWD/tools/replacer.ps1\" -cc_info $$QMAKE_CXX -tpath $$PWD/plugininterface/plugininterface.json.temp -opath $$PWD/plugininterface/plugininterface.json")
}
unix:!macx:{
QMAKE_RPATHDIR=$ORIGIN
build_info.commands = $$quote("cd $$PWD && ./tools/replacer.sh $$QMAKE_CXX $$PWD/plugininterface/plugininterface.json.temp $$PWD/plugininterface/plugininterface.json")
}
macx:{
QMAKE_RPATHDIR=$ORIGIN
build_info.commands = $$quote("cd $$PWD && ./tools/replacer.sh $$QMAKE_CXX $$PWD/plugininterface/plugininterface.json.temp $$PWD/plugininterface/plugininterface.json")
}
build_info.target = $$PWD/plugininterface/plugininterface.json
build_info.depends = FORCE
PRE_TARGETDEPS += $$PWD/plugininterface/plugininterface.json
QMAKE_EXTRA_TARGETS += build_info
FORMS += \
textstatisticsdialog.ui