Build the assembly data file as required

This commit is contained in:
Thibault Saunier 2017-09-20 12:15:34 -03:00
parent 9de231db82
commit bc08418eb5
8 changed files with 9 additions and 9 deletions

View file

@ -22,7 +22,7 @@ sources = [
'Util.cs', 'Util.cs',
] ]
atk_sharp = library(assembly_name, source_gen, sources, atk_sharp = library(assembly_name, source_gen, sources, assemblyinfo,
cs_args: ['-unsafe', '-keyfile:' + snk], cs_args: ['-unsafe', '-keyfile:' + snk],
link_with: glib_sharp, link_with: glib_sharp,
install: install, install: install,

View file

@ -61,7 +61,7 @@ sources = [
'XlibSurface.cs', 'XlibSurface.cs',
] ]
cairo_sharp = library(assembly_name, sources, cairo_sharp = library(assembly_name, sources, assemblyinfo,
cs_args: ['-keyfile:' + snk], cs_args: ['-keyfile:' + snk],
install: install, install: install,
install_dir: lib_install_dir install_dir: lib_install_dir

View file

@ -64,7 +64,7 @@ sources = [
] ]
deps = [glib_sharp, pango_sharp, cairo_sharp, gio_sharp] deps = [glib_sharp, pango_sharp, cairo_sharp, gio_sharp]
gdk_sharp = library(assembly_name, source_gen, sources, gdk_sharp = library(assembly_name, source_gen, sources, assemblyinfo,
cs_args: ['-unsafe', '-keyfile:' + snk], cs_args: ['-unsafe', '-keyfile:' + snk],
link_with: deps, link_with: deps,
install: install, install: install,

View file

@ -29,7 +29,7 @@ sources = [
'IFile.cs' 'IFile.cs'
] ]
gio_sharp = library(assembly_name, source_gen, sources, gio_sharp = library(assembly_name, source_gen, sources, assemblyinfo,
cs_args: ['-unsafe', '-keyfile:' + snk], cs_args: ['-unsafe', '-keyfile:' + snk],
link_with: glib_sharp, link_with: glib_sharp,
install: install, install: install,

View file

@ -92,7 +92,7 @@ sources = [
'VariantType.cs' ] 'VariantType.cs' ]
glib_sharp = library(assembly_name, sources, glib_sharp = library(assembly_name, sources, assemblyinfo,
cs_args: ['-unsafe', '-keyfile:' + snk], cs_args: ['-unsafe', '-keyfile:' + snk],
install: install, install: install,
install_dir: lib_install_dir install_dir: lib_install_dir

View file

@ -134,7 +134,7 @@ sources = [
] ]
deps = [glib_sharp, pango_sharp, cairo_sharp, gio_sharp, atk_sharp, gdk_sharp] deps = [glib_sharp, pango_sharp, cairo_sharp, gio_sharp, atk_sharp, gdk_sharp]
gtk_sharp = library(assembly_name, source_gen, sources, gtk_sharp = library(assembly_name, source_gen, sources, assemblyinfo,
cs_args: ['-unsafe', '-keyfile:' + snk, '-nowarn:0618,0612,0169'], cs_args: ['-unsafe', '-keyfile:' + snk, '-nowarn:0618,0612,0169'],
link_with: deps, link_with: deps,
install: install, install: install,

View file

@ -46,8 +46,8 @@ gio_dep = dependency('gio-2.0', version: glib_required_version,
prefix = get_option('prefix') prefix = get_option('prefix')
assembly_data = configuration_data() assembly_data = configuration_data()
assembly_data.set_quoted('API_VERSION', apiversion) assembly_data.set('API_VERSION', apiversion)
configure_file(input: 'AssemblyInfo.cs.in', output: 'AssemblyInfo.cs', configuration : assembly_data) assemblyinfo = configure_file(input: 'AssemblyInfo.cs.in', output: 'AssemblyInfo.cs', configuration : assembly_data)
policy_config = files('policy.config.in') policy_config = files('policy.config.in')
if host_machine.system() == 'osx' if host_machine.system() == 'osx'

View file

@ -58,7 +58,7 @@ sources = [
] ]
deps = [glib_sharp, cairo_sharp] deps = [glib_sharp, cairo_sharp]
pango_sharp = library(assembly_name, source_gen, sources, pango_sharp = library(assembly_name, source_gen, sources, assemblyinfo,
cs_args: ['-unsafe', '-keyfile:' + snk], cs_args: ['-unsafe', '-keyfile:' + snk],
link_with: deps, link_with: deps,
install: install, install: install,