summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-08-06 01:44:53 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-08-06 01:44:53 -0300
commit84c1e335868134e5db09a2c680eb164d9921532d (patch)
tree0b79cc61a818583364ab80f995987e91bd98700b
parentc1b76d3008ecb7c558ad4ad8de02f1e03ffddf68 (diff)
csharp: Add a target to generate NuGet package.devs/lauromoura/nuget
This commit adds the option to run `ninja nuget_pack` to create a NuGet package containing both the EFL# dll and xml doc file. It may help referencing EFL# in IDE's, dotnet projects, etc.
-rw-r--r--src/bindings/mono/efl_mono.dll.nuspec.in19
-rw-r--r--src/bindings/mono/meson.build13
2 files changed, 32 insertions, 0 deletions
diff --git a/src/bindings/mono/efl_mono.dll.nuspec.in b/src/bindings/mono/efl_mono.dll.nuspec.in
new file mode 100644
index 0000000000..fe80eadd28
--- /dev/null
+++ b/src/bindings/mono/efl_mono.dll.nuspec.in
@@ -0,0 +1,19 @@
1<?xml version="1.0"?>
2<package >
3 <metadata>
4 <id>Efl.CSharp</id>
5 <version>@EFL_VERSION@</version>
6 <authors>EFL Team</authors>
7 <owners>EFL Team</owners>
8 <license type="expression">Apache-2.0</license>
9 <projectUrl>http://www.enlightenment.org</projectUrl>
10 <requireLicenseAcceptance>false</requireLicenseAcceptance>
11 <description>EFL C# Bindings</description>
12 <copyright>Copyright 2019</copyright>
13 <tags>EFL</tags>
14 </metadata>
15 <files>
16 <file src="efl_mono.dll" target="lib/net46" />
17 <file src="efl_mono.xml" target="lib/net46" />
18 </files>
19</package>
diff --git a/src/bindings/mono/meson.build b/src/bindings/mono/meson.build
index 8a87da9572..14b40fd4f6 100644
--- a/src/bindings/mono/meson.build
+++ b/src/bindings/mono/meson.build
@@ -135,6 +135,19 @@ efl_mono_dll_config = configure_file(input : 'efl_mono.dll.config.in',
135 output : 'efl_mono.dll.config', 135 output : 'efl_mono.dll.config',
136 configuration : efl_mono_conf_data) 136 configuration : efl_mono_conf_data)
137 137
138nuget_conf_data = configuration_data()
139
140nuget_conf_data.set('EFL_VERSION', meson.project_version())
141
142nuget_nuspec = configure_file(input : 'efl_mono.dll.nuspec.in',
143 output : 'efl_mono.dll.nuspec',
144 configuration : nuget_conf_data)
145
146run_target('nuget_pack',
147 command: ['nuget', 'pack', '-OutputDirectory', meson.current_build_dir(),
148 join_paths(meson.current_build_dir(), 'efl_mono.dll.nuspec')]
149)
150
138extra_cs_args = runtime_assemblies 151extra_cs_args = runtime_assemblies
139 152
140if get_option('mono-beta') 153if get_option('mono-beta')