|
1 | 1 | Subject: Add CMake changes for PHP-8.4 branch |
2 | 2 |
|
3 | | -- EditorConfig adjustments for code style support in editors and IDEs |
4 | | -- CMake build system files added to .gitignore |
5 | | -- CMake added to run-tests.php for info about failing tests and checks |
6 | | -- CMakeLists.txt template and modifications added to ext/skeleton |
| 3 | +* CMake added to run-tests.php for info about failing tests and checks |
7 | 4 | --- |
8 | | - .editorconfig | 2 +- |
9 | | - .gitignore | 43 ++++++++++++++++++++++++++++++++++++++ |
10 | | - ext/ext_skel.php | 1 + |
11 | | - ext/skeleton/.gitignore.in | 21 +++++++++++++++++++ |
12 | | - run-tests.php | 24 +++++++++++++++------ |
13 | | - 5 files changed, 84 insertions(+), 7 deletions(-) |
| 5 | + run-tests.php | 24 ++++++++++++++++++------ |
| 6 | + 1 file changed, 18 insertions(+), 6 deletions(-) |
14 | 7 |
|
15 | | -diff --git a/.editorconfig b/.editorconfig |
16 | | -index 7911bf8490..0ca142015f 100644 |
17 | | ---- a/.editorconfig |
18 | | -+++ b/.editorconfig |
19 | | -@@ -17,7 +17,7 @@ indent_style = tab |
20 | | - indent_size = 4 |
21 | | - indent_style = space |
22 | | - |
23 | | --[*.{ac,m4,sh,yml}] |
24 | | -+[{CMakeLists.txt,*.{ac,cmake,json,m4,sh,yml}}] |
25 | | - indent_size = 2 |
26 | | - indent_style = space |
27 | | - |
28 | | -diff --git a/.gitignore b/.gitignore |
29 | | -index d54334f599..db362020fe 100644 |
30 | | ---- a/.gitignore |
31 | | -+++ b/.gitignore |
32 | | -@@ -297,3 +297,46 @@ tmp-php.ini |
33 | | - !/ext/dom/lexbor/patches/*.patch |
34 | | - !/ext/pcre/pcre2lib/config.h |
35 | | - !/win32/build/Makefile |
36 | | -+ |
37 | | -+# ------------------------------------------------------------------------------ |
38 | | -+# CMake-based build system files |
39 | | -+# ------------------------------------------------------------------------------ |
40 | | -+cmake_install.cmake |
41 | | -+CMakeCache.txt |
42 | | -+CMakeFiles/ |
43 | | -+ |
44 | | -+# Generated by FetchContent |
45 | | -+/_deps/ |
46 | | -+ |
47 | | -+# Graphviz generated files |
48 | | -+/*.dependers |
49 | | -+/*.dot |
50 | | -+ |
51 | | -+# Generated by the Ninja build system |
52 | | -+/.ninja* |
53 | | -+/build.ninja |
54 | | -+ |
55 | | -+# Local user presets |
56 | | -+/CMakeUserPresets.json |
57 | | -+ |
58 | | -+# Generated when CMAKE_EXPORT_COMPILE_COMMANDS is enabled |
59 | | -+/compile-commands.json |
60 | | -+ |
61 | | -+# Generated by ctest |
62 | | -+/CTestTestfile.cmake |
63 | | -+/Testing/ |
64 | | -+ |
65 | | -+# CMake script profiling data output (--profiling-output <path>) |
66 | | -+/profile.json |
67 | | -+ |
68 | | -+# Generated by QT Creator |
69 | | -+CMakeLists.txt.user |
70 | | -+ |
71 | | -+# Generated by XCode |
72 | | -+CMakeScripts/ |
73 | | -+ |
74 | | -+# Generated by cmake --install |
75 | | -+/install_manifest.txt |
76 | | -+ |
77 | | -+# Generated by cmake when cross-compiling if missing cache variables are found |
78 | | -+/TryRunResults.cmake |
79 | | -diff --git a/ext/ext_skel.php b/ext/ext_skel.php |
80 | | -index ae7a3a987c..648e3728b8 100755 |
81 | | ---- a/ext/ext_skel.php |
82 | | -+++ b/ext/ext_skel.php |
83 | | -@@ -302,6 +302,7 @@ function copy_config_scripts() { |
84 | | - $files[] = 'config.w32'; |
85 | | - } |
86 | | - |
87 | | -+ $files[] = 'CMakeLists.txt'; |
88 | | - $files[] = '.gitignore'; |
89 | | - |
90 | | - foreach($files as $config_script) { |
91 | | -diff --git a/ext/skeleton/.gitignore.in b/ext/skeleton/.gitignore.in |
92 | | -index e691bd3964..fff9fc09d0 100644 |
93 | | ---- a/ext/skeleton/.gitignore.in |
94 | | -+++ b/ext/skeleton/.gitignore.in |
95 | | -@@ -45,3 +45,24 @@ tests/**/*.db |
96 | | - tests/**/*.mem |
97 | | - tmp-php.ini |
98 | | - *~ |
99 | | -+ |
100 | | -+# ------------------------------------------------------------------------------ |
101 | | -+# CMake-based build system files |
102 | | -+# ------------------------------------------------------------------------------ |
103 | | -+/_deps/ |
104 | | -+/.ninja* |
105 | | -+/*.dependers |
106 | | -+/*.dot |
107 | | -+/build.ninja |
108 | | -+/CMakeUserPresets.json |
109 | | -+/compile-commands.json |
110 | | -+/CTestTestfile.cmake |
111 | | -+/install_manifest.txt |
112 | | -+/profile.json |
113 | | -+/Testing/ |
114 | | -+cmake_install.cmake |
115 | | -+CMakeCache.txt |
116 | | -+CMakeFiles/ |
117 | | -+CMakeLists.txt.user |
118 | | -+CMakeScripts/ |
119 | | -+/TryRunResults.cmake |
120 | 8 | diff --git a/run-tests.php b/run-tests.php |
121 | | -index 1c9511130c..0341ffff4c 100755 |
| 9 | +index 5587c6c0ae..ff5932bfde 100755 |
122 | 10 | --- a/run-tests.php |
123 | 11 | +++ b/run-tests.php |
124 | 12 | @@ -865,10 +865,12 @@ function write_information(array $user_tests, $phpdbg): void |
|
0 commit comments