RE: [INTERNALS-WIN] Re: [PHP-DEV] Q: What is the Config.w32 equivalent of PHP_ADD_MAKEFILE_FRAGMENT?

[email protected] (Eric Stenson) Tue, 26 May 2015 16:17:59 +0000
Newsgroups php.internals,php.internals.win
Message-ID <BN1PR03MB105E87E509BD6B07486FF65D0CC0@BN1PR03MB105.namprd03.prod.outlook.com>
-----Original Message-----
> From: Anatol Belski [mailto:[email protected]] 
[...]
> 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.