summaryrefslogtreecommitdiff
path: root/src/examples/efl_mono
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-12-11 12:06:54 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-12-11 14:45:57 -0200
commitff9293827f0770d9af54b2008a74fde6e083d383 (patch)
tree30c1ac0a82655b1d50981e9047302f18f517cb60 /src/examples/efl_mono
parentec56282186df33b148b647c22e58bee4cdc9df61 (diff)
efl-mono: Fix automake files in C# binding search with buggy mono version
Diffstat (limited to 'src/examples/efl_mono')
-rw-r--r--src/examples/efl_mono/Makefile.am31
1 files changed, 21 insertions, 10 deletions
diff --git a/src/examples/efl_mono/Makefile.am b/src/examples/efl_mono/Makefile.am
index 6bae1d9..12c379e 100644
--- a/src/examples/efl_mono/Makefile.am
+++ b/src/examples/efl_mono/Makefile.am
@@ -47,14 +47,16 @@ endif
47 47
48example_numberwrapper.c: example_numberwrapper.eo.h example_numberwrapper.eo.c 48example_numberwrapper.c: example_numberwrapper.eo.h example_numberwrapper.eo.c
49 49
50numberwrapper_lib_name = example_numberwrapper.out 50noinst_lib_LTLIBRARIES = libexample_numberwrapper.la
51noinst_libdir = $(abs_top_builddir)
51 52
52$(numberwrapper_lib_name): example_numberwrapper.c 53libexample_numberwrapper_la_SOURCES = example_numberwrapper.c
53 $(CC) -shared -o $@ $< -DEFL_BETA_API_SUPPORT -I. $(COMMON_FLAGS) 54libexample_numberwrapper_la_LDFLAGS = -shared
55libexample_numberwrapper_la_CFLAGS = $(COMMON_FLAGS) -DEFL_BETA_API_SUPPORT
54 56
55SRCS += example_numberwrapper.c 57SRCS += example_numberwrapper.c
56EXTRA_FILES += example_numberwrapper.eo 58EXTRA_FILES += example_numberwrapper.eo
57GENERATED += example_numberwrapper.eo.h example_numberwrapper.eo.c $(numberwrapper_lib_name) 59GENERATED += example_numberwrapper.eo.h example_numberwrapper.eo.c EoInherit01.exe.config
58 60
59# CSharp examples 61# CSharp examples
60 62
@@ -68,24 +70,33 @@ FunctionPointer01.exe
68 70
69example_numberwrapper.eo.cs: example_numberwrapper.eo 71example_numberwrapper.eo.cs: example_numberwrapper.eo
70 $(AM_V_EOLMONO) \ 72 $(AM_V_EOLMONO) \
71 $(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport $(numberwrapper_lib_name) -o $@ -r $(top_builddir)/src/bindings/mono/efl_mono/efl_libs.csv $< 73 $(EOLIAN_MONO) $(EOLIAN_FLAGS) $(EOLIAN_MONO_FLAGS) --dllimport example_numberwrapper -o $@ -r $(top_builddir)/src/bindings/mono/efl_mono/efl_libs.csv $<
72 74
73EoInherit01_exe_SOURCES = EoInherit01.cs 75EoInherit01_exe_SOURCES = EoInherit01.cs
74EoInherit01_srcs = $(EoInherit01_exe_SOURCES) example_numberwrapper.eo.cs 76EoInherit01_srcs = $(EoInherit01_exe_SOURCES) example_numberwrapper.eo.cs
75EoInherit01.exe$(EXEEXT): $(EoInherit01_srcs) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) $(numberwrapper_lib_name) 77EoInherit01.exe: $(EoInherit01_srcs) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll libexample_numberwrapper.la EoInherit01.exe.config
76 @rm -f $@ 78 @rm -f $@
77 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) -out:$@ $(filter %.cs, $(^)) 79 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^))
78 80
79$(abs_top_builddir)/EoInherit01.csproj: $(EoInherit01_srcs) $(am_dirstamp) $(numberwrapper_lib_name) 81$(abs_top_builddir)/EoInherit01.csproj: $(EoInherit01_srcs) $(am_dirstamp) $(numberwrapper_lib_name)
80 @rm -f $@ 82 @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, $(^))) 83 $(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, $(^)))
82 84EoInherit01.exe.config:
85 echo "<configuration>" > $@
86 echo " <dllmap dll=\"example_numberwrapper\" target=\"$(abs_top_builddir)/src/examples/efl_mono/.libs/libexample_numberwrapper.so\"/>" >> $@
87 echo " <dllmap dll=\"efl_mono\" target=\"$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll\"/>" >> $@
88 echo " <runtime>" >> $@
89 echo " <assemblyBinding xmlns=\"urn:schemas-microsoft-com:asm.v1\">" >> $@
90 echo " <probing privatePath=\"/home/felipe/dev/samsung/upstream/efl/build/src/lib/efl_mono\" />" >> $@
91 echo " </assemblyBinding>" >> $@
92 echo " </runtime>" >> $@
93 echo "</configuration>" >> $@
83 94
84FunctionPointer01_exe_SOURCES = FunctionPointer01.cs 95FunctionPointer01_exe_SOURCES = FunctionPointer01.cs
85FunctionPointer01_srcs = $(FunctionPointer01_exe_SOURCES) example_numberwrapper.eo.cs 96FunctionPointer01_srcs = $(FunctionPointer01_exe_SOURCES) example_numberwrapper.eo.cs
86FunctionPointer01.exe$(EXEEXT): $(FunctionPointer01_srcs) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) $(numberwrapper_lib_name) 97FunctionPointer01.exe: $(FunctionPointer01_srcs) $(am_dirstamp) $(top_builddir)/src/lib/efl_mono/libefl_mono.dll $(numberwrapper_lib_name)
87 @rm -f $@ 98 @rm -f $@
88 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll$(EXEEXT) -out:$@ $(filter %.cs, $(^)) 99 $(AM_V_MCS) $(MCS) $(MCS_FLAGS) -r:$(abs_top_builddir)/src/lib/efl_mono/libefl_mono.dll -out:$@ $(filter %.cs, $(^))
89 100
90$(abs_top_builddir)/FunctionPointer01.csproj: $(FunctionPointer01_srcs) $(am_dirstamp) $(numberwrapper_lib_name) 101$(abs_top_builddir)/FunctionPointer01.csproj: $(FunctionPointer01_srcs) $(am_dirstamp) $(numberwrapper_lib_name)
91 @rm -f $@ 102 @rm -f $@