[librsvg] Windows Builds: Add a Pre-Configured config.h Template



commit 8c90a816821061643260adeb9533e41046dc7555
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Aug 12 18:36:47 2015 +0800

    Windows Builds: Add a Pre-Configured config.h Template
    
    This adds a config.h.win32.in template that is processed during autogen/
    configure, in which the processed config.h.win32 can be later dist'ed so
    that Visual Studio project files can make use of this for building librsvg,
    since Visual Studio builds by themselves do not use autotools.
    
    Also add in the autotools build files so that this is processed, and this
    and the processed config.h.win32 is dist'ed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=753555

 Makefile.am       |    4 ++-
 config.h.win32.in |   94 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 configure.ac      |    1 +
 3 files changed, 98 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 341b557..382697e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -165,7 +165,9 @@ EXTRA_DIST =                                \
        librsvg-zip.in                  \
        gtk-doc.make                    \
        Rsvg-2.0-custom.vala            \
-       Rsvg-2.0.metadata
+       Rsvg-2.0.metadata               \
+       config.h.win32.in               \
+       config.h.win32
 
 CLEANFILES = \
        $(enum_sources) \
diff --git a/config.h.win32.in b/config.h.win32.in
new file mode 100644
index 0000000..8e298dc
--- /dev/null
+++ b/config.h.win32.in
@@ -0,0 +1,94 @@
+/* config.h.win32.in.  Manually Edited for Windows Builds.  */
+
+/* Define if building universal (internal helper macro) */
+/* #undef AC_APPLE_UNIVERSAL_BUILD */
+
+/* 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. */
+#if !defined (_MSC_VER) || (_MSC_VER >= 1800)
+#define HAVE_INTTYPES_H 1
+#endif
+
+/* Define if your <locale.h> file defines LC_MESSAGES. */
+/* #undef HAVE_LC_MESSAGES */
+
+/* Define to 1 if you have the <locale.h> header file. */
+#define HAVE_LOCALE_H 1
+
+/* 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 !defined (_MSC_VER) || (_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. */
+#ifndef _MSC_VER
+#define HAVE_STRINGS_H 1
+#endif
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the `strtok_r' function. */
+/* #undef HAVE_STRTOK_R */
+
+/* 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. */
+#ifndef _MSC_VER
+#define HAVE_UNISTD_H 1
+#endif
+
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+   */
+#define LT_OBJDIR ".libs/"
+
+/* Name of package */
+#define PACKAGE "@PACKAGE@"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "@PACKAGE_NAME@"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "@PACKAGE_NAME@ @PACKAGE_VERSION@"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "@PACKAGE_TARNAME@"
+
+/* Define to the home page for this package. */
+#define PACKAGE_URL ""
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "@PACKAGE_VERSION@"
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Version number of package */
+#define VERSION "@PACKAGE_VERSION@"
+
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
+   significant byte first (like Motorola and SPARC, unlike Intel). */
+#if defined AC_APPLE_UNIVERSAL_BUILD
+# if defined __BIG_ENDIAN__
+#  define WORDS_BIGENDIAN 1
+# endif
+#else
+# ifndef WORDS_BIGENDIAN
+#  undef WORDS_BIGENDIAN
+# endif
+#endif
diff --git a/configure.ac b/configure.ac
index 85981fe..68f1ea3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -272,6 +272,7 @@ tests/pdiff/Makefile
 tools/Makefile
 doc/Makefile
 doc/version.xml
+config.h.win32
 ])
 
 AC_CONFIG_FILES([librsvg-${RSVG_API_VERSION}.pc:librsvg.pc.in],[],[RSVG_API_VERSION=$RSVG_API_VERSION])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]