aboutsummaryrefslogtreecommitdiff
path: root/demos/widgetsgallery/widgetsgallery.pro
blob: fd392cfeed5931b53cf2d98c12932777256e3bb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
DUIROOT = ../..
include($$DUIROOT/mkspecs/common.pri)
DUILIB = $$DUIROOT/lib
DUISRC = $$DUIROOT/src
DUISRCINCLUDE = $$DUISRC/include
DUISFWINCLUDE = $$DUIROOT/servicefw/include
INCLUDEPATH += . \
    $$DUISRCINCLUDE \
    $$DUISRC
QMAKE_LIBDIR += $$DUILIB
win32|macx { 
    macx { 
        QMAKE_LFLAGS += -F../../lib
        LIBS += -framework \
            dui
    }
    win32:LIBS += -L../../lib \
        -ldui0
}
else:LIBS += ../../lib/libdui.so

TEMPLATE = app
TARGET = widgetsgallery
target.path = $$DUI_INSTALL_BIN
OBJECTS_DIR = ./.obj
MOC_DIR = ./.moc
DEPENDPATH += $$INCLUDEPATH
CONFIG += qt
QT += svg
contains(DEFINES, HAVE_DBUS) { 
    CONFIG += qdbus
    QT += dbus
}
SOURCES += main.cpp \
    templatepage.cpp \
    listpage.cpp \
    labelpage.cpp \
    pushbuttonpage.cpp \
    feedbackpage.cpp \
    iconbuttonpage.cpp \
    switchpage.cpp \
    dialogsandnotificationspage.cpp \
    imagepage.cpp \
    applicationmenupage.cpp \
    toolbarpage.cpp \
    textentrypage.cpp \
    duilistpage.cpp \
    duigridpage.cpp \
    gridmodel.cpp \
    sliderpage.cpp \
    comboboxpage.cpp \
    progressbarpage.cpp \
    spinnerpage.cpp \
    checkboxpage.cpp \
    containerpage.cpp \
    objectmenupage.cpp \
    navigationbarpage.cpp \
    languagepage.cpp \
    widgetsgalleryretranslator.cpp \
    utils.cpp \
    panningbenchmark.cpp \
    timedemo.cpp \
    timingscene.cpp \
    ../../benchmarks/performancebenchmark/emptymainloophelper.cpp \
    timedemopage.cpp \
    timedemobenchmark.cpp \
    staticpagebenchmark.cpp \

HEADERS += templatepage.h \
    listpage.h \
    labelpage.h \
    pushbuttonpage.h \
    feedbackpage.h \
    iconbuttonpage.h \
    switchpage.h \
    dialogsandnotificationspage.h \
    imagepage.h \
    applicationmenupage.h \
    toolbarpage.h \
    textentrypage.h \
    duilistpage.h \
    duigridpage.h \
    gridmodel.h \
    sliderpage.h \
    comboboxpage.h \
    progressbarpage.h \
    spinnerpage.h \
    checkboxpage.h \
    containerpage.h \
    objectmenupage.h \
    navigationbarpage.h \
    languagepage.h \
    widgetsgalleryretranslator.h \
    utils.h \
    panningbenchmark.h \
    timedemo.h \
    timingscene.h \
    ../../benchmarks/performancebenchmark/emptymainloophelper.h \
    timedemopage.h \
    timedemobenchmark.h \
    staticpagebenchmark.h \

# theme
include(theme/theme.pri)

contains( DEFINES, HAVE_N900 ) {
    SOURCES += contactmodel.cpp
    HEADERS += contactmodel.h

    PKGCONFIG += libosso-abook-1.0
    CONFIG += release link_pkgconfig

    desktop_icon.path = $$DUI_INSTALL_DATA/icons/hicolor/64x64/hildon
    desktop_icon.files = widgetsgallery.png

    INSTALLS += desktop_icon

    desktop_entry.path = $$DUI_INSTALL_DATA/applications/hildon
    desktop_entry.files = widgetsgallery-n900.desktop
} else {
    SOURCES += phonebookmodel.cpp
    HEADERS += phonebookmodel.h

    desktop_entry.path = $$DUI_INSTALL_DATA/applications
    desktop_entry.files = widgetsgallery.desktop
}

myname = com.nokia.widgetsgallery
services.CONFIG += no_check_exist
services.target = $${myname}.service
services.commands = cat \
    $$IN_PWD/$${myname}.service.in \
    | \
    sed \
    -e \
    "s:@DUI_INSTALL_BIN@:$${DUI_INSTALL_BIN}:g" \
    > \
    $${myname}.service
services.files = $$OUT_PWD/$${myname}.service
services.path = $$DUI_DBUS_SERVICES_DIR
testsxml.files = tests.xml
testsxml.path = /usr/share/dui-demos-widgetsgallery-tests/
DEFINES += CONTACTS_DIR=\"\\\"$$DUI_THEME_DIR/devel/dui/widgetsgallery/images/contacts/\\\"\"
DEFINES += IMAGES_DIR=\"\\\"$$DUI_THEME_DIR/devel/dui/widgetsgallery/images/\\\"\"

# Install instructions
INSTALLS += target \
    desktop_entry \
    testsxml
!win32:!macx:INSTALLS += services