RE: [INTERNALS-WIN] Re: [PHP-DEV] Q: What is the Config.w32 equivalent of PHP_ADD_MAKEFILE_FRAGMENT?
| From: | Anatol Belski | Date: | Thu, 21 May 2015 09:19:52 +0000 |
| Subject: | RE: [INTERNALS-WIN] Re: [PHP-DEV] Q: What is the Config.w32 equivalent of PHP_ADD_MAKEFILE_FRAGMENT? | ||
| References: | 1 2 | Groups: | php.internals php.internals.win |
| Request: | Send a blank email to internals+get-86340@lists.php.net to get a copy of this message | ||
Hi Eric,
> -----Original Message-----
> From: Ferenc Kovacs [mailto:tyra3l@gmail.com]
> Sent: Thursday, May 21, 2015 10:29 AM
> To: Eric Stenson; internals-win@lists.php.net
> Cc: internals@lists.php.net
> Subject: [INTERNALS-WIN] Re: [PHP-DEV] Q: What is the Config.w32 equivalent
> of PHP_ADD_MAKEFILE_FRAGMENT?
>
> On Thu, May 21, 2015 at 1:12 AM, Eric Stenson <ericsten@microsoft.com>
> wrote:
>
> > Internals folks--
> >
> > I'm trying to add something...complicated to a PECL extension, and I
> > need to add some custom dependency rules to the Makefile.
> >
> > Specifically, I'm compiling a manifest file using 'mc', which produces
> > both a .h file and a .rc file. I need to ensure the 'mc' command runs
> > before the compilation of the .c files that depend upon the header
> > being generated.
> >
> > With the Config.m4, there's the PHP_ADD_MAKEFILE_FRAGMENT directive,
> > that magically pulls in the Makefile.frag in the same directory as the
> > extension. Is there an equivalent directive for Config.w32?
> >
Regarding manifests I'm currently investigating as well. Basically because of the win10
versioning which now might require us to include manifests. Please read here https://bugs.php.net/bug.php?id=69642 . Generally I
see, that manifests will be already picked up when they exist. You can inspect the makefile
currently generated to see how it is done.
But there's no functionality to include fragments. There is just a template in
win32\build\Makefile which is then extended by the configure.js run. 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. Of course we can also implement embedding fragments. Though that might most likely require
slightly different code for PHP 5/7 and won't be available in earlier releases.
Regards
Anatol