Some remarks: * Note that Meson adds a hard dependency on Python 3. * All dependencies and defines are now listed together. * Some build files were put in their respective subdirectories, e.g. the Geary engine library will be built from the Meson file in `src/engine`. * `--fatal-warnings` is no longer an explicit flag, as Meson provides `-Dwerror=true` for this. * An explicit resource file needs to be used. The issue to support this from Meson itself can be found at https://github.com/mesonbuild/meson/issues/706 . * The `gnome.yelp()` function parses a LINGUAS file so we no longer need to keep track of all languages in our build system. * There are no Debian scripts defined in the meson.build files to keep them clean, but they can be kept as separate scripts in `build-aux`. * Left out the `dist` target as there is now `ninja dist` * `geary-docs` is disabled by default, as valadoc-0.38.3 returns errors. https://bugzilla.gnome.org/show_bug.cgi?id=777044
48 lines
1 KiB
Meson
48 lines
1 KiB
Meson
sqlite3_unicodesn_sources = [
|
|
'fts3_unicode2.c',
|
|
'fts3_unicodesn.c',
|
|
'static.c',
|
|
|
|
join_paths('libstemmer_c', 'runtime', 'api_sq3.c'),
|
|
join_paths('libstemmer_c', 'runtime', 'utilities_sq3.c'),
|
|
]
|
|
|
|
sqlite3_unicodesn_c_flags = [
|
|
'-DSQLITE_ENABLE_FTS4',
|
|
'-DSQLITE_ENABLE_FTS4_UNICODE61',
|
|
]
|
|
|
|
sqlite3_unicodesn_stemmers = [
|
|
'danish',
|
|
'dutch',
|
|
'english',
|
|
'finnish',
|
|
'french',
|
|
'german',
|
|
'hungarian',
|
|
'italian',
|
|
'norwegian',
|
|
'portuguese',
|
|
'romanian',
|
|
'russian',
|
|
'spanish',
|
|
'swedish',
|
|
'turkish',
|
|
]
|
|
|
|
foreach stemmer: sqlite3_unicodesn_stemmers
|
|
sqlite3_unicodesn_sources += 'libstemmer_c/src_c/stem_UTF_8_@0@.c'.format(stemmer)
|
|
sqlite3_unicodesn_c_flags += '-DWITH_STEMMER_@0@'.format(stemmer)
|
|
endforeach
|
|
|
|
sqlite3_unicodesn_includes = [
|
|
include_directories('libstemmer_c/runtime'),
|
|
include_directories('libstemmer_c/src_c'),
|
|
]
|
|
|
|
sqlite3_unicodesn_lib = library('sqlite3-unicodesn',
|
|
sqlite3_unicodesn_sources,
|
|
dependencies: sqlite,
|
|
c_args: sqlite3_unicodesn_c_flags,
|
|
include_directories: sqlite3_unicodesn_includes,
|
|
)
|