Commit a94c06c7 authored by Chun-wei Fan's avatar Chun-wei Fan

build: Add a pre-configured config.h(.win32.in)

This adds a pre-configured config.h template that can be used for Visual
Studio builds, with the common items set.  Note that building gjs is going
to require Visual Studio 2013 or later, which this config.h is configured
to, as 2013 or later provide sufficient support that gjs requires for
C++-11.

The complete win32/config.h.win32 is generated during the configure stage,
so that we can ensure that we have the most up-to-date version info in it
during a release.

https://bugzilla.gnome.org/show_bug.cgi?id=775868
parent becac609
......@@ -158,6 +158,7 @@ EXTRA_DIST += \
doc/Class_Framework.md \
doc/SpiderMonkey_Memory.md \
doc/Style_Guide.md \
win32/config.h.win32 \
$(NULL)
# Colin's handy Makefile bits for:
......
......@@ -16,6 +16,7 @@ AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AC_REQUIRE_AUX_FILE([tap-driver.sh])
AC_SUBST(GJS_VERSION, m4_eval(pkg_int_version))
AC_DEFINE([GJS_VERSION], pkg_int_version, [The gjs version as an integer])
AC_SUBST([GETTEXT_PACKAGE], [gjs])
......@@ -221,7 +222,7 @@ AC_SUBST([gjsjsdir], [\${datadir}/gjs-1.0])
dnl automake 1.11/1.12 defines this but does not substitute it
AC_SUBST([pkglibexecdir], ["${libexecdir}/${PACKAGE}"])
AC_CONFIG_FILES([Makefile gjs-1.0.pc])
AC_CONFIG_FILES([Makefile gjs-1.0.pc win32/config.h.win32])
dnl Symlink the files from gobject-introspection's test libraries into the tree;
dnl Automake plans to drop support for compiling them in-place.
AC_CONFIG_LINKS([
......
/* config.h.win32.in. Handwritten, with generated version info from */
/* configure.ac for Windows builds */
/* Note: This is passed into as CXXFLAGS in Visual Studio builds */
/* Define if you want to build with cairo support */
/* #undef ENABLE_CAIRO */
/* Note: This is passed into as CXXFLAGS in Visual Studio builds */
/* Define if you want to build with GTK+ support */
/* #undef ENABLE_GTK */
/* The name of the gettext domain */
#define GETTEXT_PACKAGE "gjs"
/* The gjs version as an integer */
#define GJS_VERSION @GJS_VERSION@
/* define if the compiler supports basic C++11 syntax */
#define HAVE_CXX11 1
/* Define to 1 if you have the <dlfcn.h> header file. */
/* #undef HAVE_DLFCN_H */
/* Define to 1 if using dtrace probes. */
/* #undef HAVE_DTRACE */
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if printf() accepts '%Id' for alternative integer output */
#define HAVE_PRINTF_ALTERNATIVE_INT 1
/* Define to 1 if you have the <readline/readline.h> header file. */
/* #undef HAVE_READLINE_READLINE_H */
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* 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 <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 where 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@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment