1// vim:ft=javascript 2 3EXTENSION("date", "php_date.c", false, "/Iext/date/lib /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /DHAVE_TIMELIB_CONFIG_H=1"); 4PHP_DATE = "yes"; 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"); 6 7ADD_FLAG('CFLAGS_DATE', "/wd4244"); 8 9var tl_config = FSO.CreateTextFile("ext/date/lib/timelib_config.h", true); 10tl_config.WriteLine("#include \"config.w32.h\""); 11tl_config.WriteLine("#include <php_stdint.h>"); 12tl_config.WriteLine("#include \"zend.h\""); 13tl_config.WriteLine("#define timelib_malloc emalloc"); 14tl_config.WriteLine("#define timelib_realloc erealloc"); 15tl_config.WriteLine("#define timelib_calloc ecalloc"); 16tl_config.WriteLine("#define timelib_strdup estrdup"); 17tl_config.WriteLine("#define timelib_free efree"); 18tl_config.Close(); 19 20PHP_INSTALL_HEADERS("ext/date/", "php_date.h lib/timelib.h lib/timelib_config.h"); 21AC_DEFINE('HAVE_TIMELIB_CONFIG_H', 1, 'Have timelib_config.h') 22