Build gtestutils etc on OS_UNIX only.
authorTor Lillqvist <tml@novell.com>
Sun, 25 Nov 2007 21:39:42 +0000 (21:39 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sun, 25 Nov 2007 21:39:42 +0000 (21:39 +0000)
2007-11-25  Tor Lillqvist  <tml@novell.com>

* glib/Makefile.am: Build gtestutils etc on OS_UNIX only.

svn path=/trunk/; revision=5934

ChangeLog
glib/Makefile.am

index b4e0abca415c5a10b11065e622ce587b3fadbdac..0bb4ff762f23d8d15fb87719bfbf83319143361f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-25  Tor Lillqvist  <tml@novell.com>
+
+       * glib/Makefile.am: Build gtestutils etc on OS_UNIX only.
+
 2007-11-25  Matthias Clasen  <mclasen@redhat.com>
 
        * configure.in: Require gtk-doc 1.8.
index 7e270cb9e406ca806e092ee070f4ec1064f9e801..115dad99e2738df7f3433f98369a19474a70dd79 100644 (file)
@@ -19,7 +19,13 @@ gregex_c =
 gregex_h =
 endif
 
-SUBDIRS = libcharset $(PRINTF_SUBDIR) $(MAYBE_PCRE) update-pcre . tests
+if OS_UNIX
+gtestutils_c = gtestutils.c
+gtestutils_h = gtestutils.h
+tests_subdir = tests
+endif
+
+SUBDIRS = libcharset $(PRINTF_SUBDIR) $(MAYBE_PCRE) update-pcre . $(tests_subdir)
 
 DIST_SUBDIRS = libcharset gnulib pcre update-pcre
 
@@ -140,7 +146,7 @@ libglib_2_0_la_SOURCES =    \
        gstdio.c                \
        gstrfuncs.c             \
        gstring.c               \
-       gtestutils.c            \
+       $(gtestutils_c)         \
        gthread.c               \
        gthreadprivate.h        \
        gthreadpool.c           \
@@ -221,7 +227,7 @@ glibsubinclude_HEADERS =   \
        gspawn.h        \
        gstdio.h        \
        gstrfuncs.h     \
-       gtestutils.h    \
+       $(gtestutils_h) \
        gstring.h       \
        gthread.h       \
        gthreadpool.h   \
@@ -304,10 +310,13 @@ endif
 
 bin_PROGRAMS    = ${INSTALL_PROGS}
 
+if OS_UNIX
+
 INSTALL_PROGS  += gtester
 gtester_SOURCES         = gtester.c
 gtester_LDADD   = libglib-2.0.la
 
+endif
 
 glib-2.0.lib: libglib-2.0.la glib.def
        lib -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:glib.def -out:$@