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 = 'pango'
|
|
|
|
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(), 'Pango.metadata')
|
|
|
|
|
|
|
|
configure_file(input: assembly_name + '.dll.config.in',
|
|
|
|
output: assembly_name + '.dll.config',
|
|
|
|
configuration : remap_dl_data)
|
|
|
|
|
|
|
|
subdir('generated')
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
'Analysis.cs',
|
|
|
|
'AttrBackground.cs',
|
|
|
|
'AttrColor.cs',
|
|
|
|
'AttrFallback.cs',
|
|
|
|
'AttrFamily.cs',
|
|
|
|
'AttrFloat.cs',
|
|
|
|
'AttrFontDesc.cs',
|
|
|
|
'AttrForeground.cs',
|
|
|
|
'AttrGravity.cs',
|
|
|
|
'AttrGravityHint.cs',
|
|
|
|
'Attribute.cs',
|
|
|
|
'AttrInt.cs',
|
|
|
|
'AttrIterator.cs',
|
|
|
|
'AttrLanguage.cs',
|
|
|
|
'AttrLetterSpacing.cs',
|
|
|
|
'AttrList.cs',
|
|
|
|
'AttrRise.cs',
|
|
|
|
'AttrScale.cs',
|
|
|
|
'AttrShape.cs',
|
|
|
|
'AttrSize.cs',
|
|
|
|
'AttrStretch.cs',
|
|
|
|
'AttrStrikethrough.cs',
|
|
|
|
'AttrStrikethroughColor.cs',
|
|
|
|
'AttrStyle.cs',
|
|
|
|
'AttrUnderline.cs',
|
|
|
|
'AttrUnderlineColor.cs',
|
|
|
|
'AttrVariant.cs',
|
|
|
|
'AttrWeight.cs',
|
|
|
|
'Context.cs',
|
|
|
|
'Coverage.cs',
|
|
|
|
'FontFamily.cs',
|
|
|
|
'FontMap.cs',
|
|
|
|
'Global.cs',
|
|
|
|
'GlyphItem.cs',
|
|
|
|
'GlyphString.cs',
|
|
|
|
'Item.cs',
|
|
|
|
'Layout.cs',
|
|
|
|
'LayoutLine.cs',
|
|
|
|
'LayoutRun.cs',
|
|
|
|
'Matrix.cs',
|
|
|
|
'Scale.cs',
|
|
|
|
'ScriptIter.cs',
|
|
|
|
'TabArray.cs',
|
|
|
|
'Units.cs',
|
|
|
|
]
|
|
|
|
|
2017-08-25 15:11:37 +02:00
|
|
|
deps = [glib_sharp, cairo_sharp]
|
2017-08-24 15:21:41 +02:00
|
|
|
pango_sharp = library(assembly_name, source_gen, sources,
|
|
|
|
cs_args: ['-unsafe', '-keyfile:' + snk],
|
2017-08-25 15:11:37 +02:00
|
|
|
link_with: deps,
|
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 += [['PangoSharp', pango_sharp, ['GlibSharp', 'GioSharp']]]
|
2017-08-24 15:21:41 +02:00
|
|
|
install_infos += [assembly_name, pango_sharp.full_path()]
|
2017-08-25 15:11:37 +02:00
|
|
|
pango_sharp_dep = declare_dependency(link_with: deps + [pango_sharp])
|