~michael-sheldon/ubuntu-keyboard/fix-oxide-dismiss-test

« back to all changes in this revision

Viewing changes to ubuntu-keyboard.pro

  • Committer: Thomas Moenicke
  • Date: 2013-07-19 12:05:07 UTC
  • Revision ID: thomas.moenicke@canonical.com-20130719120507-lzw5oq50xm567x0j
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include(config.pri)
 
2
 
 
3
!isEmpty(HELP) {
 
4
    # Output help
 
5
    help_string = \
 
6
        Important build options: \
 
7
        \\n\\t PREFIX: Install prefix for tools. Default: Maliit framework prefix \
 
8
        \\n\\t\\t Note that the plugins themselves are installed under Maliit framework prefix \
 
9
        \\n\\t LIBDIR: Library install directory. Default: $$PREFIX/lib \
 
10
        \\n\\t MALIIT_DEFAULT_PROFILE: Default keyboard style. Default: nokia-n9 \
 
11
        \\n\\t HUNSPELL_DICT_PATH: Path to hunspell dictionaries. Default: $$PREFIX/share/hunspell \
 
12
        \\nRecognised CONFIG flags: \
 
13
        \\n\\t enable-presage: Use presage to calculate word candidates \
 
14
        \\n\\t enable-hunspell: Use hunspell for error correction \
 
15
        \\n\\t disable-preedit: Always commit characters and never use preedit \
 
16
        \\n\\t enable-pinyin: Use libpinyin as chinese input method \
 
17
        \\n\\t enable-qt-mobility: Enable use of QtMobility (enables sound and haptic feedback) \
 
18
        \\n\\t notests: Do not attempt to build tests \
 
19
        \\n\\t nodoc: Do not build documentation \
 
20
        \\nInfluential environment variables: \
 
21
        \\n\\t QMAKEFEATURES A mkspecs/features directory list to look for features. \
 
22
        \\n\\t\\t Use it if a dependency is installed to non-default location. \
 
23
        \\n\\t\\t Note that it must also be passed to qmake calls in subdirectories. \
 
24
        \\nExamples: \
 
25
        \\n\\t qmake \
 
26
        \\n\\t qmake PREFIX=/usr LIBDIR=/usr/lib64 \
 
27
 
 
28
    !build_pass:system(echo -e \"$$help_string\")
 
29
} else {
 
30
    config_string = Tip: Run qmake HELP=1 for a list of all supported build options
 
31
 
 
32
    !build_pass:system(echo -e \"$$config_string\")
 
33
}
 
34
 
 
35
CONFIG += ordered 
 
36
TEMPLATE = subdirs
 
37
 
 
38
DIST_NAME = $$MALIIT_PACKAGENAME-$$MALIIT_VERSION
 
39
DIST_PATH = $$OUT_PWD/$$DIST_NAME
 
40
TARBALL_SUFFIX = .tar.bz2
 
41
TARBALL_PATH = $$DIST_PATH$$TARBALL_SUFFIX
 
42
 
 
43
QMAKE_EXTRA_TARGETS += dist
 
44
dist.target = dist
 
45
dist.commands += git archive HEAD --prefix=$$DIST_NAME/ | bzip2 > $$TARBALL_PATH;
 
46
dist.commands += md5sum $$TARBALL_PATH | cut -d \' \' -f 1 > $$DIST_PATH\\.md5
 
47
 
 
48
# The 'make coverage' target
 
49
# Builds plugins with coverage libs in separate directory.
 
50
COVERAGE_CONFIG_STRING = CONFIG+=debug CONFIG+=nodoc CONFIG+=no-werror
 
51
 
 
52
enable-presage {
 
53
    COVERAGE_CONFIG_STRING += CONFIG+=enable-presage
 
54
}
 
55
 
 
56
enable-hunspell {
 
57
    COVERAGE_CONFIG_STRING += CONFIG+=enable-hunspell
 
58
}
 
59
 
 
60
disable-preedit {
 
61
    COVERAGE_CONFIG_STRING += CONFIG+=disable-preedit
 
62
}
 
63
 
 
64
enable-pinyin {
 
65
    COVERAGE_CONFIG_STRING += CONFIG+=enable-pinyin
 
66
}
 
67
 
 
68
enable-qt-mobility {
 
69
    COVERAGE_CONFIG_STRING += CONFIG+=enable-qt-mobility
 
70
}
 
71
 
 
72
 
 
73
!notests {
 
74
    SUBDIRS += tests
 
75
}
 
76
 
 
77
QMAKE_EXTRA_TARGETS += check
 
78
check.target = check
 
79
check.CONFIG = recursive
 
80
 
 
81
COVERAGE_DIR = coverage-build
 
82
 
 
83
QMAKE_EXTRA_TARGETS += coverage
 
84
coverage.target = coverage
 
85
 
 
86
coverage.commands += $(MKDIR) $$COVERAGE_DIR &&
 
87
coverage.commands += cd $$COVERAGE_DIR &&
 
88
coverage.commands += $(QMAKE) -r PREFIX=\"$$PREFIX\" LIBDIR=\"$$LIBDIR\" MALIIT_DEFAULT_PROFILE=\"$$MALIIT_DEFAULT_PROFILE\" HUNSPELL_DICT_PATH=\"$$HUNSPELL_DICT_PATH\" $$COVERAGE_CONFIG_STRING LIBS+=\"$$LIBS\" INCLUDEPATH+=\"$$INCLUDEPATH\" LIBS+=-lgcov QMAKE_CXXFLAGS_DEBUG+=\"-fprofile-arcs -ftest-coverage\" QMAKE_LFLAGS_DEBUG+=\"-fprofile-arcs -ftest-coverage\" $$PWD/maliit-plugin-ubuntu.pro.coverage &&
 
89
coverage.commands += make $(MAKEFLAGS) coverage
 
90
 
 
91
coverage.clean_commands = rm -rf $$COVERAGE_DIR
 
92
 
 
93
 
 
94
SUBDIRS = \
 
95
    src \
 
96
    data \
 
97
    qml \
 
98
    benchmark \