build: use template files for enum types' sources generation

Source files for enum types are generated by passing segments of the
source code of the files to the `glib-mkenums` command.

This patch removes those parameters where source code is used from
meson build files by moving those segmeents to template files.

https://mail.gnome.org/archives/networkmanager-list/2017-December/msg00057.html
This commit is contained in:
Iñigo Martínez
2017-12-16 14:59:37 +01:00
committed by Thomas Haller
parent a58cde8d2c
commit 0735b35dd0
31 changed files with 551 additions and 140 deletions

View File

@@ -1,7 +1,7 @@
examples = [
['add-connection-gdbus', [uuid_dep], [libnm_core_enums_h, libnm_enums_h]],
['add-connection-gdbus', [uuid_dep], [libnm_core_enum[1], libnm_enum[1]]],
['add-connection-libnm', [libnm_dep], []],
['get-active-connections-gdbus', [], [libnm_core_enums_h, libnm_enums_h]],
['get-active-connections-gdbus', [], [libnm_core_enum[1], libnm_enum[1]]],
['get-ap-info-libnm', [libnm_dep], []],
['list-connections-gdbus', [], []],
['list-connections-libnm', [libnm_dep], []],