meson: Add glue libraries generation (#31)

This commit is contained in:
Thibault Saunier 2017-08-24 10:57:07 -03:00 committed by Mikkel Kruse Johnsen
parent 4f388c6ef7
commit 6d9c9fefae
5 changed files with 42 additions and 3 deletions

View file

@ -28,6 +28,16 @@ atk_sharp = library(assembly_name, source_gen, sources,
link_with: glib_sharp,
)
gluegen = custom_target('atkgluegen',
input: raw_api_fname,
output: 'generate.c',
command: [generate_api, '--fakeglue'],
depends: [source_gen])
library('atksharpglue-3', gluegen,
dependencies: [glib_dep, gio_dep, atk_dep],
install: true)
install_infos += [assembly_name, atk_sharp.full_path()]
atk_sharp_dep = declare_dependency(link_with: atk_sharp)

View file

@ -32,5 +32,15 @@ gio_sharp = library(assembly_name, source_gen, sources,
link_with: glib_sharp,
)
gluegen = custom_target('giogluegen',
input: raw_api_fname,
output: 'generate.c',
command: [generate_api, '--fakeglue'],
depends: [source_gen])
library('giosharpglue-3', gluegen,
dependencies: [glib_dep, gio_dep],
install: true)
install_infos += [assembly_name, gio_sharp.full_path()]
gio_sharp_dep = declare_dependency(link_with: gio_sharp)

View file

@ -1058,8 +1058,7 @@ generated_sources = [
'Gtk_MapEventHandler.cs',
]
source_gen = []
source_gen += [custom_target(assembly_name + 'codegen',
source_gen = custom_target(assembly_name + 'codegen',
input: raw_api_fname,
output: generated_sources,
command: [
@ -1083,7 +1082,7 @@ source_gen += [custom_target(assembly_name + 'codegen',
'--glue-libname', gluefile,
'--schema', schema,
],
depends: [gapi_codegen, gapi_fixup])]
depends: [gapi_codegen, gapi_fixup])
gtk_api_includes = join_paths(meson.current_build_dir(), 'gtk-api.xml')

View file

@ -136,5 +136,15 @@ gtk_sharp = library(assembly_name, source_gen, sources,
gdk_sharp],
)
gluegen = custom_target('gtkgluegen',
input: raw_api_fname,
output: 'generate.c',
command: [generate_api, '--fakeglue'],
depends: [source_gen])
library('gtksharpglue-3', gluegen,
dependencies: [glib_dep, gio_dep, atk_dep, gdk_dep, gtk_dep],
install: true)
install_infos += [assembly_name, gtk_sharp.full_path()]
gtk_sharp_dep = declare_dependency(link_with: gtk_sharp)

View file

@ -63,5 +63,15 @@ pango_sharp = library(assembly_name, source_gen, sources,
link_with: [glib_sharp, cairo_sharp]
)
gluegen = custom_target('pangogluegen',
input: raw_api_fname,
output: 'generate.c',
command: [generate_api, '--fakeglue'],
depends: [source_gen])
library('pangosharpglue-3', gluegen,
dependencies: [glib_dep, gio_dep, pango_dep],
install: true)
install_infos += [assembly_name, pango_sharp.full_path()]
pango_sharp_dep = declare_dependency(link_with: pango_sharp)