summaryrefslogtreecommitdiff
path: root/src/examples/efl_mono
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 /src/examples/efl_mono
parentf86906587359b890142d467e0b9641ca93570f6e (diff)
efl-mono: Fix examples Makefiles for mono examples
Diffstat (limited to 'src/examples/efl_mono')
-rw-r--r--src/examples/efl_mono/Makefile.am34
1 files changed, 15 insertions, 19 deletions
diff --git a/src/examples/efl_mono/Makefile.am b/src/examples/efl_mono/Makefile.am
index 49fc1c2..9f696fa 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