Re: [GD-DEVEL] GD build process
[email protected] (Chris Reuter) Wed, 30 Oct 2013 23:39:36 +0000
| Newsgroups | php.gd.devel |
|---|---|
| Organization | No, not right. Necessary. |
| Message-ID | <[email protected]> |
[email protected] (Pierre Joye) writes: > On Wed, Oct 30, 2013 at 8:49 PM, Chris Reuter <[email protected]> wrote: >> [email protected] (Pierre Joye) writes: >> >>> hi Chris! >>> >>> On Wed, Oct 30, 2013 at 12:08 AM, Chris Reuter <[email protected]> wrote: >>>> >>>> Hi Folks, >>>> >>>> I notice that there are two sets of build scripts in GD: one for GNU >>>> autoconf and one for CMake. Which of these is the preferred method for >>>> building GD? >> [...] >> >>> cmake should work. Which problem(s) have you met? >> >> Beyond having to deal with Windows, the current one is that cmake >> doesn't generate gd.h from gd.h.in. > > It does generate it on Windows? Hm. I have to fix that then. > >> Actually, I'll look into that. I'd like to get rid of gd.h.in in favor >> of moving the generated stuff to a small corner of the program. >> (Basically, provide functions that return the version info and turn the >> #defines into calls to them. This means the version will be correct in >> programs using GD when the libgd shared library is updated. It also >> reduces the complexity of the build process and makes the code a little >> easier to hack on.) > > Makes sense :) Don't we have one already in 2.1? I've got it mostly done now. I'll send you a pull request once I've got it cleaned up, since it expands the API a bit and you might want to review it. >>> We maintain both. autotools are used for linux (distros, embedded >>> systems or cross compilation). Cmake is used on all supported >>> platforms and windows. >> >> Hmmm. Would we lose anything by ditching autotools? If cmake handles >> everything, it might make sense to switch to just that, rather than >> maintain two build systems. > > We need autotools for many supported systems. CMake does not work for them. Ah. And presumably autoconf won't support Visual Studio, so we still need cmake. Too bad. --Chris -- Chris Reuter http://www.blit.ca "You further agree that we are entitled to rely upon any electronic agreement that we receive from you ... regardless of whether or not the agreement was actually sent or accepted by you." --Mortgage agreement, unnamed Canadian bank