summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2017-12-13 19:59:54 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-12-14 17:42:42 -0200
commite8edf882bf75b203d8a3440a0a5e2b75eeed64a6 (patch)
treed5faae869853ad9e24357e4e608cac51bbbfeffd
parentf86906587359b890142d467e0b9641ca93570f6e (diff)
efl-mono: Fix examples Makefiles for mono examples
-rw-r--r--src/Makefile_Efl_Mono.am43
-rw-r--r--src/examples/efl_mono/Makefile.am34
-rw-r--r--src/examples/eina/Makefile.am53
-rw-r--r--src/examples/elementary/Makefile.am34
-rw-r--r--src/examples/evas/Makefile.am60
5 files changed, 118 insertions, 106 deletions
diff --git a/src/Makefile_Efl_Mono.am b/src/Makefile_Efl_Mono.am
index b40cacf69e..247f053370 100644
--- a/src/Makefile_Efl_Mono.am
+++ b/src/Makefile_Efl_Mono.am
@@ -37,14 +37,17 @@ efl_eldbus_mono_files = \
37efl_ecore_evas_mono_files = \ 37efl_ecore_evas_mono_files = \
38 bindings/mono/ecore_evas_mono/ecore_evas.cs 38 bindings/mono/ecore_evas_mono/ecore_evas.cs
39 39
40lib_efl_mono_libefl_mono_dll_SOURCES = \ 40lib_efl_mono_libefl_mono_dll_sources = \
41 bindings/mono/efl_mono/efl_all.cs \ 41 bindings/mono/efl_mono/efl_all.cs \
42 $(builddir)/bindings/mono/efl_mono/efl_libs.cs \
43 $(efl_eo_mono_files) \ 42 $(efl_eo_mono_files) \
44 $(efl_eina_mono_files) \ 43 $(efl_eina_mono_files) \
45 $(efl_eldbus_mono_files) \ 44 $(efl_eldbus_mono_files) \
46 $(efl_ecore_evas_mono_files) 45 $(efl_ecore_evas_mono_files)
47 46
47EXTRA_DIST2 += \
48bindings/mono/efl_mono/efl_libs.cs.in \
49bindings/mono/efl_mono/efl_libs.csv.in
50
48if HAVE_CSHARP 51if HAVE_CSHARP
49 52
50bin_PROGRAMS += bin/eolian_mono/eolian_mono 53bin_PROGRAMS += bin/eolian_mono/eolian_mono
@@ -151,10 +154,16 @@ lib/efl/interfaces/efl_text_properties.eo.cs \
151$(evas_canvas_eolian_type_files:%.eot=%.eot.cs) \ 154$(evas_canvas_eolian_type_files:%.eot=%.eot.cs) \
152lib/eo/eina_types.eot.cs 155lib/eo/eina_types.eot.cs
153 156
157efl_mono_files_gen =\
158$(lib_efl_mono_libefl_mono_dll_sources) \
159$(efl_eolian_mono_files) \
160$(builddir)/bindings/mono/efl_mono/efl_libs.cs
161
162
154installed_eflmonomainheadersdir = $(includedir)/efl-mono-@VMAJ@/ 163installed_eflmonomainheadersdir = $(includedir)/efl-mono-@VMAJ@/
155nodist_installed_eflmonomainheaders_DATA = $(efl_eolian_files:%.eo=%.eo.cs) 164nodist_installed_eflmonomainheaders_DATA = $(efl_eolian_files:%.eo=%.eo.cs) $(builddir)/bindings/mono/efl_mono/efl_libs.csv
156 165
157CLEANFILES += $(efl_eolian_mono_files) 166CLEANFILES += $(efl_mono_files_gen)
158 167
159if HAVE_WIN32 168if HAVE_WIN32
160 169
@@ -180,13 +189,25 @@ lib_efl_mono_libeflcustomexportsmono_la_LIBADD = @EFL_CUSTOM_EXPORTS_MONO_LIBS@
180lib_efl_mono_libeflcustomexportsmono_la_DEPENDENCIES = @EFL_CUSTOM_EXPORTS_MONO_INTERNAL_LIBS@ 189lib_efl_mono_libeflcustomexportsmono_la_DEPENDENCIES = @EFL_CUSTOM_EXPORTS_MONO_INTERNAL_LIBS@
181 190
182#Efl Mono - C Sharp binding library 191#Efl Mono - C Sharp binding library
183bin_PROGRAMS += lib/efl_mono/libefl_mono.dll
184 192
185 193lib/efl_mono/libefl_mono.dll: $(efl_mono_files_dist) lib/efl_mono/$(am__dirstamp) $(efl_mono_files_gen) lib/efl_mono/libefl_mono.dll.config
186lib/efl_mono/libefl_mono.dll: $(lib_efl_mono_libefl_mono_dll_SOURCES) lib/efl_mono/$(am__dirstamp) $(efl_eolian_mono_files) lib/efl_mono/libefl_mono.dll.config
187 @rm -f lib/efl_mono/libefl_mono.dll 194 @rm -f lib/efl_mono/libefl_mono.dll
188 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -out:$@ -t:library $(filter %.cs, $(^)) 195 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -out:$@ -t:library $(filter %.cs, $(^))
189 196
197if HAVE_WIN32
198efl_mono_dll_dest = $(DESTDIR)$(bindir)
199else
200efl_mono_dll_dest = $(DESTDIR)$(libdir)/efl-mono-@VMAJ@
201endif
202
203EFL_INSTALL_EXEC_HOOK += \
204$(MKDIR_P) $(efl_mono_dll_dest); \
205cp -f $(srcdir)/lib/efl_mono/libefl_mono.dll $(efl_mono_dll_dest)/libefl_mono.dll; \
206cp -f $(srcdir)/bindings/mono/efl_mono/efl_libs.csv $(DESTDIR)$(datadir)/efl_mono/efl_libs.csv;
207
208all-local: lib/efl_mono/libefl_mono.dll
209
210
190### MSBuild 211### MSBuild
191 212
192bin_PROGRAMS += bin/efl_mono_msbuild_gen/efl_mono_msbuild_gen 213bin_PROGRAMS += bin/efl_mono_msbuild_gen/efl_mono_msbuild_gen
@@ -210,7 +231,7 @@ bin_efl_mono_msbuild_gen_efl_mono_msbuild_gen_DEPENDENCIES = @USE_EOLIAN_INTERNA
210include Makefile_Efl_Mono_MSBuild_Gen_Helper.am 231include Makefile_Efl_Mono_MSBuild_Gen_Helper.am
211 232
212# Efl Mono DLL for MSBuild 233# Efl Mono DLL for MSBuild
213../libefl_mono.csproj: $(lib_efl_mono_libefl_mono_dll_SOURCES) lib/efl_mono/$(am__dirstamp) $(efl_eolian_mono_files) $(_EFL_MONO_MSBUILD_GEN_DEP) 234../libefl_mono.csproj: $(efl_mono_files_dist) lib/efl_mono/$(am__dirstamp) $(efl_mono_files_gen) $(_EFL_MONO_MSBUILD_GEN_DEP)
214 @rm -f $@ 235 @rm -f $@
215 $(EFL_MONO_MSBUILD_GEN) $(MSBUILD_GEN_FLAGS) -o $@ -a libefl_mono.dll -t library $(patsubst %.cs,src/%.cs,$(filter %.cs, $(^))) 236 $(EFL_MONO_MSBUILD_GEN) $(MSBUILD_GEN_FLAGS) -o $@ -a libefl_mono.dll -t library $(patsubst %.cs,src/%.cs,$(filter %.cs, $(^)))
216 237
@@ -361,10 +382,12 @@ lib/efl_mono/libefl_mono.dll.config:
361 echo " <dllmap dll=\"elementary\" target=\"$(abs_top_builddir)/src/lib/elementary/.libs/libelementary.so\"/>" >> $@ 382 echo " <dllmap dll=\"elementary\" target=\"$(abs_top_builddir)/src/lib/elementary/.libs/libelementary.so\"/>" >> $@
362 echo "</configuration>" >> $@ 383 echo "</configuration>" >> $@
363 384
364tests/efl_mono/efl_mono.exe: $(tests_efl_mono_efl_mono_exe_SOURCES) tests/efl_mono/$(am__dirstamp) lib/efl_mono/libefl_mono.dll tests/efl_mono/libefl_mono_test.dll 385tests/efl_mono/efl_mono.exe$(EXEEXT): $(tests_efl_mono_efl_mono_exe_SOURCES) tests/efl_mono/$(am__dirstamp) lib/efl_mono/libefl_mono.dll tests/efl_mono/libefl_mono_test.dll
365 @rm -f tests/efl_mono/efl_mono_exe 386 @rm -f tests/efl_mono/efl_mono.exe
366 $(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, $(^)) 387 $(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, $(^))
367 388
389###EXTRA_DIST2 += $(tests_efl_mono_efl_mono_exe_srcs)
390
368# Rule for generating the .cs files 391# Rule for generating the .cs files
369tests/efl_mono/%.eo.cs: tests/efl_mono/%.eo $(_EOLIAN_MONO_DEP) 392tests/efl_mono/%.eo.cs: tests/efl_mono/%.eo $(_EOLIAN_MONO_DEP)
370 $(AM_V_EOLMONO) \ 393 $(AM_V_EOLMONO) \
diff --git a/src/examples/efl_mono/Makefile.am b/src/examples/efl_mono/Makefile.am
index 49fc1c2cb3..9f696fabaa 100644
--- a/src/examples/efl_mono/Makefile.am
+++ b/src/examples/efl_mono/Makefile.am
@@ -54,32 +54,29 @@ libexample_numberwrapper_la_SOURCES = example_numberwrapper.c
54libexample_numberwrapper_la_LDFLAGS = -shared 54libexample_numberwrapper_la_LDFLAGS = -shared
55libexample_numberwrapper_la_CFLAGS = $(COMMON_FLAGS) -DEFL_BETA_API_SUPPORT 55libexample_numberwrapper_la_CFLAGS = $(COMMON_FLAGS) -DEFL_BETA_API_SUPPORT
56 56
57GENERATED += example_numberwrapper.eo.h example_numberwrapper.eo.c EoInherit01.exe.config 57GENERATED += example_numberwrapper.eo.h example_numberwrapper.eo.c EoInherit01$(EXEEXT).config
58 58
59# CSharp examples 59# CSharp examples
60 60
61SRCS += \
62EoInherit01.cs \
63FunctionPointer01.cs
64
65EXTRA_PROGRAMS += \ 61EXTRA_PROGRAMS += \
66EoInherit01.exe \ 62EoInherit01 \
67FunctionPointer01.exe 63FunctionPointer01
68 64
69example_numberwrapper.eo.cs: example_numberwrapper.eo 65example_numberwrapper.eo.cs: example_numberwrapper.eo
70 $(AM_V_EOLMONO) \ 66 $(AM_V_EOLMONO) \
71 $(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport example_numberwrapper -o $@ -r $(top_builddir)/src/bindings/mono/efl_mono/efl_libs.csv $< 67 $(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport example_numberwrapper -o $@ -r $(top_builddir)/src/bindings/mono/efl_mono/efl_libs.csv $<
72 68
73EoInherit01_exe_SOURCES = EoInherit01.cs 69EoInherit01_SOURCES = EoInherit01.cs example_numberwrapper.eo.cs
74EoInherit01_srcs = $(EoInherit01_exe_SOURCES) example_numberwrapper.eo.cs 70#EoInherit01_files = $(EoInherit01_exe_srcs) example_numberwrapper.eo.cs
75EoInherit01.exe: $(EoInherit01_srcs) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll libexample_numberwrapper.la EoInherit01.exe.config 71EoInherit01$(EXEEXT): $(EoInherit01_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll libexample_numberwrapper.la EoInherit01$(EXEEXT).config
76 @rm -f $@ 72 @rm -f $@
77 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^)) 73 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^))
78 74
79$(abs_top_builddir)/EoInherit01.csproj: $(EoInherit01_srcs) $(am_dirstamp) $(numberwrapper_lib_name) 75EoInherit01.csproj: $(EoInherit01_SOURCES) $(am_dirstamp) libexample_numberwrapper.la
80 @rm -f $@ 76 @rm -f $@
81 $(EFL_MONO_MSBUILD_GEN) $(MSBUILD_GEN_FLAGS) -o $@ -a EoInherit01.exe -r libefl_mono.dll -t exe $(patsubst %.cs,src/examples/efl_mono/%.cs,$(filter %.cs, $(^))) 77 $(EFL_MONO_MSBUILD_GEN) $(MSBUILD_GEN_FLAGS) -o $@ -a EoInherit01$(EXEEXT) -r libefl_mono.dll -t exe $(patsubst %.cs,src/examples/efl_mono/%.cs,$(filter %.cs, $(^)))
82EoInherit01.exe.config: 78
79EoInherit01$(EXEEXT).config:
83 echo "<configuration>" > $@ 80 echo "<configuration>" > $@
84 echo " <dllmap dll=\"example_numberwrapper\" target=\"$(abs_top_builddir)/src/examples/efl_mono/.libs/libexample_numberwrapper.so\"/>" >> $@ 81 echo " <dllmap dll=\"example_numberwrapper\" target=\"$(abs_top_builddir)/src/examples/efl_mono/.libs/libexample_numberwrapper.so\"/>" >> $@
85 echo " <dllmap dll=\"efl_mono\" target=\"$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll\"/>" >> $@ 82 echo " <dllmap dll=\"efl_mono\" target=\"$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll\"/>" >> $@
@@ -90,17 +87,16 @@ EoInherit01.exe.config:
90 echo " </runtime>" >> $@ 87 echo " </runtime>" >> $@
91 echo "</configuration>" >> $@ 88 echo "</configuration>" >> $@
92 89
93FunctionPointer01_exe_SOURCES = FunctionPointer01.cs 90FunctionPointer01_SOURCES = FunctionPointer01.cs example_numberwrapper.eo.cs
94FunctionPointer01_srcs = $(FunctionPointer01_exe_SOURCES) example_numberwrapper.eo.cs 91FunctionPointer01$(EXEEXT): $(FunctionPointer01_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll libexample_numberwrapper.la
95FunctionPointer01.exe: $(FunctionPointer01_srcs) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll $(numberwrapper_lib_name)
96 @rm -f $@ 92 @rm -f $@
97 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^)) 93 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^))
98 94
99$(abs_top_builddir)/FunctionPointer01.csproj: $(FunctionPointer01_srcs) $(am_dirstamp) $(numberwrapper_lib_name) 95FunctionPointer01.csproj: $(FunctionPointer01_SOURCES) $(am_dirstamp) libexample_numberwrapper.la
100 @rm -f $@ 96 @rm -f $@
101 $(EFL_MONO_MSBUILD_GEN) $(MSBUILD_GEN_FLAGS) -o $@ -a FunctionPointer01.exe -r libefl_mono.dll -t exe $(patsubst %.cs,src/examples/efl_mono/%.cs,$(filter %.cs, $(^))) 97 $(EFL_MONO_MSBUILD_GEN) $(MSBUILD_GEN_FLAGS) -o $@ -a FunctionPointer01$(EXEEXT) -r libefl_mono.dll -t exe $(patsubst %.cs,src/examples/efl_mono/%.cs,$(filter %.cs, $(^)))
102 98
103msbuildcsprojs: $(abs_top_builddir)/EoInherit01.csproj $(abs_top_builddir)/FunctionPointer01.csproj 99msbuildcsprojs: EoInherit01.csproj $(abs_top_builddir)/FunctionPointer01.csproj
104 100
105GENERATED += example_numberwrapper.eo.cs 101GENERATED += example_numberwrapper.eo.cs
106 102
diff --git a/src/examples/eina/Makefile.am b/src/examples/eina/Makefile.am
index baeb26bf6f..4ecd814672 100644
--- a/src/examples/eina/Makefile.am
+++ b/src/examples/eina/Makefile.am
@@ -141,58 +141,53 @@ if HAVE_CSHARP
141include $(top_srcdir)/src/Makefile_Efl_Mono_MSBuild_Gen_Helper.am 141include $(top_srcdir)/src/Makefile_Efl_Mono_MSBuild_Gen_Helper.am
142 142
143EXTRA_PROGRAMS += \ 143EXTRA_PROGRAMS += \
144EinaArray01.exe \ 144EinaArray01Mono \
145EinaBinbuf01.exe \ 145EinaBinbuf01Mono \
146EinaError01.exe \ 146EinaError01Mono \
147EinaHash01.exe 147EinaHash01Mono
148 148
149EinaArray01Mono_SOURCES = EinaArray01.cs
150EinaBinbuf01Mono_SOURCES = EinaBinbuf01.cs
151EinaError01Mono_SOURCES = EinaError01.cs
152EinaHash01Mono_SOURCES = EinaHash01.cs
149 153
150EinaArray01_exe_SOURCES = EinaArray01.cs 154EinaArray01Mono$(EXEEXT): $(EinaArray01Mono_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll
151EinaArray01.exe$(EXEEXT): $(EinaArray01_exe_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT)
152 @rm -f $@ 155 @rm -f $@
153 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) -out:$@ $(filter %.cs, $(^)) 156 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^))
154 157
155$(abs_top_builddir)/EinaArray01.csproj: $(EinaArray01_exe_SOURCES) $(am_dirstamp) 158EinaArray01.csproj: $(EinaArray01Mono_SOURCES) $(am_dirstamp)
156 @rm -f $@ 159 @rm -f $@
157 $(EFL_MONO_MSBUILD_GEN) $(MSBUILD_GEN_FLAGS) -o $@ -a EinaArray01.exe -r libefl_mono.dll -t exe $(patsubst %.cs,src/examples/eina/%.cs,$(filter %.cs, $(^))) 160 $(EFL_MONO_MSBUILD_GEN) $(MSBUILD_GEN_FLAGS) -o $@ -a EinaArray01Mono$(EXEEXT) -r libefl_mono.dll -t exe $(patsubst %.cs,src/examples/eina/%.cs,$(filter %.cs, $(^)))
158 161
159 162EinaBinbuf01Mono$(EXEEXT): $(EinaBinbuf01Mono_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll
160EinaBinbuf01_exe_SOURCES = EinaBinbuf01.cs
161EinaBinbuf01.exe$(EXEEXT): $(EinaBinbuf01_exe_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT)
162 @rm -f $@ 163 @rm -f $@
163 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) -out:$@ $(filter %.cs, $(^)) 164 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^))
164 165
165$(abs_top_builddir)/EinaBinbuf01.csproj: $(EinaBinbuf01_exe_SOURCES) $(am_dirstamp) 166EinaBinbuf01.csproj: $(EinaBinbuf01Mono_SOURCES) $(am_dirstamp)
166 @rm -f $@ 167 @rm -f $@
167 $(EFL_MONO_MSBUILD_GEN) $(MSBUILD_GEN_FLAGS) -o $@ -a EinaBinbuf01.exe -r libefl_mono.dll -t exe $(patsubst %.cs,src/examples/eina/%.cs,$(filter %.cs, $(^))) 168 $(EFL_MONO_MSBUILD_GEN) $(MSBUILD_GEN_FLAGS) -o $@ -a EinaBinbuf01Mono$(EXEEXT) -r libefl_mono.dll -t exe $(patsubst %.cs,src/examples/eina/%.cs,$(filter %.cs, $(^)))
168
169 169
170EinaError01_exe_SOURCES = EinaError01.cs 170EinaError01Mono$(EXEEXT): $(EinaError01Mono_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll
171EinaError01.exe$(EXEEXT): $(EinaError01_exe_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT)
172 @rm -f $@ 171 @rm -f $@
173 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) -out:$@ $(filter %.cs, $(^)) 172 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^))
174 173
175$(abs_top_builddir)/EinaError01.csproj: $(EinaError01_exe_SOURCES) $(am_dirstamp) 174EinaError01.csproj: $(EinaError01Mono_SOURCES) $(am_dirstamp)
176 @rm -f $@ 175 @rm -f $@
177 $(EFL_MONO_MSBUILD_GEN) $(MSBUILD_GEN_FLAGS) -o $@ -a EinaError01.exe -r libefl_mono.dll -t exe $(patsubst %.cs,src/examples/eina/%.cs,$(filter %.cs, $(^))) 176 $(EFL_MONO_MSBUILD_GEN) $(MSBUILD_GEN_FLAGS) -o $@ -a EinaError01Mono$(EXEEXT) -r libefl_mono.dll -t exe $(patsubst %.cs,src/examples/eina/%.cs,$(filter %.cs, $(^)))
178
179 177
180EinaHash01_exe_SOURCES = EinaHash01.cs 178EinaHash01Mono$(EXEEXT): $(EinaHash01Mono_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll
181EinaHash01.exe$(EXEEXT): $(EinaHash01_exe_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT)
182 @rm -f $@ 179 @rm -f $@
183 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) -out:$@ $(filter %.cs, $(^)) 180 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^))
184 181
185$(abs_top_builddir)/EinaHash01.csproj: $(EinaHash01_exe_SOURCES) $(am_dirstamp) 182EinaHash01.csproj: $(EinaHash01Mono_SOURCES) $(am_dirstamp)
186 @rm -f $@ 183 @rm -f $@
187 $(EFL_MONO_MSBUILD_GEN) $(MSBUILD_GEN_FLAGS) -o $@ -a EinaHash01.exe -r libefl_mono.dll -t exe $(patsubst %.cs,src/examples/eina/%.cs,$(filter %.cs, $(^))) 184 $(EFL_MONO_MSBUILD_GEN) $(MSBUILD_GEN_FLAGS) -o $@ -a EinaHash01Mono$(EXEEXT) -r libefl_mono.dll -t exe $(patsubst %.cs,src/examples/eina/%.cs,$(filter %.cs, $(^)))
188 185
189msbuildcsprojs: $(abs_top_builddir)/EinaArray01.csproj $(abs_top_builddir)/EinaBinbuf01.csproj $(abs_top_builddir)/EinaError01.csproj $(abs_top_builddir)/EinaHash01.csproj 186msbuildcsprojs: $(abs_top_builddir)/EinaArray01.csproj $(abs_top_builddir)/EinaBinbuf01.csproj $(abs_top_builddir)/EinaError01.csproj $(abs_top_builddir)/EinaHash01.csproj
190 187
191endif 188endif
192 189
193
194DATA_FILES = addr_book.txt chat.xml Makefile.examples 190DATA_FILES = addr_book.txt chat.xml Makefile.examples
195
196EXTRA_DIST = $(DATA_FILES) 191EXTRA_DIST = $(DATA_FILES)
197 192
198examples: $(EXTRA_PROGRAMS) 193examples: $(EXTRA_PROGRAMS)
diff --git a/src/examples/elementary/Makefile.am b/src/examples/elementary/Makefile.am
index 00cf29e307..320d333125 100644
--- a/src/examples/elementary/Makefile.am
+++ b/src/examples/elementary/Makefile.am
@@ -265,23 +265,6 @@ nodist_codegen_example_SOURCES = \
265codegen_example_generated.c \ 265codegen_example_generated.c \
266codegen_example_generated.h 266codegen_example_generated.h
267 267
268
269if HAVE_CSHARP
270
271efl_ui_slider_mono_exe_SOURCES = \
272 efl_ui_slider_mono.cs
273
274if HAVE_WIN32
275MCS_FLAGS := $(MCS_FLAGS)
276MCS_FLAGS += -define:WIN32
277endif
278
279efl_ui_slider_mono.exe$(EXEEXT): $(efl_ui_slider_mono_exe_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT)
280 @rm -f efl_ui_slider_mono$(EXEEXT)
281 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) -out:$@ $(filter %.cs, $(^))
282
283endif
284
285examples_PROGRAMS = \ 268examples_PROGRAMS = \
286actionslider_example_01 \ 269actionslider_example_01 \
287bg_example_01 \ 270bg_example_01 \
@@ -447,8 +430,20 @@ endif
447 430
448if HAVE_CSHARP 431if HAVE_CSHARP
449 432
433efl_ui_slider_mono_SOURCES = \
434 efl_ui_slider_mono.cs
435
436if HAVE_WIN32
437MCS_FLAGS := $(MCS_FLAGS)
438MCS_FLAGS += -define:WIN32
439endif
440
441efl_ui_slider_mono$(EXEEXT): $(efl_ui_slider_mono_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll
442 @rm -f $@
443 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^))
444
450examples_PROGRAMS += \ 445examples_PROGRAMS += \
451 efl_ui_slider_mono.exe 446 efl_ui_slider_mono
452 447
453endif 448endif
454 449
@@ -607,6 +602,9 @@ screenshots: examples
607 602
608EXTRA_DIST = dict.txt layout_example.edc theme_example.edc codegen_example.edc evas3d_map_example.edc twitter_example_01.edc efl_ui_list_example.edc performance/layout.edc performance/background.png performance/target_texture.png sphere_hunter/sphere_hunter.edc sphere_hunter/score.jpg sphere_hunter/EFL_victory.png sphere_hunter/EFL_defeat.png codegen_example_generated.c codegen_example_generated.h codegen_example.edj prefs_example_01.epc prefs_example_02.epc prefs_example_03.epc prefs_example_03.edc 603EXTRA_DIST = dict.txt layout_example.edc theme_example.edc codegen_example.edc evas3d_map_example.edc twitter_example_01.edc efl_ui_list_example.edc performance/layout.edc performance/background.png performance/target_texture.png sphere_hunter/sphere_hunter.edc sphere_hunter/score.jpg sphere_hunter/EFL_victory.png sphere_hunter/EFL_defeat.png codegen_example_generated.c codegen_example_generated.h codegen_example.edj prefs_example_01.epc prefs_example_02.epc prefs_example_03.epc prefs_example_03.edc
609 604
605if HAVE_CSHARP
606EXTRA_DIST += $(MONO_SRCS)
607endif
610 608
611examples: $(examples_PROGRAMS) $(EDJS) 609examples: $(examples_PROGRAMS) $(EDJS)
612 610
diff --git a/src/examples/evas/Makefile.am b/src/examples/evas/Makefile.am
index 2c5416e3cf..dd9b7964fe 100644
--- a/src/examples/evas/Makefile.am
+++ b/src/examples/evas/Makefile.am
@@ -370,55 +370,55 @@ endif
370if HAVE_CSHARP 370if HAVE_CSHARP
371 371
372EXTRA_PROGRAMS += \ 372EXTRA_PROGRAMS += \
373 evas_mono_box.exe \ 373 evas_mono_box_csharp \
374 evas_mono_image.exe \ 374 evas_mono_image_csharp \
375 evas_mono_image2.exe \ 375 evas_mono_image2_csharp \
376 evas_mono_rectangle.exe \ 376 evas_mono_rectangle_csharp \
377 evas_mono_table.exe \ 377 evas_mono_table_csharp \
378 evas_mono_text.exe 378 evas_mono_text_csharp
379 379
380 380
381evas_mono_box_exe_SOURCES = \ 381evas_mono_box_csharp_SOURCES = \
382 evas_mono_box.cs 382 evas_mono_box.cs
383 383
384evas_mono_box.exe$(EXEEXT): $(evas_mono_box_exe_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) 384evas_mono_box_csharp$(EXEEXT): $(evas_mono_box_csharp_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll
385 @rm -f evas_mono_box$(EXEEXT) 385 @rm -f $@
386 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) -out:$@ $(filter %.cs, $(^)) 386 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^))
387 387
388evas_mono_image_exe_SOURCES = \ 388evas_mono_image_csharp_SOURCES = \
389 evas_mono_image.cs 389 evas_mono_image.cs
390 390
391evas_mono_image.exe$(EXEEXT): $(evas_mono_image_exe_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) 391evas_mono_image_csharp$(EXEEXT): $(evas_mono_image_csharp_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll
392 @rm -f evas_mono_image$(EXEEXT) 392 @rm -f $@
393 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) -out:$@ $(filter %.cs, $(^)) 393 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^))
394 394
395evas_mono_image2_exe_SOURCES = \ 395evas_mono_image2_csharp_SOURCES = \
396 evas_mono_image2.cs 396 evas_mono_image2.cs
397 397
398evas_mono_image2.exe$(EXEEXT): $(evas_mono_image2_exe_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) 398evas_mono_image2_csharp$(EXEEXT): $(evas_mono_image2_csharp_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll
399 @rm -f evas_mono_image2$(EXEEXT) 399 @rm -f $@
400 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) -out:$@ $(filter %.cs, $(^)) 400 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^))
401 401
402evas_mono_rectangle_exe_SOURCES = \ 402evas_mono_rectangle_csharp_SOURCES = \
403 evas_mono_rectangle.cs 403 evas_mono_rectangle.cs
404 404
405evas_mono_rectangle.exe$(EXEEXT): $(evas_mono_rectangle_exe_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) 405evas_mono_rectangle_csharp$(EXEEXT): $(evas_mono_rectangle_csharp_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll
406 @rm -f evas_mono_rectangle$(EXEEXT) 406 @rm -f $@
407 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) -out:$@ $(filter %.cs, $(^)) 407 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^))
408 408
409evas_mono_table_exe_SOURCES = \ 409evas_mono_table_csharp_SOURCES = \
410 evas_mono_table.cs 410 evas_mono_table.cs
411 411
412evas_mono_table.exe$(EXEEXT): $(evas_mono_table_exe_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) 412evas_mono_table_csharp$(EXEEXT): $(evas_mono_table_csharp_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll
413 @rm -f evas_mono_table$(EXEEXT) 413 @rm -f $@
414 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) -out:$@ $(filter %.cs, $(^)) 414 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^))
415 415
416evas_mono_text_exe_SOURCES = \ 416evas_mono_text_csharp_SOURCES = \
417 evas_mono_text.cs 417 evas_mono_text.cs
418 418
419evas_mono_text.exe$(EXEEXT): $(evas_mono_text_exe_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) 419evas_mono_text_csharp$(EXEEXT): $(evas_mono_text_csharp_SOURCES) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll
420 @rm -f evas_mono_text$(EXEEXT) 420 @rm -f $@
421 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) -out:$@ $(filter %.cs, $(^)) 421 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^))
422 422
423endif 423endif
424 424