Merge branch 'master' into msvc-support-master
authorChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 29 Sep 2011 08:33:02 +0000 (16:33 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 29 Sep 2011 08:33:02 +0000 (16:33 +0800)
Conflicts:
tests/interactive/Makefile.am

1  2 
configure.ac
tests/interactive/Makefile.am

diff --cc configure.ac
Simple merge
@@@ -72,9 -72,9 +72,9 @@@ SHEXT = $(EXEEXT
  endif
  
  # For convenience, this provides a way to easily run individual unit tests:
 -wrappers: stamp-test-interactive
 +wrappers: stamp-test-interactive ../../build/win32/test-interactive.bat
        @true
- stamp-test-interactive: Makefile test-interactive$(EXEEXT)
+ stamp-test-interactive: Makefile
        @wrapper=$(abs_builddir)/wrapper.sh ; \
        chmod +x $$wrapper && \
        ( echo "/stamp-test-interactive" ; \
        done \
        && echo timestamp > $(@F)
  
 +../../build/win32/test-interactive.bat: Makefile test-interactive$(EXEEXT)
 +      echo "  GEN    test-interactive.bat" ; \
 +      for i in $(UNIT_TESTS); \
 +      do \
 +              case $$i in \
 +              test-pixmap.c|test-devices.c) ;; \
 +              *.c)    test_bin=$${i%*.c} \
 +                      ;; \
 +              esac; \
 +              ( echo "test-interactive $$test_bin" ) > $$test_bin.bat ; \
 +              ( echo "test-interactive $$test_bin" ) >> test-interactive.bat ; \
 +      done \
 +      && cp *.bat $(top_srcdir)/build/win32/
 +
+ test-unit-names.h: stamp-test-unit-names
+       @true
+ stamp-test-unit-names: Makefile
+       @( echo "/* ** This file is autogenerated. Do not edit. ** */" ; \
+         echo "" ; \
+         echo "const char *test_unit_names[] = {" ) > test-unit-names.h ; \
+       for i in $(UNIT_TESTS); \
+       do \
+               test_bin=$${i%*.c} ; \
+               echo "  \"$$test_bin\"," >> test-unit-names.h ; \
+       done \
+       && echo "};" >> test-unit-names.h \
+       && echo timestamp > $(@F)
  clean-wrappers:
        @for i in $(UNIT_TESTS); \
        do \
@@@ -142,48 -143,8 +159,48 @@@ test_interactive_LDFLAGS = -export-dyna
  test_interactive_LDADD = $(CLUTTER_LIBS) $(common_ldadd) -lm
  
  EXTRA_DIST = wrapper.sh.in
- DISTCLEANFILES = wrapper.sh .gitignore
+ DISTCLEANFILES = wrapper.sh .gitignore test-unit-names.h
  
- BUILT_SOURCES = wrappers
+ BUILT_SOURCES = wrappers test-unit-names.h
  
 +dist-hook: ../../build/win32/vs9/test-interactive.vcproj ../../build/win32/vs10/test-interactive.vcxproj ../../build/win32/vs10/test-interactive.vcxproj.filters
 +
 +../../build/win32/vs9/test-interactive.vcproj: $(top_srcdir)/build/win32/vs9/test-interactive.vcprojin
 +      for F in $(test_interactive_SOURCES); do \
 +              case $$F in \
 +              test-pixmap.c|test-devices.c) ;; \
 +              *.c)    echo '   <File RelativePath="..\..\..\tests\interactive\'$$F'" />' \
 +                      ;; \
 +              esac; \
 +      done >testinteractive.sourcefiles
 +      $(CPP) -P - <$(top_srcdir)/build/win32/vs9/test-interactive.vcprojin >$@
 +      rm testinteractive.sourcefiles
 +      
 +../../build/win32/vs10/test-interactive.vcxproj: $(top_srcdir)/build/win32/vs10/test-interactive.vcxprojin
 +      for F in $(test_interactive_SOURCES); do \
 +              case $$F in \
 +              test-pixmap.c|test-devices.c) ;; \
 +              *.c)    echo '    <ClCompile Include="..\..\..\tests\interactive\'$$F'" />' \
 +                      ;; \
 +              esac; \
 +      done >testinteractive.vs10.sourcefiles
 +      $(CPP) -P - <$(top_srcdir)/build/win32/vs10/test-interactive.vcxprojin >$@
 +      rm testinteractive.vs10.sourcefiles
 +      
 +../../build/win32/vs10/test-interactive.vcxproj.filters: $(top_srcdir)/build/win32/vs10/test-interactive.vcxproj.filtersin
 +      for F in $(test_interactive_SOURCES); do \
 +              case $$F in \
 +              test-pixmap.c|test-devices.c) ;; \
 +              *.c)    echo '    <ClCompile Include="..\..\..\tests\interactive\'$$F'"><Filter>Sources</Filter></ClCompile>' \
 +                      ;; \
 +              esac; \
 +      done >testinteractive.vs10.sourcefiles.filters
 +      $(CPP) -P - <$(top_srcdir)/build/win32/vs10/test-interactive.vcxproj.filtersin >$@
 +      rm testinteractive.vs10.sourcefiles.filters
 +
 +# Let the VS9/VS10 Project files be cleared out before they are re-expanded...
 +DISTCLEANFILES += ../../build/win32/vs9/test-interactive.vcproj       \
 +                ../../build/win32/vs10/test-interactive.vcxproj       \
 +                ../../build/win32/vs10/test-interactive.vcxproj.filters
 +
  clean-local: clean-wrappers