summaryrefslogtreecommitdiff
path: root/src/bindings/mono/meson.build
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-03-15 10:35:10 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-03-15 10:44:06 +0100
commit9c99397cda5f3424a57bebcf03a12eaf4f6b6613 (patch)
tree781872c18b5daec16dbf514f0785159ebbbb1cb5 /src/bindings/mono/meson.build
parent7dc546bdedeb82db8d3e2524d28fb0f962005351 (diff)
meson: Enable generation of C# docs.
Summary: In order to correctly install the xml file alongside the dll, a install script is used to work around meson's limitation of tracking files generated by library() other than the dll. Fixes T7722 Reviewers: segfaultxavi, bu5hm4n Reviewed By: segfaultxavi, bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7722 Differential Revision: https://phab.enlightenment.org/D8331
Diffstat (limited to 'src/bindings/mono/meson.build')
-rw-r--r--src/bindings/mono/meson.build11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/bindings/mono/meson.build b/src/bindings/mono/meson.build
index 13fe4ca..3d844e7 100644
--- a/src/bindings/mono/meson.build
+++ b/src/bindings/mono/meson.build
@@ -156,13 +156,20 @@ if get_option('mono-beta')
156 extra_cs_args += '-d:EFL_BETA' 156 extra_cs_args += '-d:EFL_BETA'
157endif 157endif
158 158
159efl_mono_install_dir = join_paths(dir_lib, 'efl-mono-'+version_major)
160efl_mono_xml_doc = join_paths(meson.current_build_dir(), 'efl_mono.xml')
161
159efl_mono = library('efl_mono', 162efl_mono = library('efl_mono',
160 mono_generator_target + mono_files + [efl_src], 163 mono_generator_target + mono_files + [efl_src],
161 install : true, 164 install : true,
162 install_dir : join_paths(dir_lib, 'efl-mono-'+version_major), 165 install_dir : efl_mono_install_dir,
163 cs_args : extra_cs_args 166 cs_args : extra_cs_args + ['-doc:' + efl_mono_xml_doc]
164) 167)
165 168
169meson.add_install_script(join_paths(meson.source_root(), 'meson', 'meson_csharp_docs.sh'),
170 efl_mono_xml_doc,
171 efl_mono_install_dir)
172
166efl_mono_test_suite_path=join_paths(meson.current_build_dir()) 173efl_mono_test_suite_path=join_paths(meson.current_build_dir())
167 174
168pkgconfig.generate( 175pkgconfig.generate(