Skip to content

Commit 1cbeff0

Browse files
committed
Add config for building on windows
1 parent e961afa commit 1cbeff0

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ $ make
2929
$ make install
3030
```
3131

32+
### On Windows
33+
Extract contents of one of the above mentioned directories to `[php-src]/../pecl/php-meminfo`
34+
35+
```bash
36+
$ buildconf
37+
$ configure --enable-meminfo
38+
$ nmake
39+
```
40+
3241
## Enabling the extension
3342
Add the following line to your `php.ini`:
3443

extension/php5/config.w32

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ARG_ENABLE("meminfo", "Enable Meminfo support", "no");
2+
3+
if (PHP_MEMINFO = "yes") {
4+
AC_DEFINE('HAVE_MEMINFO', 1, '[Whether you have Memory Info]');
5+
EXTENSION("meminfo", "meminfo.c");
6+
}

extension/php7/config.w32

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ARG_ENABLE("meminfo", "Enable Meminfo support", "no");
2+
3+
if (PHP_MEMINFO = "yes") {
4+
AC_DEFINE('HAVE_MEMINFO', 1, '[Whether you have Memory Info]');
5+
EXTENSION("meminfo", "meminfo.c");
6+
}

0 commit comments

Comments
 (0)