Page MenuHomePhabricator

meson: support signing and installing
Needs ReviewPublic

Authored by bu5hm4n on Tue, Jan 8, 7:27 AM.

Details

Summary

when a .dll file is signed, it can be installed using gac which means no
MONOPATH is not needed anymore. And the efl_mono library can be used by
a c# IDE like monodevelop.

Note: after the keyoption is used, the .dll will *not* be installed in
the normal /usr/share/lib directory.

In order to create a key you should be using the cli tool 'sn', further
instructions can be found at: https://www.mono-project.com/docs/advanced/assemblies-and-the-gac/

The resulting workflow for getting a signed dll installed in the gac is:

sn -k efl-key.key

meson [...] -Defl-sharp-key-file=./efl-key.key
ninja all
ninja install

in the c# application:

mcs [...] `pkgconfig --libs efl_mono`

./Application.exe

Diff Detail

Repository
rEFL core/efl
Branch
devs/bu5hm4n/c-sharp-on-system
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 8749
bu5hm4n created this revision.Tue, Jan 8, 7:27 AM

It seems that this patch has no reviewers specified. If you are unsure who can review your patch, please check this wiki page and see if anyone can be added: https://phab.enlightenment.org/w/maintainers_reviewers/

bu5hm4n requested review of this revision.Tue, Jan 8, 7:27 AM
segfaultxavi added a comment.EditedTue, Jan 8, 9:22 AM

It would be nice to provide some usage instructions in the task.
I understand this patch adds a meson option, which points to a file, but I do not know what file should I use.
Also, once installed in the GAC, how do I use the dll? No more pkg-config I guess?

Also, calling a dll a he is extremely sexist and offends me.

bu5hm4n updated this revision to Diff 18333.Thu, Jan 10, 8:38 AM
bu5hm4n edited the summary of this revision. (Show Details)

update to review comments