Split meson up to be more modular

This also explicitly constructs reusable library components to make it
easier to extend the project over time. Notably we make less assumptions
about the host system and use pkgconfig where appropriate to give us
system details, such as the systemd system unit directory for packaging.
This can be overriden with the meson option.

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
Ikey Doherty
2018-01-15 12:11:46 +00:00
committed by Marc Di Luzio
parent 2bbaab129b
commit 1328e07f86
8 changed files with 145 additions and 49 deletions

11
example/meson.build Normal file
View File

@ -0,0 +1,11 @@
# An example game
executable(
'example',
sources: [
'main.c',
],
include_directories: libgamemode_includes,
dependencies: [
libdl,
],
)