Skip to content

Conversation

@petk
Copy link
Owner

@petk petk commented Jun 6, 2025

This adds a CMake-related template for generating the main/build-defs.h header.

The ODBC build configuration is moved to its own config.h (or php_config.h) header.

@petk petk force-pushed the patch-build-defs branch from 96c9660 to 919628c Compare June 9, 2025 14:52
Changes:
- This adds a CMake-related template for generating the `build-defs.h`
  header.
- The ODBC build configuration is moved to its own `config.h` (or
  `php_config.h`) header.
- Added `build-defs.h` also for Windows targets for simplicity of
  handling configuration header templates, although this separates the
  CMake-based and upstream build systems even more.
- Fixed build when using multi-config generators (Ninja Multi-Config,
  Visual Studio, etc.). This now generates `build-defs.h` and
  `php_config.h`/`config.w32.h` files in a separate directory
  `<CONFIG>/main`, where `<CONFIG>` is one of the build configurations
  (Debug, Release ...).
- Initial preparations to remove the redundant and complex
  PHP/ConfigureFile CMake module.
- Further fixes are needed but this now at least enables building PHP
  a bit better than before. PHP at this point is still not relocatable
  (to be able to utilize paths in a relative way, depending on the
  current executable).
@petk petk force-pushed the patch-build-defs branch from 919628c to 53407f2 Compare June 9, 2025 22:42
@petk petk merged commit 3435ddc into PHP-8.3 Jun 9, 2025
1 of 3 checks passed
@petk petk deleted the patch-build-defs branch June 9, 2025 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants