~michael-sheldon/ubuntu/utopic/maliit-framework/fix-1373985

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
include(./config.pri)

!isEmpty(HELP) {
    # Output help
    help_string = \
        Important build options: \
        \\n\\t PREFIX : Install prefix (default: /usr) \
        \\n\\t {BIN,LIB,INCLUDE,DOC}DIR : Install prefix for specific types of files \
        \\n\\t MALIIT_DEFAULT_PLUGIN : Default onscreen (virtual) keyboard plugin \
        \\n\\t MALIIT_DEFAULT_HW_PLUGIN : Default hardware keyboard plugin \
        \\n\\t MALIIT_SERVER_ARGUMENTS : Arguments to use for starting maliit-server by D-Bus activation \
        \\nRecognised CONFIG flags: \
        \\n\\t enable-contextkit : Build contextkit support (for monitoring hardware keyboard status) \
        \\n\\t enable-dbus-activation : Enable dbus activation support for maliit-server \
        \\n\\t disable-dbus : Disable dbus communication backend \
        \\n\\t enable-qdbus : Enable QtDBus implementation for the DBus communication backend \
        \\n\\t notests : Do not build tests \
        \\n\\t noqml : Do not build Quick QML Plugins Interface\
        \\n\\t nogtk : Do not build GTK+ input method module, nor the glib-based application support libraries\
        \\n\\t nodoc : Do not build documentation\
        \\n\\t disable-gtk-cache-update : Do not update GTK2/3 input method caches (used for packaging) \
        \\n\\t local-install : Install everything underneath PREFIX, nothing to system directories reported by GTK+, Qt, DBus etc. \
        \\n\\t disable-background-translucency : Do not set translucent background hint on surfaces (workaround for non-compositing WMs) \
        \\n\\t wayland : Compile with support for wayland \
        \\nInfluential environment variables: \
        \\n\\t PKG_CONFIG_PATH : Override standard directories to look for pkg-config information \
        \\nExamples: \
        \\n\\t qmake \
        \\n\\t qmake PREFIX=/usr LIBDIR=/usr/lib64 CONFIG+=notests \
        \\n\\t qmake PREFIX=/usr MALIIT_DEFAULT_PLUGIN=libmykeyboard.so

    !build_pass:system(echo -e \"$$help_string\")
} else {
    config_string = Tip: Run qmake HELP=1 for a list of all supported build options

    !build_pass:system(echo -e \"$$config_string\")
}

CONFIG += ordered
TEMPLATE = subdirs

SUBDIRS = common

!disable-dbus {
    SUBDIRS += dbus_interfaces
}

SUBDIRS += connection src

!contains(QT_MAJOR_VERSION, 5) {
    # https://bugs.maliit.org/show_bug.cgi?id=47#c4
    SUBDIRS += maliit maliit-settings
}

!disable-dbus {
    SUBDIRS += passthroughserver connection-glib maliit-glib
    !nodoc {
        SUBDIRS += maliit-glib/maliit-glib-docs.pro
    }
    SUBDIRS += gtk-input-context
}

nogtk {
    SUBDIRS -= connection-glib maliit-glib gtk-input-context
}

!contains(QT_MAJOR_VERSION, 5) {
    # Qt 5 has a new platform input plugin system which already contains
    # support for Maliit.
    SUBDIRS += input-context
}

# Requires QtQuick1 add-on, which might not be present
# and we should use QML 2 on Qt 5 anyways
!noqml {
    SUBDIRS += maliit-plugins-quick
}

SUBDIRS += examples

!nodoc {
    SUBDIRS += doc
}

!notests {
    SUBDIRS += tests
}

!disable-dbus {
    !system(pkg-config --exists dbus-glib-1 dbus-1):error("Could not find dbus-glib-1 dbus-1")
}

QMAKE_EXTRA_TARGETS += check-xml
check-xml.target = check-xml
check-xml.CONFIG = recursive

QMAKE_EXTRA_TARGETS += check
check.target = check
check.CONFIG = recursive

DIST_NAME = $$MALIIT_PACKAGENAME-$$MALIIT_VERSION
DIST_PATH = $$OUT_PWD/$$DIST_NAME
TARBALL_SUFFIX = .tar.bz2
TARBALL_PATH = $$DIST_PATH$$TARBALL_SUFFIX

# The 'make dist' target
# Creates a tarball
QMAKE_EXTRA_TARGETS += dist
dist.target = dist
dist.commands += git archive HEAD --prefix=$$DIST_NAME/ | bzip2 > $$TARBALL_PATH;
dist.commands += md5sum $$TARBALL_PATH | cut -d \' \' -f 1 > $$DIST_PATH\\.md5

OTHER_FILES += NEWS README INSTALL.local