Re: Building PHP, questions
The main platforms are supposed to be Windows, Linux and Mac. The largest problem that I am
encountering is with the varity of compilers and build systems. The build system I am working has an
auto-detect feature for compilers, and can handle compiling in a rather fast way (its about to learn
parallel building by default). Building PHP on Windows is a pita, if you cant use Visual Studio’s
command line - I am usualy building with mingw, but trying to make mingw portable, is problematic.
In the end, the project will be capable of packing userdata into its binary, by creating a zip file,
converting it into a C string (char array) and then running it. But most users won’t have a build
system or such, so I am trying to create some kind of „automatic build“ - which can easily be
achieved with the build system that I am using. Once it’s few files are compiled, it works cross
platform and can handle anything from selecting compilers to generating files. Its less of a hassle
than letting people set up mingw first - cause I can just ship a portable version of MinGW that can
do the job.
It probably sounds much like gibberish, because I am kind of sleepy too. But in general, I want to
avoid making even more dependencies. Theo the rlibrarys in use were ported from CMake and are
relatively small. So I wanted to port PHP to that build system to keep things in one place.
Am 13.03.2014 um 19:59 schrieb Johannes Schlüter <[email protected]>:
> On Thu, 2014-03-13 at 19:50 +0100, Kevin Ingwersen wrote:
>> Hey.
>>
>> Yes, all dependencies are being ported to that build system. PHP is
>> the biggest dependency though. There are many scripting languages I
>> like, that are even small (ph7, objectscript) - but I trust the
>> original PHP the most - so I wish to use it in my project. Hence, to
>> make it compatible with my project, I also need to make it build-able
>> in my project.
>
> what kind of platform/system is that, that not even cross-compiling
> (which isn't fully supported but still simpler than recreating a build
> system) and statically linking won't work?
>
> johannes
>
Thread (9 messages)