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. \
26
\\n\\t qmake PREFIX=/usr LIBDIR=/usr/lib64 \
28
!build_pass:system(echo -e \"$$help_string\")
30
config_string = Tip: Run qmake HELP=1 for a list of all supported build options
32
!build_pass:system(echo -e \"$$config_string\")
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
43
QMAKE_EXTRA_TARGETS += 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
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
53
COVERAGE_CONFIG_STRING += CONFIG+=enable-presage
57
COVERAGE_CONFIG_STRING += CONFIG+=enable-hunspell
61
COVERAGE_CONFIG_STRING += CONFIG+=disable-preedit
65
COVERAGE_CONFIG_STRING += CONFIG+=enable-pinyin
69
COVERAGE_CONFIG_STRING += CONFIG+=enable-qt-mobility
77
QMAKE_EXTRA_TARGETS += check
79
check.CONFIG = recursive
81
COVERAGE_DIR = coverage-build
83
QMAKE_EXTRA_TARGETS += coverage
84
coverage.target = coverage
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
91
coverage.clean_commands = rm -rf $$COVERAGE_DIR