php-src/ext/com_dotnet
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
..
tests Merge branch 'PHP-8.2' into PHP-8.3 2024-05-20 23:27:51 +02:00
com_com.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
com_dotnet.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
com_extension_arginfo.h Do not generate frameless info items when func info generation is disabled 2024-02-18 11:39:00 +01:00
com_extension.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
com_extension.stub.php Rename @cname to @cvalue in stubs (#9043) 2022-07-19 15:11:42 +02:00
com_handlers.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
com_iterator.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
com_misc.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
com_olechar.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
com_persist_arginfo.h Do not generate frameless info items when func info generation is disabled 2024-02-18 11:39:00 +01:00
com_persist.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
com_persist.stub.php Generate class entries from stubs for com, standard, xmlreader, xmlwriter, xsl, zip, Zend 2021-02-22 15:24:03 +01:00
com_saproxy.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
com_typeinfo.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
com_variant.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
com_wrapper.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
config.w32 Remove unused Git attributes ident 2018-07-25 00:53:25 +02:00
CREDITS
php_com_dotnet_internal.h Revert "Port all internally used classes to use default_object_handlers" 2022-09-14 11:13:23 +02:00
php_com_dotnet.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00