[platform_win32=no]
)
AC_MSG_RESULT([$platform_win32])
+AM_CONDITIONAL(OS_WIN32, [test "$platform_win32" = "yes"])
AC_SUBST(CLUTTER_LT_VERSION)
AC_SUBST(CLUTTER_LT_LDFLAGS)
test_conformance_SOURCES = $(common_sources) $(units_sources)
+if OS_WIN32
+SHEXT =
+else
+SHEXT = $(EXEEXT)
+endif
+
# For convenience, this provides a way to easily run individual unit tests:
.PHONY: wrappers clean-wrappers
do \
unit=`basename $$i | sed -e s/_/-/g`; \
echo " GEN $$unit"; \
- ( echo "#!/bin/sh" ; echo "$(abs_builddir)/test-launcher.sh '$$i' \"\$$@\"" ) > $$unit$(EXEEXT) ; \
- ( echo "#!/bin/sh" ; echo "exec $(abs_builddir)/test-conformance$(EXEEXT) -p $$i \"\$$@\"" ) > wrappers/$$unit$(EXEEXT) ; \
- chmod +x $$unit$(EXEEXT); \
- chmod +x wrappers/$$unit$(EXEEXT); \
- echo "/$$unit$(EXEEXT)" >> .gitignore; \
+ ( echo "#!/bin/sh" ; echo "$(abs_builddir)/test-launcher.sh '$$i' \"\$$@\"" ) > $$unit$(SHEXT) ; \
+ ( echo "#!/bin/sh" ; echo "exec $(abs_builddir)/test-conformance$(EXEEXT) -p $$i \"\$$@\"" ) > wrappers/$$unit$(SHEXT) ; \
+ chmod +x $$unit$(SHEXT); \
+ chmod +x wrappers/$$unit$(SHEXT); \
+ echo "/$$unit$(SHEXT)" >> .gitignore; \
done \
&& echo timestamp > $(@F)
do \
unit=`basename $$i | sed -e s/_/-/g`; \
echo " RM $$unit"; \
- rm -f $$unit$(EXEEXT) ; \
- rm -f wrappers/$$unit$(EXEEXT) ; \
+ rm -f $$unit$(SHEXT) ; \
+ rm -f wrappers/$$unit$(SHEXT) ; \
done \
&& rm -f unit-tests \
&& rm -f stamp-test-conformance
UNIT_TESTS += test-pixmap.c test-devices.c
endif
+if OS_WIN32
+SHEXT =
+else
+SHEXT = $(EXEEXT)
+endif
+
# For convenience, this provides a way to easily run individual unit tests:
wrappers: stamp-test-interactive
@true
echo " GEN $$test_bin" ; \
( echo "#!/bin/sh" ; \
echo "$$wrapper $$test_bin \$$@" \
- ) > $$test_bin$(EXEEXT) ; \
- chmod +x $$test_bin$(EXEEXT) ; \
- echo "/$$test_bin$(EXEEXT)" >> .gitignore ; \
+ ) > $$test_bin$(SHEXT) ; \
+ chmod +x $$test_bin$(SHEXT) ; \
+ echo "/$$test_bin$(SHEXT)" >> .gitignore ; \
done \
&& echo timestamp > $(@F)
do \
test_bin=$${i%*.c} ; \
echo " RM $$test_bin"; \
- rm -f $$test_bin$(EXEEXT); \
+ rm -f $$test_bin$(SHEXT); \
done \
&& rm -f stamp-test-interactive