summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2017-06-15 17:13:12 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-07-13 18:25:43 -0300
commite0772f6005ff2f87c6d4bee38fdccbf616568b90 (patch)
treee2216deec2013c9826de5ccdd2ecebc509e5c8a0
parent50021caf0dd4f998493548fa642ffc00089a9dea (diff)
efl_mono: move examples to src/examples folder
-rw-r--r--configure.ac6
-rw-r--r--src/Makefile_Efl_Mono.am69
-rw-r--r--src/examples/efl_mono/.gitignore7
-rw-r--r--src/examples/efl_mono/EinaArray01.cs (renamed from src/tests/efl_mono/examples/EinaArray01.cs)10
-rw-r--r--src/examples/efl_mono/EinaArray01.sh.in3
-rw-r--r--src/examples/efl_mono/EinaBinbuf01.cs (renamed from src/tests/efl_mono/examples/EinaBinbuf01.cs)11
-rw-r--r--src/examples/efl_mono/EinaBinbuf01.sh.in3
-rw-r--r--src/examples/efl_mono/EinaError01.cs (renamed from src/tests/efl_mono/examples/EinaError01.cs)16
-rw-r--r--src/examples/efl_mono/EinaError01.sh.in3
-rw-r--r--src/examples/efl_mono/EinaHash01.cs (renamed from src/tests/efl_mono/examples/EinaHash01.cs)10
-rw-r--r--src/examples/efl_mono/EinaHash01.sh.in3
-rw-r--r--src/examples/efl_mono/EoInherit01.cs (renamed from src/tests/efl_mono/examples/EoInherit01.cs)19
-rw-r--r--src/examples/efl_mono/EoInherit01.sh.in3
-rw-r--r--src/examples/efl_mono/example_numberwrapper.eo13
-rw-r--r--src/examples/efl_mono/examples_mono.config.in10
-rw-r--r--src/examples/efl_mono/libefl_mono_native_example.c58
16 files changed, 197 insertions, 47 deletions
diff --git a/configure.ac b/configure.ac
index 9923adbf3c..dfdb1c4ba1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5623,6 +5623,12 @@ src/lib/efl/Efl_Config.h
5623src/lib/elementary/Elementary_Options.h 5623src/lib/elementary/Elementary_Options.h
5624src/scripts/eo/eo_debug 5624src/scripts/eo/eo_debug
5625src/tests/efl_mono/efl_mono.exe.config 5625src/tests/efl_mono/efl_mono.exe.config
5626src/examples/efl_mono/examples_mono.config
5627src/examples/efl_mono/EinaArray01.sh
5628src/examples/efl_mono/EinaBinbuf01.sh
5629src/examples/efl_mono/EinaError01.sh
5630src/examples/efl_mono/EinaHash01.sh
5631src/examples/efl_mono/EoInherit01.sh
5626elm_intro.h 5632elm_intro.h
5627spec/efl.spec 5633spec/efl.spec
5628pc/evil.pc 5634pc/evil.pc
diff --git a/src/Makefile_Efl_Mono.am b/src/Makefile_Efl_Mono.am
index c28d3498cd..57d4f2b0f2 100644
--- a/src/Makefile_Efl_Mono.am
+++ b/src/Makefile_Efl_Mono.am
@@ -183,15 +183,7 @@ AM_TESTS_ENVIRONMENT += EINA_LOG_LEVEL=8; export EINA_LOG_LEVEL;
183check_PROGRAMS += tests/efl_mono/efl_mono.exe 183check_PROGRAMS += tests/efl_mono/efl_mono.exe
184TESTS += tests/efl_mono/mono_test_driver.sh 184TESTS += tests/efl_mono/mono_test_driver.sh
185 185
186tests_efl_mono_examples = \
187 tests/efl_mono/examples/EinaError01.cs \
188 tests/efl_mono/examples/EinaBinbuf01.cs \
189 tests/efl_mono/examples/EinaArray01.cs \
190 tests/efl_mono/examples/EinaHash01.cs \
191 tests/efl_mono/examples/EoInherit01.cs
192
193tests_efl_mono_efl_mono_exe_SOURCES = \ 186tests_efl_mono_efl_mono_exe_SOURCES = \
194 $(tests_efl_mono_examples) \
195 tests/efl_mono/Main.cs \ 187 tests/efl_mono/Main.cs \
196 tests/efl_mono/Eina.cs \ 188 tests/efl_mono/Eina.cs \
197 tests/efl_mono/Eo.cs \ 189 tests/efl_mono/Eo.cs \
@@ -205,6 +197,62 @@ tests/efl_mono/efl_mono.exe$(EXEEXT): $(tests_efl_mono_efl_mono_exe_SOURCES) tes
205 @rm -f tests/efl_mono/efl_mono_exe$(EXEEXT) 197 @rm -f tests/efl_mono/efl_mono_exe$(EXEEXT)
206 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -r:$(abs_top_builddir)/src/tests/efl_mono/libefl_mono_test.dll -out:$@ $(filter %.cs, $(^)) 198 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -r:$(abs_top_builddir)/src/tests/efl_mono/libefl_mono_test.dll -out:$@ $(filter %.cs, $(^))
207 199
200### Examples
201
202lib_LTLIBRARIES += examples/efl_mono/libefl_mono_native_example.la
203
204examples_efl_mono_libefl_mono_native_example_la_CPPFLAGS = \
205-I$(builddir)/examples/efl_mono \
206-DEXAMPLES_WD=\"`pwd`\" \
207-DEXAMPLES_SRC_DIR=\"$(top_srcdir)/src/examples/efl_mono\" \
208-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)/src/examples/efl_mono\" \
209-DEXAMPLES_BUILD_DIR=\"$(top_builddir)/src/examples/efl_mono\" \
210@EOLIAN_CFLAGS@ @EINA_CFLAGS@ @EO_CFLAGS@ @ECORE_CFLAGS@
211
212examples_efl_mono_libefl_mono_native_example_la_LIBADD = @USE_EO_LIBS@ @USE_EINA_LIBS@ @USE_EOLIAN_LIBS@
213examples_efl_mono_libefl_mono_native_example_la_LDFLAGS = -rpath $(abs_top_builddir)/examples/efl_mono @EFL_LTLIBRARY_FLAGS@
214examples_efl_mono_libefl_mono_native_example_la_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@ @USE_EO_INTERNAL_LIBS@
215examples_efl_mono_libefl_mono_native_example_la_LIBTOOLFLAGS = --tag=disable-static
216
217efl_mono_example_eolian_mono_files = examples/efl_mono/example_numberwrapper.eo.cs
218
219examples/efl_mono/libefl_mono_native_example.c: examples/efl_mono/example_numberwrapper.eo.h examples/efl_mono/example_numberwrapper.eo.c
220
221examples/efl_mono/libefl_mono_example.dll$(EXEEXT): $(efl_mono_example_eolian_mono_files) examples/efl_mono/$(am__dirstamp) lib/efl_mono/libefl_mono.dll examples/efl_mono/libefl_mono_native_example.la
222 @rm -f examples/efl_mono/libefl_mono_example.dll$(EXEEXT)
223 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_builddir)/lib/efl_mono/libefl_mono.dll -out:$@ -t:library $(filter %.cs, $(^))
224
225
226bin_PROGRAMS += examples/efl_mono/EinaArray01.exe
227examples_efl_mono_EinaArray01_exe_SOURCES = examples/efl_mono/EinaArray01.cs
228examples/efl_mono/EinaArray01.exe$(EXEEXT): $(examples_efl_mono_EinaArray01_exe_SOURCES) examples/efl_mono/$(am__dirstamp) lib/efl_mono/libefl_mono.dll examples/efl_mono/libefl_mono_example.dll
229 @rm -f examples/efl_mono/EinaArray01_exe$(EXEEXT)
230 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -r:$(abs_top_builddir)/src/examples/efl_mono/libefl_mono_example.dll -out:$@ $(filter %.cs, $(^))
231
232bin_PROGRAMS += examples/efl_mono/EinaBinbuf01.exe
233examples_efl_mono_EinaBinbuf01_exe_SOURCES = examples/efl_mono/EinaBinbuf01.cs
234examples/efl_mono/EinaBinbuf01.exe$(EXEEXT): $(examples_efl_mono_EinaBinbuf01_exe_SOURCES) examples/efl_mono/$(am__dirstamp) lib/efl_mono/libefl_mono.dll examples/efl_mono/libefl_mono_example.dll
235 @rm -f examples/efl_mono/EinaBinbuf01_exe$(EXEEXT)
236 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -r:$(abs_top_builddir)/src/examples/efl_mono/libefl_mono_example.dll -out:$@ $(filter %.cs, $(^))
237
238bin_PROGRAMS += examples/efl_mono/EinaError01.exe
239examples_efl_mono_EinaError01_exe_SOURCES = examples/efl_mono/EinaError01.cs
240examples/efl_mono/EinaError01.exe$(EXEEXT): $(examples_efl_mono_EinaError01_exe_SOURCES) examples/efl_mono/$(am__dirstamp) lib/efl_mono/libefl_mono.dll examples/efl_mono/libefl_mono_example.dll
241 @rm -f examples/efl_mono/EinaError01_exe$(EXEEXT)
242 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -r:$(abs_top_builddir)/src/examples/efl_mono/libefl_mono_example.dll -out:$@ $(filter %.cs, $(^))
243
244bin_PROGRAMS += examples/efl_mono/EinaHash01.exe
245examples_efl_mono_EinaHash01_exe_SOURCES = examples/efl_mono/EinaHash01.cs
246examples/efl_mono/EinaHash01.exe$(EXEEXT): $(examples_efl_mono_EinaHash01_exe_SOURCES) examples/efl_mono/$(am__dirstamp) lib/efl_mono/libefl_mono.dll examples/efl_mono/libefl_mono_example.dll
247 @rm -f examples/efl_mono/EinaHash01_exe$(EXEEXT)
248 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -r:$(abs_top_builddir)/src/examples/efl_mono/libefl_mono_example.dll -out:$@ $(filter %.cs, $(^))
249
250bin_PROGRAMS += examples/efl_mono/EoInherit01.exe
251examples_efl_mono_EoInherit01_exe_SOURCES = examples/efl_mono/EoInherit01.cs
252examples/efl_mono/EoInherit01.exe$(EXEEXT): $(examples_efl_mono_EoInherit01_exe_SOURCES) examples/efl_mono/$(am__dirstamp) lib/efl_mono/libefl_mono.dll examples/efl_mono/libefl_mono_example.dll
253 @rm -f examples/efl_mono/EoInherit01_exe$(EXEEXT)
254 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -r:$(abs_top_builddir)/src/examples/efl_mono/libefl_mono_example.dll -out:$@ $(filter %.cs, $(^))
255
208SUFFIXES += .eo.cs 256SUFFIXES += .eo.cs
209 257
210lib/eo/%.eo.cs: lib/eo/%.eo $(_EOLIAN_MONO_DEP) 258lib/eo/%.eo.cs: lib/eo/%.eo $(_EOLIAN_MONO_DEP)
@@ -247,5 +295,10 @@ tests/efl_mono/%.eo.cs: tests/efl_mono/%.eo $(_EOLIAN_MONO_DEP)
247 $(MKDIR_P) $(dir $@); \ 295 $(MKDIR_P) $(dir $@); \
248 $(EOLIAN_MONO) $(EOLIAN_FLAGS) --dllimport efl_mono_native_test -o $@ $< 296 $(EOLIAN_MONO) $(EOLIAN_FLAGS) --dllimport efl_mono_native_test -o $@ $<
249 297
298examples/efl_mono/%.eo.cs: examples/efl_mono/%.eo $(_EOLIAN_MONO_DEP)
299 $(AM_V_EOLMONO) \
300 $(MKDIR_P) $(dir $@); \
301 $(EOLIAN_MONO) $(EOLIAN_FLAGS) --dllimport efl_mono_native_example -o $@ $<
302
250endif 303endif
251endif 304endif
diff --git a/src/examples/efl_mono/.gitignore b/src/examples/efl_mono/.gitignore
new file mode 100644
index 0000000000..d72e4679c7
--- /dev/null
+++ b/src/examples/efl_mono/.gitignore
@@ -0,0 +1,7 @@
1/examples_mono.config
2/libefl_mono_example.dll
3/EinaArray01.sh
4/EinaBinbuf01.sh
5/EinaError01.sh
6/EinaHash01.sh
7/EoInherit01.sh
diff --git a/src/tests/efl_mono/examples/EinaArray01.cs b/src/examples/efl_mono/EinaArray01.cs
index e9515ac4e8..4ac4a77812 100644
--- a/src/tests/efl_mono/examples/EinaArray01.cs
+++ b/src/examples/efl_mono/EinaArray01.cs
@@ -1,12 +1,11 @@
1using static System.Console; 1using static System.Console;
2 2
3namespace TestSuite 3public class ExampleEinaArray01
4{ 4{
5 5 public static void Main()
6class TestExampleEinaArray01
7{
8 public static void EinaArray01()
9 { 6 {
7 eina.Config.Init();
8
10 var strings = new string[]{ 9 var strings = new string[]{
11 "helo", "hera", "starbuck", "kat", "boomer", 10 "helo", "hera", "starbuck", "kat", "boomer",
12 "hotdog", "longshot", "jammer", "crashdown", "hardball", 11 "hotdog", "longshot", "jammer", "crashdown", "hardball",
@@ -40,4 +39,3 @@ class TestExampleEinaArray01
40 } 39 }
41} 40}
42 41
43}
diff --git a/src/examples/efl_mono/EinaArray01.sh.in b/src/examples/efl_mono/EinaArray01.sh.in
new file mode 100644
index 0000000000..87f3454fec
--- /dev/null
+++ b/src/examples/efl_mono/EinaArray01.sh.in
@@ -0,0 +1,3 @@
1#!/bin/sh
2export MONO_PATH="@abs_top_builddir@/src/lib/efl_mono:${LD_LIBRARY_PATH_APPEND}"
3mono --config "@abs_top_builddir@/src/examples/efl_mono/examples_mono.config" "@abs_top_builddir@/src/examples/efl_mono/EinaArray01.exe"
diff --git a/src/tests/efl_mono/examples/EinaBinbuf01.cs b/src/examples/efl_mono/EinaBinbuf01.cs
index 91f66954d4..395616879d 100644
--- a/src/tests/efl_mono/examples/EinaBinbuf01.cs
+++ b/src/examples/efl_mono/EinaBinbuf01.cs
@@ -1,12 +1,11 @@
1using static System.Console; 1using static System.Console;
2 2
3namespace TestSuite 3public class ExampleEinaBinbuf01
4{ 4{
5 5 public static void Main()
6class TestExampleEinaBinbuf01
7{
8 public static void EinaBinbuf01()
9 { 6 {
7 eina.Config.Init();
8
10 var bytes = new byte[]{0, 1, 2, 3, 4, 5, 6}; 9 var bytes = new byte[]{0, 1, 2, 3, 4, 5, 6};
11 10
12 var bb = new eina.Binbuf(); 11 var bb = new eina.Binbuf();
@@ -64,5 +63,3 @@ class TestExampleEinaBinbuf01
64 } 63 }
65} 64}
66 65
67}
68
diff --git a/src/examples/efl_mono/EinaBinbuf01.sh.in b/src/examples/efl_mono/EinaBinbuf01.sh.in
new file mode 100644
index 0000000000..82617053da
--- /dev/null
+++ b/src/examples/efl_mono/EinaBinbuf01.sh.in
@@ -0,0 +1,3 @@
1#!/bin/sh
2export MONO_PATH="@abs_top_builddir@/src/lib/efl_mono:${LD_LIBRARY_PATH_APPEND}"
3mono --config "@abs_top_builddir@/src/examples/efl_mono/examples_mono.config" "@abs_top_builddir@/src/examples/efl_mono/EinaBinbuf01.exe"
diff --git a/src/tests/efl_mono/examples/EinaError01.cs b/src/examples/efl_mono/EinaError01.cs
index b1be4e3e9a..3aecc9a052 100644
--- a/src/tests/efl_mono/examples/EinaError01.cs
+++ b/src/examples/efl_mono/EinaError01.cs
@@ -1,21 +1,18 @@
1using static System.Console; 1using static System.Console;
2 2
3namespace TestSuite 3public class ExampleEinaError01
4{ 4{
5 5 private static bool RegisteredErrors = false;
6class TestExampleEinaError01
7{
8 private static bool RegisterdErrors = false;
9 private static eina.Error MyErrorNegative; 6 private static eina.Error MyErrorNegative;
10 private static eina.Error MyErrorNull; 7 private static eina.Error MyErrorNull;
11 8
12 private static void testFunc(int n, string s) 9 private static void testFunc(int n, string s)
13 { 10 {
14 if (!RegisterdErrors) 11 if (!RegisteredErrors)
15 { 12 {
16 MyErrorNegative = eina.Error.Register("Negative number"); 13 MyErrorNegative = eina.Error.Register("Negative number");
17 MyErrorNull = eina.Error.Register("NULL pointer"); 14 MyErrorNull = eina.Error.Register("NULL pointer");
18 RegisterdErrors = true; 15 RegisteredErrors = true;
19 } 16 }
20 17
21 if (n < 0) 18 if (n < 0)
@@ -31,8 +28,10 @@ class TestExampleEinaError01
31 } 28 }
32 } 29 }
33 30
34 public static void EinaError01() 31 public static void Main()
35 { 32 {
33 eina.Config.Init();
34
36 // Handling Eina_Error with exception 35 // Handling Eina_Error with exception
37 try 36 try
38 { 37 {
@@ -73,4 +72,3 @@ class TestExampleEinaError01
73 } 72 }
74} 73}
75 74
76}
diff --git a/src/examples/efl_mono/EinaError01.sh.in b/src/examples/efl_mono/EinaError01.sh.in
new file mode 100644
index 0000000000..4753020ed2
--- /dev/null
+++ b/src/examples/efl_mono/EinaError01.sh.in
@@ -0,0 +1,3 @@
1#!/bin/sh
2export MONO_PATH="@abs_top_builddir@/src/lib/efl_mono:${LD_LIBRARY_PATH_APPEND}"
3mono --config "@abs_top_builddir@/src/examples/efl_mono/examples_mono.config" "@abs_top_builddir@/src/examples/efl_mono/EinaError01.exe"
diff --git a/src/tests/efl_mono/examples/EinaHash01.cs b/src/examples/efl_mono/EinaHash01.cs
index 9d0d275e12..a645dde1ab 100644
--- a/src/tests/efl_mono/examples/EinaHash01.cs
+++ b/src/examples/efl_mono/EinaHash01.cs
@@ -1,12 +1,11 @@
1using static System.Console; 1using static System.Console;
2 2
3namespace TestSuite 3public class ExampleEinaHash01
4{ 4{
5 5 public static void Main()
6class TestExampleEinaHash01
7{
8 public static void EinaHash01()
9 { 6 {
7 eina.Config.Init();
8
10 var phone_book = new eina.Hash<string, string>(); 9 var phone_book = new eina.Hash<string, string>();
11 10
12 // Add initial entries to our hash 11 // Add initial entries to our hash
@@ -64,5 +63,4 @@ class TestExampleEinaHash01
64 } 63 }
65} 64}
66 65
67}
68 66
diff --git a/src/examples/efl_mono/EinaHash01.sh.in b/src/examples/efl_mono/EinaHash01.sh.in
new file mode 100644
index 0000000000..eb2db39d0a
--- /dev/null
+++ b/src/examples/efl_mono/EinaHash01.sh.in
@@ -0,0 +1,3 @@
1#!/bin/sh
2export MONO_PATH="@abs_top_builddir@/src/lib/efl_mono:${LD_LIBRARY_PATH_APPEND}"
3mono --config "@abs_top_builddir@/src/examples/efl_mono/examples_mono.config" "@abs_top_builddir@/src/examples/efl_mono/EinaHash01.exe"
diff --git a/src/tests/efl_mono/examples/EoInherit01.cs b/src/examples/efl_mono/EoInherit01.cs
index c03f5b071c..54bfc9ca60 100644
--- a/src/tests/efl_mono/examples/EoInherit01.cs
+++ b/src/examples/efl_mono/EoInherit01.cs
@@ -1,6 +1,6 @@
1using static System.Console; 1using static System.Console;
2 2
3class PlusTenNumberWrapper : test.NumberwrapperInherit 3class PlusTenNumberWrapper : example.NumberwrapperInherit
4{ 4{
5 public PlusTenNumberWrapper(efl.Object parent = null) 5 public PlusTenNumberWrapper(efl.Object parent = null)
6 : base(parent) 6 : base(parent)
@@ -16,13 +16,13 @@ class PlusTenNumberWrapper : test.NumberwrapperInherit
16 } 16 }
17} 17}
18 18
19namespace TestSuite 19public class ExampleEoInherit01
20{ 20{
21 21 public static void Main()
22class TestExampleEoInherit01
23{
24 public static void EoInherit01()
25 { 22 {
23 eina.Config.Init();
24 efl.eo.Config.Init();
25
26 var inheritObj = new PlusTenNumberWrapper(); 26 var inheritObj = new PlusTenNumberWrapper();
27 27
28 WriteLine("## Using inherit object ##\n"); 28 WriteLine("## Using inherit object ##\n");
@@ -30,7 +30,7 @@ class TestExampleEoInherit01
30 int given = 111; 30 int given = 111;
31 31
32 // Call the C# override from the C method 32 // Call the C# override from the C method
33 test.NumberwrapperConcrete.test_numberwrapper_number_set(inheritObj.raw_handle, given); 33 example.NumberwrapperConcrete.example_numberwrapper_number_set(inheritObj.raw_handle, given);
34 34
35 WriteLine($"Override successfully called? {inheritObj.derivedCalled}!\n"); 35 WriteLine($"Override successfully called? {inheritObj.derivedCalled}!\n");
36 36
@@ -51,11 +51,10 @@ class TestExampleEoInherit01
51 WriteLine($"Given value: {given}"); 51 WriteLine($"Given value: {given}");
52 WriteLine($"Stored value: {stored}\n"); 52 WriteLine($"Stored value: {stored}\n");
53 53
54
55 WriteLine("## Using original object ##\n"); 54 WriteLine("## Using original object ##\n");
56 55
57 // Check original EFL object 56 // Check original EFL object
58 var origObj = new test.NumberwrapperConcrete(); 57 var origObj = new example.NumberwrapperConcrete();
59 given = 111; 58 given = 111;
60 origObj.number_set(given); 59 origObj.number_set(given);
61 stored = origObj.number_get(); 60 stored = origObj.number_get();
@@ -66,5 +65,3 @@ class TestExampleEoInherit01
66 } 65 }
67} 66}
68 67
69}
70
diff --git a/src/examples/efl_mono/EoInherit01.sh.in b/src/examples/efl_mono/EoInherit01.sh.in
new file mode 100644
index 0000000000..2b14c9eb2f
--- /dev/null
+++ b/src/examples/efl_mono/EoInherit01.sh.in
@@ -0,0 +1,3 @@
1#!/bin/sh
2export MONO_PATH="@abs_top_builddir@/src/lib/efl_mono:${LD_LIBRARY_PATH_APPEND}"
3mono --config "@abs_top_builddir@/src/examples/efl_mono/examples_mono.config" "@abs_top_builddir@/src/examples/efl_mono/EoInherit01.exe"
diff --git a/src/examples/efl_mono/example_numberwrapper.eo b/src/examples/efl_mono/example_numberwrapper.eo
new file mode 100644
index 0000000000..077b804154
--- /dev/null
+++ b/src/examples/efl_mono/example_numberwrapper.eo
@@ -0,0 +1,13 @@
1class Example.Numberwrapper (Efl.Object) {
2 methods {
3 @property number {
4 get {
5 }
6 set {
7 }
8 values {
9 n: int;
10 }
11 }
12 }
13}
diff --git a/src/examples/efl_mono/examples_mono.config.in b/src/examples/efl_mono/examples_mono.config.in
new file mode 100644
index 0000000000..692ca4e774
--- /dev/null
+++ b/src/examples/efl_mono/examples_mono.config.in
@@ -0,0 +1,10 @@
1
2<configuration>
3 <dllmap target="@abs_top_builddir@/src/lib/eina/.libs/libeina.so" dll="eina" />
4 <dllmap target="@abs_top_builddir@/src/lib/ecore/.libs/libecore.so" dll="ecore" />
5 <dllmap target="@abs_top_builddir@/src/lib/eo/.libs/libeo.so" dll="eo" />
6 <dllmap target="@abs_top_builddir@/src/lib/evas/.libs/libevas.so" dll="evas" />
7 <dllmap target="@abs_top_builddir@/src/lib/ecore_evas/.libs/libecore_evas.so" dll="ecore_evas" />
8 <dllmap target="@abs_top_builddir@/src/lib/eina/.libs/libeina.so" dll="eina" />
9 <dllmap target="@abs_top_builddir@/src/lib/efl_mono/.libs/eflcustomexportsmono.so" dll="eflcustomexportsmono" />
10</configuration>
diff --git a/src/examples/efl_mono/libefl_mono_native_example.c b/src/examples/efl_mono/libefl_mono_native_example.c
new file mode 100644
index 0000000000..6f7aab0dfe
--- /dev/null
+++ b/src/examples/efl_mono/libefl_mono_native_example.c
@@ -0,0 +1,58 @@
1
2#ifdef HAVE_CONFIG_H
3#include "config.h"
4#endif
5
6#include <Eo.h>
7
8#undef EOAPI
9#undef EAPI
10#define EOAPI EAPI EAPI_WEAK
11
12#ifdef _WIN32
13# ifdef EFL_EO_BUILD
14# ifdef DLL_EXPORT
15# define EAPI __declspec(dllexport)
16# else
17# define EAPI
18# endif /* ! DLL_EXPORT */
19# else
20# define EAPI __declspec(dllimport)
21# endif /* ! EFL_EO_BUILD */
22#else
23# ifdef __GNUC__
24# if __GNUC__ >= 4
25# define EAPI __attribute__ ((visibility("default")))
26# else
27# define EAPI
28# endif
29# else
30# define EAPI
31# endif
32#endif /* ! _WIN32 */
33
34#include "example_numberwrapper.eo.h"
35
36
37typedef struct Example_Numberwrapper_Data
38{
39 int number;
40} Example_Numberwrapper_Data;
41
42// ##################### //
43// Example.Numberwrapper //
44// ##################### //
45
46
47void _example_numberwrapper_number_set(EINA_UNUSED Eo *obj, Example_Numberwrapper_Data *pd, int n)
48{
49 pd->number = n;
50}
51
52int _example_numberwrapper_number_get(EINA_UNUSED Eo *obj, Example_Numberwrapper_Data *pd)
53{
54 return pd->number;
55}
56
57#include "example_numberwrapper.eo.c"
58