com php-src: add nmakefile fragment for json: ext/json/Makefile.frag.w32 ext/json/config.w32
| From: | Anatol Belski | Date: | Wed, 04 Jan 2017 11:41:47 +0000 |
| Subject: | com php-src: add nmakefile fragment for json: ext/json/Makefile.frag.w32 ext/json/config.w32 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-96536@lists.php.net to get a copy of this message | ||
Commit: 25ee9465d1c7043f4302329c901fecd38597b634
Author: Anatol Belski <ab@php.net> Wed, 4 Jan 2017 12:41:47 +0100
Parents: 380073b1fc81e935ea661ae6c0137628e4f709cd
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=25ee9465d1c7043f4302329c901fecd38597b634
Log:
add nmakefile fragment for json
Changed paths:
A ext/json/Makefile.frag.w32
M ext/json/config.w32
Diff:
diff --git a/ext/json/Makefile.frag.w32 b/ext/json/Makefile.frag..w32
new file mode 100644
index 0000000..eaf47e2
--- /dev/null
+++ b/ext/json/Makefile.frag.w32
@@ -0,0 +1,6 @@
+
+ext\json\json_scanner..c: ext\json\json_scanner.re
+ $(RE2C) -t ext/json/php_json_scanner_defs.h --no-generation-date -bci -o ext/json/json_scanner.c
ext/json/json_scanner.re
+
+ext\json\json_parser.tab.c: ext\json\json_parser.y
+ $(BISON) --defines -l ext/json/json_parser.y -o ext/json/json_parser.tab.c
diff --git a/ext/json/config.w32 b/ext/json/config.w32
index c37d9a9..05f6e65 100644
--- a/ext/json/config.w32
+++ b/ext/json/config.w32
@@ -17,6 +17,8 @@ if (PHP_JSON != "no") {
ADD_SOURCES(configure_module_dirname, "json_encoder.c json_parser.tab.c json_scanner.c",
"json");
+ ADD_MAKEFILE_FRAGMENT();
+
PHP_INSTALL_HEADERS("ext/json/", "php_json.h");
}