Home | History | Annotate | Download | only in declarative
      1 TARGET  = qmlwebkitplugin
      2 TARGETPATH = QtWebKit
      3 
      4 TEMPLATE = lib
      5 CONFIG += qt plugin
      6 
      7 win32|mac:!wince*:!win32-msvc:!macx-xcode:CONFIG += debug_and_release
      8 
      9 isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../../..
     10 
     11 QMLDIRFILE = $${_PRO_FILE_PWD_}/qmldir
     12 copy2build.input = QMLDIRFILE
     13 CONFIG(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
     19 copy2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
     20 copy2build.name = COPY ${QMAKE_FILE_IN}
     21 copy2build.CONFIG += no_link
     22 QMAKE_EXTRA_COMPILERS += copy2build
     23 
     24 TARGET = $$qtLibraryTarget($$TARGET)
     25 contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
     26 
     27 wince*:LIBS += $$QMAKE_LIBS_GUI
     28 
     29 symbian: {
     30     TARGET.EPOCALLOWDLLDATA=1
     31     TARGET.CAPABILITY = All -Tcb
     32     load(armcc_warnings)
     33     TARGET = $$TARGET$${QT_LIBINFIX}
     34 }
     35 
     36 include(../../../WebKit.pri)
     37 
     38 QT += 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 
     55 SOURCES += qdeclarativewebview.cpp plugin.cpp
     56 HEADERS += qdeclarativewebview_p.h
     57 
     58 CONFIG(QTDIR_build) {
     59     DESTDIR = $$QT_BUILD_TREE/imports/$$TARGETPATH
     60 } else {
     61     DESTDIR = $$OUTPUT_DIR/imports/$$TARGETPATH
     62 }
     63 target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
     64 
     65 
     66 qmldir.files += $$PWD/qmldir
     67 qmldir.path +=  $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
     68 
     69 symbian:{
     70     TARGET.UID3 = 0x20021321
     71 }
     72 
     73 INSTALLS += target qmldir
     74