add nmakefile fragment for pdo parser

This commit is contained in:
Anatol Belski 2017-01-04 03:49:39 +01:00
parent 797e119682
commit 3fc1ec22ea
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,5 @@
ext\pdo\pdo_sql_parser.c: ext\pdo\pdo_sql_parser.re
cd $(PHP_SRC_DIR)
$(RE2C) --no-generation-date -o ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re

View File

@ -6,5 +6,6 @@ ARG_ENABLE("pdo", "Enable PHP Data Objects support", "no");
if (PHP_PDO != "no") {
EXTENSION('pdo', 'pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c', false /* force static, PHP_PDO_SHARED is broken yet somehow */);
ADD_EXTENSION_DEP('pdo', 'spl', true);
ADD_MAKEFILE_FRAGMENT();
PHP_INSTALL_HEADERS("ext/pdo", "php_pdo.h php_pdo_driver.h php_pdo_error.h");
}