Can you use scons to build PHP extensions? -


the standard way of writing php extensions use autoconf/automake alongside script called phpize, seems generate autoconf configuration based on template that's specific php environment. let's build php extension right version of php, etc.

autoconf , m4 language used configure arcane, , people have written alternatives, such scons. want able use 1 of these when building php extension.

in principle, should able use scons or similar tools build php extensions. however, can't see how replace phpize step.

has had success in building php extensions scons, or more modern build tool?

the path of least resistance have scons run autoconf, phpize , whatever else needed php extension. may able extract compiler configuration out of there , let scons actual building, or can have scons run "make".

declaring shell command targets scons easy, getting dependencies right tricky.

basically have let scons know of intermediate file produced these external tools. way can not clean them, can cache whole series of steps based on content signature of each intermediate result (md5 checksum).

proper caching reduce number of times these external tools need invoked code base changes.

while don't think has written specific solution php, there lots of custom builders on scons wiki similar things.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -