2017-08-24 19:49:02 +00:00
|
|
|
pkg = 'gio'
|
|
|
|
assembly_name = pkg + '-sharp'
|
2017-08-24 13:21:41 +00:00
|
|
|
|
2017-08-24 19:49:02 +00:00
|
|
|
raw_api_fname = join_paths(meson.current_source_dir(), pkg + '-api.raw')
|
2017-08-24 13:21:41 +00:00
|
|
|
metadata_fname = join_paths(meson.current_source_dir(), 'Gio.metadata')
|
|
|
|
|
|
|
|
configure_file(input: assembly_name + '.dll.config.in',
|
|
|
|
output: assembly_name + '.dll.config',
|
|
|
|
configuration : remap_dl_data)
|
|
|
|
|
2017-08-31 11:42:08 +00:00
|
|
|
if install
|
|
|
|
configure_file(input: assembly_name + '-3.0.pc.in',
|
|
|
|
output: assembly_name + '-3.0.pc',
|
|
|
|
configuration : version_data,
|
|
|
|
install_dir: pkg_install_dir)
|
|
|
|
endif
|
2017-08-24 13:21:41 +00:00
|
|
|
|
|
|
|
subdir('generated')
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
'Application.cs',
|
|
|
|
'AppInfoAdapter.cs',
|
|
|
|
'FileAdapter.cs',
|
|
|
|
'FileEnumerator.cs',
|
|
|
|
'FileFactory.cs',
|
|
|
|
'GioGlobal.cs',
|
|
|
|
'GioStream.cs',
|
|
|
|
'IFile.cs'
|
|
|
|
]
|
|
|
|
|
2017-09-20 15:15:34 +00:00
|
|
|
gio_sharp = library(assembly_name, source_gen, sources, assemblyinfo,
|
2017-09-25 14:44:14 +00:00
|
|
|
cs_args: ['-unsafe'],
|
2017-08-24 13:21:41 +00:00
|
|
|
link_with: glib_sharp,
|
2017-08-31 11:42:08 +00:00
|
|
|
install: install,
|
2017-08-24 19:49:02 +00:00
|
|
|
install_dir: lib_install_dir
|
2017-08-24 13:21:41 +00:00
|
|
|
)
|
|
|
|
|
2017-09-01 21:27:16 +00:00
|
|
|
nuget_infos += [['GioSharp', gio_sharp, ['GlibSharp']]]
|
2017-08-24 13:21:41 +00:00
|
|
|
install_infos += [assembly_name, gio_sharp.full_path()]
|
2017-08-25 13:11:37 +00:00
|
|
|
gio_sharp_dep = declare_dependency(link_with: [glib_sharp, gio_sharp])
|