xref: /PHP-5.6/ext/date/config.w32 (revision 11102e26)
1// $Id$
2// vim:ft=javascript
3
4EXTENSION("date", "php_date.c", false, "/Iext/date/lib /DHAVE_TIMELIB_CONFIG_H=1");
5ADD_SOURCES("ext/date/lib", "astro.c timelib.c dow.c parse_date.c parse_tz.c tm2unixtime.c unixtime2tm.c parse_iso_intervals.c interval.c", "date");
6AC_DEFINE('HAVE_DATE', 1, 'Have date/time support');
7
8ADD_FLAG('CFLAGS_DATE', "/wd4244");
9
10var tl_config = FSO.CreateTextFile("ext/date/lib/timelib_config.h", true);
11tl_config.WriteLine("#include \"config.w32.h\"");
12tl_config.WriteLine("#include <php_stdint.h>");
13tl_config.WriteLine("#include \"win32/php_inttypes.h\"");
14tl_config.WriteLine("#define TIMELIB_OMIT_STDINT 1");
15tl_config.WriteLine("#define TIMELIB_FORCE_LONG32 1");
16tl_config.Close();
17
18PHP_INSTALL_HEADERS("ext/date/", "php_date.h lib/timelib.h lib/timelib_structs.h lib/timelib_config.h");
19AC_DEFINE('HAVE_TIMELIB_CONFIG_H', 1, 'Have timelib_config.h')
20