Port build system to Meson. Bug 777044.

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
This commit is contained in:
Niels De Graef 2017-12-09 00:45:29 +01:00
parent b627fd4fc6
commit 01c13f726f
19 changed files with 1137 additions and 0 deletions

31
sql/meson.build Normal file
View file

@ -0,0 +1,31 @@
sql_files = [
'version-001.sql',
'version-002.sql',
'version-003.sql',
'version-004.sql',
'version-005.sql',
'version-006.sql',
'version-007.sql',
'version-008.sql',
'version-009.sql',
'version-010.sql',
'version-011.sql',
'version-012.sql',
'version-013.sql',
'version-014.sql',
'version-015.sql',
'version-016.sql',
'version-017.sql',
'version-018.sql',
'version-019.sql',
'version-020.sql',
'version-021.sql',
'version-022.sql',
'version-023.sql',
'version-024.sql',
'version-025.sql',
]
install_data(sql_files,
install_dir: join_paths(datadir, meson.project_name(), 'sql')
)