Skip to content

Add config for building on windows #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:

Expand Down
6 changes: 6 additions & 0 deletions extension/php5/config.w32
Original file line number Diff line number Diff line change
@@ -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");
}
6 changes: 6 additions & 0 deletions extension/php7/config.w32
Original file line number Diff line number Diff line change
@@ -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");
}