xref: /PHP-7.3/ext/sqlite3/config.w32 (revision 8d3f8ca1)
1// vim:ft=javascript
2
3ARG_WITH("sqlite3", "SQLite 3 support", "no");
4
5if (PHP_SQLITE3 != "no") {
6	ADD_FLAG("CFLAGS_SQLITE3", "/D SQLITE_THREADSAFE=" + (PHP_ZTS == "yes" ? "1" : "0") + " /D SQLITE_ENABLE_FTS3=1 /D SQLITE_ENABLE_FTS4=1 /D SQLITE_ENABLE_FTS5=1 /D SQLITE_ENABLE_JSON1=1 /D SQLITE_ENABLE_COLUMN_METADATA=1 /D SQLITE_CORE=1 /D SQLITE_API=__declspec(dllexport) ");
7	EXTENSION("sqlite3", "sqlite3.c", null, "/I" + configure_module_dirname + "/libsqlite /I" + configure_module_dirname + " /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
8
9	ADD_SOURCES(configure_module_dirname + "/libsqlite", "sqlite3.c", "sqlite3");
10
11	AC_DEFINE("HAVE_SQLITE3", 1, "SQLite support");
12	AC_DEFINE("HAVE_SQLITE3_ERRSTR", 1, "have sqlite3_errstr function")
13	AC_DEFINE("HAVE_SQLITE3_CLOSE_V2", 1, "have sqlite3_close_v2")
14	PHP_INSTALL_HEADERS("ext/sqlite3", "libsqlite/sqlite3.h");
15}
16