source: trunk/src/3rdparty/webkit/WebKit/qt/declarative/declarative.pro@ 1057

Last change on this file since 1057 was 1057, checked in by Dmitry A. Kuminov, 14 years ago

Rename qmldir to qmldir.in and use qmake substitution for plugin name.

This makes sure that the plugin filename always matches the TARGET
specification. This also makes the copy2build hassle unneeded.

This commit supersedes r1053.

Suggested by Rudi Ihle.

File size: 1.9 KB
Line 
1TARGET = qmlwebkitplugin
2os2:TARGET_SHORT = qmlweb
3TARGETPATH = QtWebKit
4
5TEMPLATE = lib
6CONFIG += qt plugin
7
8win32|mac:!wince*:!win32-msvc:!macx-xcode:CONFIG += debug_and_release
9
10isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../../..
11
12!isEmpty(TARGET_SHORT):PLUGINFILENAME = $$TARGET_SHORT
13else:PLUGINFILENAME = $$TARGET
14
15QMLDIRFILE.input = $${_PRO_FILE_PWD_}/qmldir.in
16CONFIG(QTDIR_build) {
17 QMLDIRFILE.output = $$QT_BUILD_TREE/imports/$$TARGETPATH/qmldir
18} else {
19 QMLDIRFILE.output = $$OUTPUT_DIR/imports/$$TARGETPATH/qmldir
20}
21QMAKE_SUBSTITUTES += QMLDIRFILE
22
23TARGET = $$qtLibraryTarget($$TARGET)
24!isEmpty(TARGET_SHORT):TARGET_SHORT = $$qtLibraryTarget($$TARGET_SHORT)
25contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
26
27wince*:LIBS += $$QMAKE_LIBS_GUI
28
29symbian: {