generated from QuardCRT-platform/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearchonweb.pro
34 lines (28 loc) · 1.27 KB
/
searchonweb.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
TEMPLATE = lib
CONFIG += plugin
QT += core widgets
INCLUDEPATH += $$PWD/plugininterface \
$$PWD
HEADERS = plugininterface/plugininterface.h \
searchonweb.h
SOURCES = plugininterface/plugininterface.cpp \
searchonweb.cpp
TRANSLATIONS = searchonweb_zh_CN.ts \
searchonweb_en_US.ts
RESOURCES = searchonweb.qrc
TARGET = $$qtLibraryTarget(searchonweb)
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