1TARGET = qmlwebkitplugin 2TARGETPATH = QtWebKit 3 4TEMPLATE = lib 5CONFIG += qt plugin 6 7win32|mac:!wince*:!win32-msvc:!macx-xcode:CONFIG += debug_and_release 8 9isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../../.. 10 11QMLDIRFILE = $${_PRO_FILE_PWD_}/qmldir 12copy2build.input = QMLDIRFILE 13CONFIG(QTDIR_build) { 14 copy2build.output = $$QT_BUILD_TREE/imports/$$TARGETPATH/qmldir 15} else { 16 copy2build.output = $$OUTPUT_DIR/imports/$$TARGETPATH/qmldir 17} 18!contains(TEMPLATE_PREFIX, vc):copy2build.variable_out = PRE_TARGETDEPS 19copy2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} 20copy2build.name = COPY ${QMAKE_FILE_IN} 21copy2build.CONFIG += no_link 22QMAKE_EXTRA_COMPILERS += copy2build 23 24TARGET = $$qtLibraryTarget($$TARGET) 25contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols 26 27wince*:LIBS += $$QMAKE_LIBS_GUI 28 29symbian: { 30 TARGET.EPOCALLOWDLLDATA=1 31 TARGET.CAPABILITY = All -Tcb 32 load(armcc_warnings) 33 TARGET = $$TARGET$${QT_LIBINFIX} 34} 35 36include(../../../WebKit.pri) 37 38QT += declarative 39 40!CONFIG(standalone_package) { 41 linux-* { 42 # From Creator's src/rpath.pri: 43 # Do the rpath by hand since it's not possible to use ORIGIN in QMAKE_RPATHDIR 44 # this expands to $ORIGIN (after qmake and make), it does NOT read a qmake var. 45 QMAKE_RPATHDIR = $$OUTPUT_DIR/lib $$QMAKE_RPATHDIR 46 MY_RPATH = $$join(QMAKE_RPATHDIR, ":") 47 48 QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$${MY_RPATH}\' 49 QMAKE_RPATHDIR = 50 } else { 51 QMAKE_RPATHDIR = $$OUTPUT_DIR/lib $$QMAKE_RPATHDIR 52 } 53} 54 55SOURCES += qdeclarativewebview.cpp plugin.cpp 56HEADERS += qdeclarativewebview_p.h 57 58CONFIG(QTDIR_build) { 59 DESTDIR = $$QT_BUILD_TREE/imports/$$TARGETPATH 60} else { 61 DESTDIR = $$OUTPUT_DIR/imports/$$TARGETPATH 62} 63target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH 64 65 66qmldir.files += $$PWD/qmldir 67qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH 68 69symbian:{ 70 TARGET.UID3 = 0x20021321 71} 72 73INSTALLS += target qmldir 74