~allanlesage/ubuntu-system-settings/add-background-plugin-objectNames

« back to all changes in this revision

Viewing changes to plugins/sound/sound.pro

  • Committer: Tarmac
  • Author(s): Jussi Pakkanen
  • Date: 2013-10-24 14:53:27 UTC
  • mfrom: (317.4.62 ubuntu-system-settings)
  • Revision ID: tarmac-20131024145327-1i7fj7mviod9cdyt
Switch to CMake.

Approved by Sebastien Bacher, Iain Lane, PS Jenkins bot, Alberto Mardegan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
include(../../common-project-config.pri)
2
 
include($${TOP_SRC_DIR}/common-vars.pri)
3
 
 
4
 
TEMPLATE = lib
5
 
TARGET = sound
6
 
 
7
 
QML_SOURCES = \
8
 
    PageComponent.qml \
9
 
    SilentModeWarning.qml \
10
 
    SoundsList.qml
11
 
 
12
 
OTHER_FILES += \
13
 
    $${QML_SOURCES}
14
 
 
15
 
qml.files = $${QML_SOURCES}
16
 
qml.path = $${PLUGIN_QML_DIR}/$${TARGET}
17
 
INSTALLS += qml
18
 
 
19
 
utilities.files = utilities.js
20
 
utilities.path = $${PLUGIN_QML_DIR}/$${TARGET}
21
 
INSTALLS += utilities
22
 
 
23
 
settings.files = $${TARGET}.settings
24
 
settings.path = $${PLUGIN_MANIFEST_DIR}
25
 
INSTALLS += settings
26
 
 
27
 
image.files = settings-sounds.svg
28
 
image.path = $${PLUGIN_MANIFEST_DIR}/icons
29
 
INSTALLS += image
30
 
 
31
 
# C++ bits
32
 
TARGET = UbuntuSoundPanel
33
 
QT += qml quick
34
 
CONFIG += qt plugin no_keywords
35
 
 
36
 
#comment in the following line to enable traces
37
 
#DEFINES += QT_NO_DEBUG_OUTPUT
38
 
 
39
 
TARGET = $$qtLibraryTarget($$TARGET)
40
 
uri = Ubuntu.SystemSettings.Sound
41
 
 
42
 
INCLUDEPATH += .
43
 
 
44
 
# Input
45
 
HEADERS += plugin.h sound.h
46
 
SOURCES += plugin.cpp sound.cpp
47
 
 
48
 
# Install path for the plugin
49
 
installPath = $${PLUGIN_PRIVATE_MODULE_DIR}/$$replace(uri, \\., /)
50
 
target.path = $$installPath
51
 
INSTALLS += target
52
 
 
53
 
# find files
54
 
QMLDIR_FILE = qmldir
55
 
 
56
 
# make visible to qt creator
57
 
OTHER_FILES += $$QMLDIR_FILE
58
 
 
59
 
# create install targets for files
60
 
qmldir.path = $$installPath
61
 
qmldir.files = $$QMLDIR_FILE
62
 
 
63
 
INSTALLS += qmldir