RE: [INTERNALS-WIN] Re: [PHP-DEV] Q: What is the Config.w32 equivalent of PHP_ADD_MAKEFILE_FRAGMENT?
| From: | Eric Stenson | Date: | Tue, 26 May 2015 16:17:59 +0000 |
| Subject: | RE: [INTERNALS-WIN] Re: [PHP-DEV] Q: What is the Config.w32 equivalent of PHP_ADD_MAKEFILE_FRAGMENT? | ||
| References: | 1 2 3 | Groups: | php.internals php.internals.win |
| Request: | Send a blank email to internals+get-86392@lists.php.net to get a copy of this message | ||
-----Original Message-----
> From: Anatol Belski [mailto:anatol.php@belski.net]
[...]
> Can you please share what exactly you need it to do? Like the
> command sequence or alike, maybe there is already a way to do that.
I need to run the $(MC) command, with the '-um' option, which will create ETW message
macros & binary resources. The output is a .h, a .rc and a couple of .BIN files.
e.g.:
$(MC) -um -e h -h ..\pecl\wincache -r ..\pecl\wincache wincache_etw.man
I'm working around the lack of a fragment by running the $(MC) command by hand, an checking in
the results to the pecl\wincache directory, and hand-hacking the template.rc to #include the
resulting wincache_etw.rc. It kinda works, but it would be better if the building of the ETW
resources was automatic with make/nmake.
Even better would be to put the rendered .h, .rc & .bin files in the same directory as the
.obj's, so they could be cleaned up. The problem there is no way to pass an include directory
arg (-I<dir>) to the $(RC) command used for template.rc.
Thx!
--E.