1529
by Jon Nordby
Changes: Rename meego-keyboard-quick files to maliit-keyboard |
1 |
include(config.pri) |
2 |
||
3 |
!isEmpty(HELP) { |
|
4 |
# Output help |
|
5 |
help_string = \ |
|
6 |
Important build options: \ |
|
1740
by Maksim Kirillov
Changes: use qmake features for framework |
7 |
\\n\\t PREFIX: Install prefix for tools. Default: Maliit framework prefix \ |
1827
by Krzesimir Nowak
Allow disabling QtMobility. |
8 |
\\n\\t\\t Note that the plugins themselves are installed under Maliit framework prefix \ |
1653
by Jon Nordby
Make use of install prefix more consistent, and allow override |
9 |
\\n\\t LIBDIR: Library install directory. Default: $$PREFIX/lib \ |
1861
by Mattia Barbon
Add compile-time option to set default keyboard style. |
10 |
\\n\\t MALIIT_DEFAULT_PROFILE: Default keyboard style. Default: nokia-n9 \ |
2055
by Krzesimir Nowak
Fix truncated HELP output. |
11 |
\\n\\t HUNSPELL_DICT_PATH: Path to hunspell dictionaries. Default: $$PREFIX/share/hunspell \ |
1781
by Michael Hasselmann
New: Experimental word prediction |
12 |
\\nRecognised CONFIG flags: \ |
13 |
\\n\\t enable-presage: Use presage to calculate word candidates (maliit-keyboard-plugin only) \ |
|
1782
by Michael Hasselmann
New: Add wrapper for Hunspell |
14 |
\\n\\t enable-hunspell: Use hunspell for error correction (maliit-keyboard-plugin only) \ |
1868.1.17
by Michael Hasselmann
Disable word engine and preedit when using CONFIG+=disable-preedit |
15 |
\\n\\t disable-preedit: Always commit characters and never use preedit (maliit-keyboard-plugin only) \ |
1828
by Krzesimir Nowak
Make QtMobility an opt-in dependency, instead of opt-out. |
16 |
\\n\\t enable-qt-mobility: Enable use of QtMobility (enables sound and haptic feedback) \ |
1797
by Cedric Sodhi
Inform of notests CONFIG flag in qmake |
17 |
\\n\\t notests: Do not attempt to build tests \ |
2085.1.2
by Thomas Moenicke
* merging |
18 |
\\n\\t nodoc: Do not build documentation \ |
19 |
\\n\\t disable-maliit-keyboard: Don't build the C++ reference keyboard (Maliit Keyboard) \ |
|
20 |
\\n\\t disable-nemo-keyboard: Don't build the QML reference keyboard (Nemo Keyboard) \ |
|
1529
by Jon Nordby
Changes: Rename meego-keyboard-quick files to maliit-keyboard |
21 |
\\nInfluential environment variables: \ |
1740
by Maksim Kirillov
Changes: use qmake features for framework |
22 |
\\n\\t QMAKEFEATURES A mkspecs/features directory list to look for features. \ |
1827
by Krzesimir Nowak
Allow disabling QtMobility. |
23 |
\\n\\t\\t Use it if a dependency is installed to non-default location. \ |
24 |
\\n\\t\\t Note that it must also be passed to qmake calls in subdirectories. \ |
|
1529
by Jon Nordby
Changes: Rename meego-keyboard-quick files to maliit-keyboard |
25 |
\\nExamples: \ |
26 |
\\n\\t qmake \ |
|
1740
by Maksim Kirillov
Changes: use qmake features for framework |
27 |
\\n\\t qmake PREFIX=/usr LIBDIR=/usr/lib64 \ |
1529
by Jon Nordby
Changes: Rename meego-keyboard-quick files to maliit-keyboard |
28 |
|
1652
by Krzesimir Nowak
Fixes: qmake HELP=1 output is not legible. |
29 |
!build_pass:system(echo -e \"$$help_string\") |
1529
by Jon Nordby
Changes: Rename meego-keyboard-quick files to maliit-keyboard |
30 |
} else { |
31 |
config_string = Tip: Run qmake HELP=1 for a list of all supported build options |
|
32 |
||
1652
by Krzesimir Nowak
Fixes: qmake HELP=1 output is not legible. |
33 |
!build_pass:system(echo -e \"$$config_string\") |
1529
by Jon Nordby
Changes: Rename meego-keyboard-quick files to maliit-keyboard |
34 |
}
|
35 |
||
2060
by Krzesimir Nowak
Add coverage reports. |
36 |
CONFIG += ordered |
1529
by Jon Nordby
Changes: Rename meego-keyboard-quick files to maliit-keyboard |
37 |
TEMPLATE = subdirs |
38 |
||
2085.1.2
by Thomas Moenicke
* merging |
39 |
!disable-nemo-keyboard:SUBDIRS += nemo-keyboard |
40 |
!disable-maliit-keyboard:SUBDIRS += maliit-keyboard |
|
1858
by Jan Arne Petersen
Add doxygen support for building documentation |
41 |
!nodoc:SUBDIRS += doc |
42 |
||
1532
by Jon Nordby
New: 'make dist' target for creating tarballs |
43 |
DIST_NAME = $$MALIIT_PACKAGENAME-$$MALIIT_VERSION |
44 |
DIST_PATH = $$OUT_PWD/$$DIST_NAME |
|
45 |
TARBALL_SUFFIX = .tar.bz2 |
|
46 |
TARBALL_PATH = $$DIST_PATH$$TARBALL_SUFFIX |
|
47 |
||
48 |
# The 'make dist' target |
|
49 |
# Creates a tarball |
|
50 |
QMAKE_EXTRA_TARGETS += dist |
|
51 |
dist.target = dist |
|
1650
by Jon Nordby
Changes: Also generate .md5 file for tarball on make dist |
52 |
dist.commands += git archive HEAD --prefix=$$DIST_NAME/ | bzip2 > $$TARBALL_PATH; |
53 |
dist.commands += md5sum $$TARBALL_PATH | cut -d \' \' -f 1 > $$DIST_PATH\\.md5 |
|
2060
by Krzesimir Nowak
Add coverage reports. |
54 |
|
55 |
# The 'make coverage' target |
|
56 |
# Builds plugins with coverage libs in separate directory. |
|
2063
by Krzesimir Nowak
Don't use -Werror for coverage build. |
57 |
COVERAGE_CONFIG_STRING = CONFIG+=debug CONFIG+=nodoc CONFIG+=no-werror |
2060
by Krzesimir Nowak
Add coverage reports. |
58 |
|
59 |
enable-presage { |
|
60 |
COVERAGE_CONFIG_STRING += CONFIG+=enable-presage |
|
61 |
}
|
|
62 |
||
63 |
enable-hunspell { |
|
64 |
COVERAGE_CONFIG_STRING += CONFIG+=enable-hunspell |
|
65 |
}
|
|
66 |
||
67 |
disable-preedit { |
|
68 |
COVERAGE_CONFIG_STRING += CONFIG+=disable-preedit |
|
69 |
}
|
|
70 |
||
71 |
enable-qt-mobility { |
|
72 |
COVERAGE_CONFIG_STRING += CONFIG+=enable-qt-mobility |
|
73 |
}
|
|
74 |
||
75 |
COVERAGE_DIR = coverage-build |
|
76 |
||
77 |
QMAKE_EXTRA_TARGETS += coverage |
|
78 |
coverage.target = coverage |
|
79 |
||
80 |
coverage.commands += $(MKDIR) $$COVERAGE_DIR && |
|
81 |
coverage.commands += cd $$COVERAGE_DIR && |
|
2094.1.1
by Thomas Moenicke
Qt5-final |
82 |
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-plugins.pro.coverage && |
2060
by Krzesimir Nowak
Add coverage reports. |
83 |
coverage.commands += make $(MAKEFLAGS) coverage |
84 |
||
85 |
coverage.clean_commands = rm -rf $$COVERAGE_DIR |