~oxide-developers/oxide/1.2

« back to all changes in this revision

Viewing changes to oxide-qt/qmlplugin/qmlplugin.pro

  • Committer: Chris Coulson
  • Date: 2013-07-23 11:40:24 UTC
  • Revision ID: chris.coulson@canonical.com-20130723114024-p7z00cs9p0s5te6e
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
TEMPLATE = lib
 
2
TARGET = qmloxideplugin
 
3
QT += qml quick
 
4
CONFIG += qt plugin
 
5
DEPTH = ../..
 
6
 
 
7
TARGET = $$qtLibraryTarget($$TARGET)
 
8
uri = com.canonical.Oxide
 
9
 
 
10
isEmpty(PREFIX) {
 
11
    PREFIX = /usr/local
 
12
}
 
13
 
 
14
INCLUDEPATH += \
 
15
    $$DEPTH \
 
16
    $${DEPTH}/oxide-qt \
 
17
    $${DEPTH}/chromium/src
 
18
 
 
19
equals(OXIDE_DEBUG, "1") {
 
20
    LIBS += -L$${DEPTH}/chromium/src/out/Debug/lib.target -loxideprivate
 
21
} else {
 
22
    LIBS += -L$${DEPTH}/chromium/src/out/Release/lib.target -loxideprivate
 
23
}
 
24
 
 
25
# Input
 
26
SOURCES += \
 
27
    oxide_qml_plugin.cpp \
 
28
    oxide_qquick_web_view.cpp \
 
29
    oxide_qquick_web_view_context.cpp
 
30
 
 
31
HEADERS += \
 
32
    oxide_qquick_web_view.h \
 
33
    oxide_qquick_web_view_context.h
 
34
 
 
35
OTHER_FILES = qmldir
 
36
 
 
37
!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
 
38
    copy_qmldir.target = $$OUT_PWD/qmldir
 
39
    copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
 
40
    copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
 
41
    QMAKE_EXTRA_TARGETS += copy_qmldir
 
42
    PRE_TARGETDEPS += $$copy_qmldir.target
 
43
}
 
44
 
 
45
qmldir.files = qmldir
 
46
unix {
 
47
    installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
 
48
    qmldir.path = $$installPath
 
49
    target.path = $$installPath
 
50
    INSTALLS += target qmldir
 
51
    QMAKE_LFLAGS += '-Wl,-rpath,\'\$\$ORIGIN/$$system(python -c \'import os.path; print os.path.relpath(\"$${PREFIX}/lib/oxide-qt\", \"$$installPath\")\')\'' 
 
52
}