php-src/ext/gd
Arnaud Le Blanc 11accb5cdf
Preferably include from build dir (#13516)
* Include from build dir first

This fixes out of tree builds by ensuring that configure artifacts are included
from the build dir.

Before, out of tree builds would preferably include files from the src dir, as
the include path was defined as follows (ignoring includes from ext/ and sapi/) :

    -I$(top_builddir)/main
    -I$(top_srcdir)
    -I$(top_builddir)/TSRM
    -I$(top_builddir)/Zend
    -I$(top_srcdir)/main
    -I$(top_srcdir)/Zend
    -I$(top_srcdir)/TSRM
    -I$(top_builddir)/

As a result, an out of tree build would include configure artifacts such as
`main/php_config.h` from the src dir.

After this change, the include path is defined as follows:

    -I$(top_builddir)/main
    -I$(top_builddir)
    -I$(top_srcdir)/main
    -I$(top_srcdir)
    -I$(top_builddir)/TSRM
    -I$(top_builddir)/Zend
    -I$(top_srcdir)/Zend
    -I$(top_srcdir)/TSRM

* Fix extension include path for out of tree builds

* Include config.h with the brackets form

`#include "config.h"` searches in the directory containing the including-file
before any other include path. This can include the wrong config.h when building
out of tree and a config.h exists in the source tree.

Using `#include <config.h>` uses exclusively the include path, and gives
priority to the build dir.
2024-06-26 00:26:43 +02:00
..
libgd gd: change uses of sprintf into snprintf 2024-06-14 08:12:03 -07:00
tests ext/gd: iamgeresolution checks overflow. (#14585) 2024-06-16 23:28:04 +01:00
config.m4 Add PHP_SETUP_ZLIB M4 macro (#14591) 2024-06-21 15:05:34 +02:00
config.w32 Sync headers installation 2024-01-28 19:50:55 +01:00
CREDITS Convert GD Resources to objects 2019-09-30 15:14:02 +02:00
gd_arginfo.h Implement "support doc comments for internal classes and functions" (#13266) 2024-02-25 08:41:31 +01:00
gd_compat.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
gd_compat.h cleanup gd build with system libgd - drop need to use libpng with system libgd - drop need to use libjpeg with system libgd - drop need to use libXpm with system libgd - drop need to use libfreetype with system libgd - improve configure comments 2019-07-22 16:14:19 +02:00
gd.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
gd.stub.php ext/gd: imagerotate removes ignore_transparent argument. 2023-06-19 12:32:08 +01:00
php_gd.h Declare ext/gd constants in stubs (#9180) 2022-07-30 15:18:06 +02:00