geary/desktop/meson.build
Niels De Graef 01c13f726f 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
2017-12-12 00:27:46 +01:00

42 lines
1.1 KiB
Meson

foreach desktop_file: [ 'org.gnome.Geary.desktop', 'geary-autostart.desktop' ]
i18n.merge_file(
input: desktop_file + '.in',
output: desktop_file,
type: 'desktop',
po_dir: po_dir,
install: true,
install_dir: join_paths(datadir, 'applications')
)
endforeach
# The appdata file
i18n.merge_file(
input: 'org.gnome.Geary.appdata.xml.in',
output: 'org.gnome.Geary.appdata.xml',
type: 'xml',
po_dir: po_dir,
install: true,
install_dir: join_paths(datadir, 'metainfo')
)
# Contractor file (Elementary OS)
if install_contractor_file
i18n.merge_file(
input: 'geary-attach.contract.desktop.in',
output: 'geary-attach.contract',
type: 'desktop',
po_dir: po_dir,
install: true,
install_dir: join_paths(datadir, 'contractor')
)
install_data('geary-attach',
install_dir: bindir,
)
endif
# GSettings schemas
geary_compiled_schema = gnome.compile_schemas() # Always compile, even if necessary. Makes sure it's valid.
install_data('org.gnome.Geary.gschema.xml',
install_dir: join_paths(datadir, 'glib-2.0', 'schemas'),
)