blob: cf3ac74c9ad7630059b0a8c60b3a98423968a0fa (
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
|
include(../meegotouch_config.pri)
contains(QT_CONFIG, opengles2) {
message("building Makefile for EGL/GLES2 version")
SOURCES += mtexturepixmapitem_egl.cpp
} else {
# Qt wasn't built with EGL/GLES2 support but EGL is present
# ensure we still use the EGL back-end
exists($$QMAKE_INCDIR_OPENGL/EGL) {
message("building Makefile for EGL/GLES2 version")
SOURCES += mtexturepixmapitem_egl.cpp
LIBS += -lEGL
}
# Otherwise use GLX backend
else {
message("building Makefile for GLX version")
SOURCES += mtexturepixmapitem_glx.cpp
}
}
TEMPLATE = lib
TARGET = mcompositor
DEPENDPATH += .
QT += dbus
# Input
INCLUDEPATH += ../decorators/libdecorator/
HEADERS += \
mtexturepixmapitem.h \
mtexturepixmapitem_p.h \
mcompositescene.h \
mcompositewindow.h \
mwindowpropertycache.h \
mcompwindowanimator.h \
mcompositemanager.h \
msimplewindowframe.h \
mcompositemanager_p.h \
mdevicestate.h \
mcompatoms_p.h \
mdecoratorframe.h \
mcompositemanagerextension.h \
mcompositewindowshadereffect.h \
mcompmgrextensionfactory.h
SOURCES += \
mtexturepixmapitem_p.cpp \
mcompositescene.cpp \
mcompositewindow.cpp \
mwindowpropertycache.cpp \
mcompwindowanimator.cpp \
mcompositemanager.cpp \
msimplewindowframe.cpp \
mdevicestate.cpp \
mdecoratorframe.cpp \
mcompositemanagerextension.cpp \
mcompositewindowshadereffect.cpp
RESOURCES = tools.qrc
CONFIG += release link_pkgconfig
PKGCONFIG += contextsubscriber-1.0
QT += core gui opengl
# TODO: refactor the headers to exclude private stuff
publicHeaders.files = mcompositewindow.h \
mcompositemanager.h \
mcompositewindowshadereffect.h \
mcompositemanagerextension.h \
mwindowpropertycache.h \
mcompatoms_p.h \
mcompmgrextensionfactory.h
publicHeaders.path = $$M_INSTALL_HEADERS/mcompositor
INSTALLS += publicHeaders
target.path += /usr/lib
INSTALLS += target
LIBS += -lXdamage -lXcomposite -lXfixes -lX11-xcb -lxcb-render -lxcb-shape \
-lXrandr ../decorators/libdecorator/libdecorator.so
QMAKE_EXTRA_TARGETS += check
check.depends = $$TARGET
check.commands = $$system(true)
|