From: Vitor Sousa Date: Sat, 16 Dec 2017 00:09:43 +0000 (-0200) Subject: efl_mono: fix test and example compilation on Windows X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~1107 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b55542889baaec9ae25ce13d2804d5123f040cc6;p=platform%2Fupstream%2Fefl.git efl_mono: fix test and example compilation on Windows --- diff --git a/src/Makefile_Efl_Mono.am b/src/Makefile_Efl_Mono.am index ad45a22..4715fff 100644 --- a/src/Makefile_Efl_Mono.am +++ b/src/Makefile_Efl_Mono.am @@ -352,16 +352,17 @@ tests/efl_mono/libefl_mono_test.dll: $(efl_mono_test_eolian_mono_files) tests/ef AM_TESTS_ENVIRONMENT += MONO='mono'; export MONO; AM_TESTS_ENVIRONMENT += MONO_BUILDPATH='$(abs_top_builddir)'; export MONO_BUILDPATH; AM_TESTS_ENVIRONMENT += MONO_PATH='$(TEST_PATHS)'; export MONO_PATH; +AM_TESTS_ENVIRONMENT += EXEEXT='$(EXEEXT)'; export EXEEXT; if HAVE_WIN32 AM_TESTS_ENVIRONMENT += PATH='$(PATH):$(TEST_PATHS):$(WIN_ADD_TEST_PATHS)'; export PATH; else AM_TESTS_ENVIRONMENT += LD_LIBRARY_PATH='$(LD_LIBRARY_PATH):$(TEST_PATHS)'; export LD_LIBRARY_PATH; endif -check_PROGRAMS += tests/efl_mono/efl_mono.exe +check_PROGRAMS += tests/efl_mono/efl_mono TESTS += tests/efl_mono/mono_test_driver.sh -tests_efl_mono_efl_mono_exe_SOURCES = \ +tests_efl_mono_efl_mono_SOURCES = \ tests/efl_mono/Main.cs \ tests/efl_mono/Eina.cs \ tests/efl_mono/Eldbus.cs \ @@ -384,12 +385,10 @@ lib/efl_mono/libefl_mono.dll.config: echo " " >> $@ echo "" >> $@ -tests/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 - @rm -f tests/efl_mono/efl_mono.exe +tests/efl_mono/efl_mono$(EXEEXT): $(tests_efl_mono_efl_mono_SOURCES) tests/efl_mono/$(am__dirstamp) lib/efl_mono/libefl_mono.dll tests/efl_mono/libefl_mono_test.dll + @rm -f $@ $(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, $(^)) -###EXTRA_DIST2 += $(tests_efl_mono_efl_mono_exe_srcs) - # Rule for generating the .cs files tests/efl_mono/%.eo.cs: tests/efl_mono/%.eo $(_EOLIAN_MONO_DEP) $(AM_V_EOLMONO) \ diff --git a/src/examples/efl_mono/Makefile.am b/src/examples/efl_mono/Makefile.am index 9f696fa..fe271e9 100644 --- a/src/examples/efl_mono/Makefile.am +++ b/src/examples/efl_mono/Makefile.am @@ -51,7 +51,7 @@ noinst_lib_LTLIBRARIES = libexample_numberwrapper.la noinst_libdir = $(abs_top_builddir) libexample_numberwrapper_la_SOURCES = example_numberwrapper.c -libexample_numberwrapper_la_LDFLAGS = -shared +libexample_numberwrapper_la_LDFLAGS = -shared @EFL_LTMODULE_FLAGS@ libexample_numberwrapper_la_CFLAGS = $(COMMON_FLAGS) -DEFL_BETA_API_SUPPORT GENERATED += example_numberwrapper.eo.h example_numberwrapper.eo.c EoInherit01$(EXEEXT).config diff --git a/src/tests/efl_mono/mono_test_driver.sh b/src/tests/efl_mono/mono_test_driver.sh index e8e8772..fc8f448 100755 --- a/src/tests/efl_mono/mono_test_driver.sh +++ b/src/tests/efl_mono/mono_test_driver.sh @@ -1,5 +1,5 @@ #!/bin/sh echo $LD_LIBRARY_PATH -EINA_LOG_LEVEL=8 MONO_LOG_LEVEL=debug $MONO $MONO_BUILDPATH/src/tests/efl_mono/efl_mono.exe +EINA_LOG_LEVEL=8 MONO_LOG_LEVEL=debug $MONO $MONO_BUILDPATH/src/tests/efl_mono/efl_mono${EXEEXT}