From 1cbeff0a7e78a0d81dbdba6b59443bf0c46ea102 Mon Sep 17 00:00:00 2001 From: cyberemissary Date: Wed, 2 Jan 2019 05:17:25 -0500 Subject: [PATCH] Add config for building on windows --- README.md | 9 +++++++++ extension/php5/config.w32 | 6 ++++++ extension/php7/config.w32 | 6 ++++++ 3 files changed, 21 insertions(+) create mode 100644 extension/php5/config.w32 create mode 100644 extension/php7/config.w32 diff --git a/README.md b/README.md index 9c5a8ca..6cf06bd 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,15 @@ $ make $ make install ``` +### On Windows +Extract contents of one of the above mentioned directories to `[php-src]/../pecl/php-meminfo` + +```bash +$ buildconf +$ configure --enable-meminfo +$ nmake +``` + ## Enabling the extension Add the following line to your `php.ini`: diff --git a/extension/php5/config.w32 b/extension/php5/config.w32 new file mode 100644 index 0000000..2dc7bf9 --- /dev/null +++ b/extension/php5/config.w32 @@ -0,0 +1,6 @@ +ARG_ENABLE("meminfo", "Enable Meminfo support", "no"); + +if (PHP_MEMINFO = "yes") { + AC_DEFINE('HAVE_MEMINFO', 1, '[Whether you have Memory Info]'); + EXTENSION("meminfo", "meminfo.c"); +} diff --git a/extension/php7/config.w32 b/extension/php7/config.w32 new file mode 100644 index 0000000..2dc7bf9 --- /dev/null +++ b/extension/php7/config.w32 @@ -0,0 +1,6 @@ +ARG_ENABLE("meminfo", "Enable Meminfo support", "no"); + +if (PHP_MEMINFO = "yes") { + AC_DEFINE('HAVE_MEMINFO', 1, '[Whether you have Memory Info]'); + EXTENSION("meminfo", "meminfo.c"); +}