~djfun/+junk/qmlfluidsynth

« back to all changes in this revision

Viewing changes to fluidsynth.pro

  • Committer: Martin Kaistra
  • Date: 2013-05-29 22:37:55 UTC
  • Revision ID: martin@djfun.de-20130529223755-4jggoagx8plk62wi
first commit, working demo (at least on the desktop)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
TEMPLATE = lib
 
2
TARGET = fluidsynth
 
3
QT += qml quick
 
4
CONFIG += qt plugin fluidsynth
 
5
LIBS += "-lfluidsynth"
 
6
 
 
7
TARGET = $$qtLibraryTarget($$TARGET)
 
8
uri = Qmlfluidsynth
 
9
 
 
10
# Input
 
11
SOURCES += \
 
12
    fluidsynth_plugin.cpp \
 
13
    qmlfluidsynth.cpp
 
14
 
 
15
HEADERS += \
 
16
    fluidsynth_plugin.h \
 
17
    qmlfluidsynth.h
 
18
 
 
19
OTHER_FILES = qmldir
 
20
 
 
21
!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
 
22
    copy_qmldir.target = $$OUT_PWD/qmldir
 
23
    copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
 
24
    copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
 
25
    QMAKE_EXTRA_TARGETS += copy_qmldir
 
26
    PRE_TARGETDEPS += $$copy_qmldir.target
 
27
}
 
28
 
 
29
qmldir.files = qmldir
 
30
unix {
 
31
    installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
 
32
    qmldir.path = $$installPath
 
33
    target.path = $$installPath
 
34
    INSTALLS += target qmldir
 
35
}
 
36