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