2017-08-24 15:21:41 +02:00
|
|
|
snk = join_paths(meson.current_source_dir(), '..', 'gtk-sharp.snk')
|
2017-08-24 21:49:02 +02:00
|
|
|
pkg = 'atk'
|
2017-08-24 15:21:41 +02:00
|
|
|
|
2017-08-24 21:49:02 +02:00
|
|
|
assembly_name = pkg + '-sharp'
|
|
|
|
raw_api_fname = join_paths(meson.current_source_dir(), pkg + '-api.raw')
|
2017-08-24 15:21:41 +02:00
|
|
|
metadata_fname = join_paths(meson.current_source_dir(), 'Atk.metadata')
|
|
|
|
|
|
|
|
configure_file(input: assembly_name + '.dll.config.in',
|
|
|
|
output: assembly_name + '.dll.config',
|
|
|
|
configuration : remap_dl_data)
|
|
|
|
|
|
|
|
subdir('generated')
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
'Global.cs',
|
|
|
|
'Hyperlink.cs',
|
|
|
|
'Misc.cs',
|
|
|
|
'Object.cs',
|
|
|
|
'SelectionAdapter.cs',
|
|
|
|
'TextAdapter.cs',
|
|
|
|
'TextChangedDetail.cs',
|
|
|
|
'Util.cs',
|
|
|
|
]
|
|
|
|
|
|
|
|
atk_sharp = library(assembly_name, source_gen, sources,
|
|
|
|
cs_args: ['-unsafe', '-keyfile:' + snk],
|
|
|
|
link_with: glib_sharp,
|
2017-08-31 13:42:08 +02:00
|
|
|
install: install,
|
2017-08-24 21:49:02 +02:00
|
|
|
install_dir: lib_install_dir
|
2017-08-24 15:21:41 +02:00
|
|
|
)
|
|
|
|
|
2017-09-01 23:27:16 +02:00
|
|
|
nuget_infos += [['AtkSharp', atk_sharp, ['GlibSharp', 'GioSharp']]]
|
2017-08-24 15:21:41 +02:00
|
|
|
install_infos += [assembly_name, atk_sharp.full_path()]
|
2017-08-25 15:11:37 +02:00
|
|
|
atk_sharp_dep = declare_dependency(link_with: [glib_sharp, atk_sharp])
|