efl_mono: fix test and example compilation on Windows
authorVitor Sousa <vitorsousasilva@gmail.com>
Sat, 16 Dec 2017 00:09:43 +0000 (22:09 -0200)
committerVitor Sousa <vitorsousasilva@gmail.com>
Sat, 16 Dec 2017 00:26:30 +0000 (22:26 -0200)
src/Makefile_Efl_Mono.am
src/examples/efl_mono/Makefile.am
src/tests/efl_mono/mono_test_driver.sh

index ad45a22..4715fff 100644 (file)
@@ -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 "  <dllmap dll=\"elementary\" target=\"$(abs_top_builddir)/src/lib/elementary/.libs/libelementary.so\"/>" >> $@
        echo "</configuration>" >> $@
 
-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) \
index 9f696fa..fe271e9 100644 (file)
@@ -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
index e8e8772..fc8f448 100755 (executable)
@@ -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}