--- a/configure.ac	2011-01-24 13:26:24 +0800
+++ b/configure.ac	2011-01-25 14:32:08 +0800
@@ -171,6 +171,7 @@
         build/autotools/Makefile
         build/win32/Makefile
         build/win32/vs9/Makefile
+        build/win32/config.h.win32
 
         json-glib/Makefile
         json-glib/json-version.h
--- a/json-glib/Makefile.am	2011-01-24 13:26:24 +0800
+++ b/json-glib/Makefile.am	2011-01-25 14:29:47 +0800
@@ -85,7 +85,7 @@
 	$(top_srcdir)/json-glib/json-glib.h		\
 	$(NULL)
 
-EXTRA_DIST += json-version.h.in json-glib.h
+EXTRA_DIST += json-version.h.in json-glib.h json-version.h
 
 TESTS_ENVIRONMENT = srcdir="$(srcdir)" json_all_c_sources="$(source_c)"
 
@@ -116,5 +116,17 @@
 
 EXTRA_DIST += json-glib.symbols
 
+dist-hook: ../build/win32/vs9/json-glib.vcproj
+
+../build/win32/vs9/json-glib.vcproj: ../build/win32/vs9/json-glib.vcprojin
+	for F in $(libjson_glib_1_0_la_SOURCES); do \
+		case $$F in \
+		*.c) echo '   <File RelativePath="..\..\..\json-glib\'$$F'" />' \
+		     ;; \
+		esac; \
+	done >jsonglib.sourcefiles
+	$(CPP) -P - <$(top_srcdir)/build/win32/vs9/json-glib.vcprojin >$@
+	rm jsonglib.sourcefiles
+
 gcov_sources = $(source_c)
 include $(top_srcdir)/build/autotools/Makefile.am.gcov
--- a/build/win32/Makefile.am	2011-01-24 13:26:24 +0800
+++ b/build/win32/Makefile.am	2011-01-25 14:28:09 +0800
@@ -1,3 +1,3 @@
 SUBDIRS = vs9
 
-EXTRA_DIST = config.h.win32 json-version.h.win32
+EXTRA_DIST = config.h.win32 config.h.win32.in
--- a/build/win32/vs9/Makefile.am	2011-01-24 13:26:24 +0800
+++ b/build/win32/vs9/Makefile.am	2011-01-25 14:08:33 +0800
@@ -7,6 +7,7 @@
 	install.vcproj			\
 	json-glib.sln			\
 	json-glib.vcproj		\
+	json-glib.vcprojin		\
 	json-glib.vsprops		\
 	node-test.vcproj		\
 	object-test.vcproj		\
--- a/build/win32/json-version.h.win32	2011-01-24 13:26:24 +0800
+++ /dev/null	2011-01-25 14:56:10 +0800
@@ -1,100 +0,0 @@
-/* json-version.h - JSON-GLib versioning information
- * 
- * This file is part of JSON-GLib
- * Copyright (C) 2007  OpenedHand Ltd.
- * Copyright (C) 2009  Intel Corp.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- *
- * Author:
- *   Emmanuele Bassi  <ebassi@linux.intel.com>
- */
-
-#if !defined(__JSON_GLIB_INSIDE__) && !defined(JSON_COMPILATION)
-#error "Only <json-glib/json-glib.h> can be included directly."
-#endif
-
-#ifndef __JSON_VERSION_H__
-#define __JSON_VERSION_H__
-
-/**
- * SECTION:json-version
- * @short_description: JSON-GLib version checking
- *
- * JSON-GLib provides macros to check the version of the library
- * at compile-time
- */
-
-/**
- * JSON_MAJOR_VERSION:
- *
- * Json major version component (e.g. 1 if %JSON_VERSION is 1.2.3)
- */
-#define JSON_MAJOR_VERSION              0
-
-/**
- * JSON_MINOR_VERSION:
- *
- * Json minor version component (e.g. 2 if %JSON_VERSION is 1.2.3)
- */
-#define JSON_MINOR_VERSION              12
-
-/**
- * JSON_MICRO_VERSION:
- *
- * Json micro version component (e.g. 3 if %JSON_VERSION is 1.2.3)
- */
-#define JSON_MICRO_VERSION              0
-
-/**
- * JSON_VERSION
- *
- * Json version.
- */
-#define JSON_VERSION                    (0.12.0)
-
-/**
- * JSON_VERSION_S:
- *
- * Json version, encoded as a string, useful for printing and
- * concatenation.
- */
-#define JSON_VERSION_S                  "0.12.0"
-
-/**
- * JSON_VERSION_HEX:
- *
- * Json version, encoded as an hexadecimal number, useful for
- * integer comparisons.
- */
-#define JSON_VERSION_HEX                (JSON_MAJOR_VERSION << 24 | \
-                                         JSON_MINOR_VERSION << 16 | \
-                                         JSON_MICRO_VERSION << 8)
-
-/**
- * JSON_CHECK_VERSION:
- * @major: required major version
- * @minor: required minor version
- * @micro: required micro version
- *
- * Compile-time version checking. Evaluates to %TRUE if the version
- * of Json is greater than the required one.
- */
-#define JSON_CHECK_VERSION(major,minor,micro)   \
-        (JSON_MAJOR_VERSION > (major) || \
-         (JSON_MAJOR_VERSION == (major) && JSON_MINOR_VERSION > (minor)) || \
-         (JSON_MAJOR_VERSION == (major) && JSON_MINOR_VERSION == (minor) && \
-          JSON_MICRO_VERSION >= (micro)))
-
-#endif /* __JSON_VERSION_H__ */
--- a/build/win32/config.h.win32	2011-01-24 13:26:24 +0800
+++ /dev/null	2011-01-25 14:56:26 +0800
@@ -1,61 +0,0 @@
-/* config.h.in.  Generated from configure.ac by autoheader.  */
-
-/* Define to 1 if you have the <dlfcn.h> header file. */
-/*#undef HAVE_DLFCN_H*/
-
-/* Define to 1 if you have the <inttypes.h> header file. */
-/*#undef HAVE_INTTYPES_H*/
-
-/* Define to 1 if you have the <memory.h> header file. */
-#define HAVE_MEMORY_H 1
-
-/* Define to 1 if you have the <stdint.h> header file. */
-#if (_MSC_VER >= 1600)
-#define HAVE_STDINT_H 1
-#endif
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#define HAVE_STDLIB_H 1
-
-/* Define to 1 if you have the <strings.h> header file. */
-/*#undef HAVE_STRINGS_H*/
-
-/* Define to 1 if you have the <string.h> header file. */
-#define HAVE_STRING_H 1
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#define HAVE_SYS_STAT_H 1
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#define HAVE_SYS_TYPES_H 1
-
-/* Define to 1 if you have the <unistd.h> header file. */
-/*#undef HAVE_UNISTD_H*/
-
-/* Define to the sub-directory in which libtool stores uninstalled libraries.
-   */
-#define LT_OBJDIR "./"
-
-/* Define to 1 if your C compiler doesn't accept -c and -o together. */
-#define NO_MINUS_C_MINUS_O 1
-
-/* Define to the address where bug reports for this package should be sent. */
-#define PACKAGE_BUGREPORT "fanc999@gmail.com"
-
-/* Define to the full name of this package. */
-#define PACKAGE_NAME "json-glib"
-
-/* Define to the full name and version of this package. */
-#define PACKAGE_STRING "json-glib 0.12.0"
-
-/* Define to the one symbol short name of this package. */
-#define PACKAGE_TARNAME "json-glib"
-
-/* Define to the home page for this package. */
-#define PACKAGE_URL "http://live.gnome.org/JsonGlib"
-
-/* Define to the version of this package. */
-#define PACKAGE_VERSION "0.12.0"
-
-/* Define to 1 if you have the ANSI C header files. */
-#define STDC_HEADERS 1
--- /dev/null	2011-01-25 14:56:40 +0800
+++ b/build/win32/config.h.win32.in	2011-01-24 13:35:32 +0800
@@ -0,0 +1,61 @@
+/* config.h.in.  Generated from configure.ac by autoheader.  */
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+/*#undef HAVE_DLFCN_H*/
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+/*#undef HAVE_INTTYPES_H*/
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#if (_MSC_VER >= 1600)
+#define HAVE_STDINT_H 1
+#endif
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+/*#undef HAVE_STRINGS_H*/
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+/*#undef HAVE_UNISTD_H*/
+
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+   */
+#define LT_OBJDIR ".libs/"
+
+/* Define to 1 if your C compiler doesn't accept -c and -o together. */
+#define NO_MINUS_C_MINUS_O 1
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib"
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "json-glib"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "json-glib @JSON_MAJOR_VERSION@.@JSON_MINOR_VERSION@.@JSON_MICRO_VERSION@"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "json-glib"
+
+/* Define to the home page for this package. */
+#define PACKAGE_URL ""
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "@JSON_MAJOR_VERSION@.@JSON_MINOR_VERSION@.@JSON_MICRO_VERSION@"
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
