diff options
author | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-11-05 17:59:01 -0300 |
---|---|---|
committer | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-11-06 11:20:19 -0300 |
commit | 17a81bee4a53891e44a165a14ca20027f9aa0824 (patch) | |
tree | 744dcdbea803e8eaaac8af6a55c35b2d7fcaab7c /meson_options.txt | |
parent | 8a5976666b1566f0025f9aff394002b766069beb (diff) | |
download | efl-17a81bee4a53891e44a165a14ca20027f9aa0824.tar.gz |
csharp: Revamp dotnet support
Summary:
Instead of building with a patched meson version, make use of custom
targets and generated csproj files so we can used upstream meson
normally.
This avoids digging into "non official" dotnet stuff like calling
the CSC.dll directly that the patched meson tried to do.
To enable, run meson with `-Ddotnet=true`.
Regarding source file dependencies, Meson has a limitation[1]
about generated artifacts being placed in subdirectories.
In order to correctly track these generated artifacts for dotnet, we
generated them in the same folder as the csproj file through
`dotnet build -o`.
Instead of installing the dll like we do for mono, a nupkg is generated
and installed in the same folder as the dll would be
(<prefix>/lib/x86_64-linux-gnu/efl-mono-1)
To avoid messing around with Nupkg caches, we reference the source
project for the library directly instead of the nupkg when building the
test suite.
[1] https://github.com/mesonbuild/meson/issues/2320
Fixes T8168
Reviewers: bu5hm4n, woohyun, Jaehyun_Cho
Reviewed By: Jaehyun_Cho
Subscribers: cedric, brunobelo, felipealmeida, segfaultxavi
Tags: #efl, #do_not_merge
Maniphest Tasks: T8168
Differential Revision: https://phab.enlightenment.org/D9717
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index 66ef0257f4..42a7397ac4 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -323,6 +323,12 @@ option('mono-examples-dir', description: 'Where eolian_mono will search for examples to embed into the documentation' ) +option('dotnet', + type: 'boolean', + value: false, + description: 'Enable building C# bindings with dotnet instead of mono' +) + option('lua-interpreter', type: 'combo', choices: ['luajit', 'lua'], |