File tree Expand file tree Collapse file tree 8 files changed +254
-39
lines changed Expand file tree Collapse file tree 8 files changed +254
-39
lines changed Original file line number Diff line number Diff line change @@ -26,5 +26,5 @@ trim_trailing_whitespace = false
26
26
[COMMIT_EDITMSG ]
27
27
max_line_length = 80
28
28
29
- [{CMakeLists.txt,* .{cmake,cmake.in}} ]
29
+ [{CMakeLists.{ txt,txt.in} ,* .{cmake,cmake.in}} ]
30
30
indent_size = 2
Original file line number Diff line number Diff line change @@ -81,10 +81,6 @@ mark_as_advanced(ZEND_MAX_EXECUTION_TIMERS)
81
81
add_library (zend OBJECT )
82
82
add_library (Zend::Zend ALIAS zend )
83
83
84
- file (GLOB _zend_headers ${CMAKE_CURRENT_SOURCE_DIR} /*.h )
85
- # Exclude Windows header and specify it below separately.
86
- list (FILTER _zend_headers EXCLUDE REGEX ".*zend_config\\ .w32\\ .h$" )
87
-
88
84
target_sources (
89
85
zend
90
86
PRIVATE
@@ -183,8 +179,102 @@ target_sources(
183
179
PUBLIC
184
180
FILE_SET HEADERS
185
181
FILES
186
- ${_zend_headers}
182
+ zend_alloc_sizes.h
183
+ zend_alloc.h
184
+ zend_API.h
185
+ zend_arena.h
186
+ zend_ast.h
187
+ zend_atomic.h
188
+ zend_attributes_arginfo.h
189
+ zend_attributes.h
190
+ zend_bitset.h
191
+ zend_build.h
192
+ zend_builtin_functions_arginfo.h
193
+ zend_builtin_functions.h
194
+ zend_call_stack.h
195
+ zend_closures_arginfo.h
196
+ zend_closures.h
197
+ zend_compile.h
187
198
$< $< PLATFORM_ID:Windows> :zend_config.w32.h>
199
+ zend_constants_arginfo.h
200
+ zend_constants.h
201
+ zend_cpuinfo.h
202
+ zend_dtrace.h
203
+ zend_enum_arginfo.h
204
+ zend_enum.h
205
+ zend_errors.h
206
+ zend_exceptions_arginfo.h
207
+ zend_exceptions.h
208
+ zend_execute.h
209
+ zend_extensions.h
210
+ zend_fibers_arginfo.h
211
+ zend_fibers.h
212
+ zend_float.h
213
+ zend_gc.h
214
+ zend_gdb.h
215
+ zend_generators_arginfo.h
216
+ zend_generators.h
217
+ zend_globals_macros.h
218
+ zend_globals.h
219
+ zend_hash.h
220
+ zend_highlight.h
221
+ zend_hrtime.h
222
+ zend_inheritance.h
223
+ zend_ini_parser.h
224
+ zend_ini_scanner_defs.h
225
+ zend_ini_scanner.h
226
+ zend_ini.h
227
+ zend_interfaces_arginfo.h
228
+ zend_interfaces.h
229
+ zend_istdiostream.h
230
+ zend_iterators.h
231
+ zend_language_parser.h
232
+ zend_language_scanner_defs.h
233
+ zend_language_scanner.h
234
+ zend_list.h
235
+ zend_llist.h
236
+ zend_long.h
237
+ zend_map_ptr.h
238
+ zend_max_execution_timer.h
239
+ zend_mmap.h
240
+ zend_modules.h
241
+ zend_multibyte.h
242
+ zend_multiply.h
243
+ zend_object_handlers.h
244
+ zend_objects_API.h
245
+ zend_objects.h
246
+ zend_observer.h
247
+ zend_operators.h
248
+ zend_portability.h
249
+ zend_ptr_stack.h
250
+ zend_range_check.h
251
+ zend_signal.h
252
+ zend_smart_str_public.h
253
+ zend_smart_str.h
254
+ zend_smart_string_public.h
255
+ zend_smart_string.h
256
+ zend_sort.h
257
+ zend_stack.h
258
+ zend_stream.h
259
+ zend_string.h
260
+ zend_strtod_int.h
261
+ zend_strtod.h
262
+ zend_system_id.h
263
+ zend_type_info.h
264
+ zend_types.h
265
+ zend_variables.h
266
+ zend_virtual_cwd.h
267
+ zend_vm_def.h
268
+ zend_vm_execute.h
269
+ zend_vm_handlers.h
270
+ zend_vm_opcodes.h
271
+ zend_vm_trace_handlers.h
272
+ zend_vm_trace_lines.h
273
+ zend_vm_trace_map.h
274
+ zend_vm.h
275
+ zend_weakrefs_arginfo.h
276
+ zend_weakrefs.h
277
+ zend.h
188
278
Optimizer/zend_call_graph.h
189
279
Optimizer/zend_cfg.h
190
280
Optimizer/zend_dfg.h
Original file line number Diff line number Diff line change @@ -139,12 +139,12 @@ target_sources(
139
139
PUBLIC
140
140
FILE_SET HEADERS
141
141
FILES
142
+ gd_arginfo.h
143
+ gd_compat.h
142
144
php_gd.h
143
145
)
144
146
145
147
if (NOT EXT_GD_EXTERNAL )
146
- file (GLOB _php_gd_libgd_headers ${CMAKE_CURRENT_SOURCE_DIR} /libgd/*.h )
147
-
148
148
target_sources (
149
149
php_gd
150
150
PRIVATE
@@ -191,7 +191,21 @@ if(NOT EXT_GD_EXTERNAL)
191
191
PUBLIC
192
192
FILE_SET HEADERS
193
193
FILES
194
- ${_php_gd_libgd_headers}
194
+ libgd/bmp.h
195
+ libgd/gd_errors.h
196
+ libgd/gd_intern.h
197
+ libgd/gd_io.h
198
+ libgd/gd_tga.h
199
+ libgd/gd.h
200
+ libgd/gdcache.h
201
+ libgd/gdfontg.h
202
+ libgd/gdfontl.h
203
+ libgd/gdfontmb.h
204
+ libgd/gdfonts.h
205
+ libgd/gdfontt.h
206
+ libgd/gdhelpers.h
207
+ libgd/jisx0208.h
208
+ libgd/wbmp.h
195
209
)
196
210
197
211
set (HAVE_GD_BUNDLED 1 CACHE INTERNAL "Whether the bundled libgd is used" )
Original file line number Diff line number Diff line change @@ -50,10 +50,6 @@ else()
50
50
add_library (php_mysqlnd )
51
51
endif ()
52
52
53
- file (GLOB _php_mysqlnd_headers ${CMAKE_CURRENT_SOURCE_DIR} /*.h )
54
- # Exclude Windows header and specify it below separately.
55
- list (FILTER _php_mysqlnd_headers EXCLUDE REGEX ".*config-win\\ .h$" )
56
-
57
53
target_sources (
58
54
php_mysqlnd
59
55
PRIVATE
@@ -82,8 +78,33 @@ target_sources(
82
78
PUBLIC
83
79
FILE_SET HEADERS
84
80
FILES
85
- ${_php_mysqlnd_headers}
86
81
$< $< PLATFORM_ID:Windows> :config-win.h>
82
+ mysql_float_to_double.h
83
+ mysqlnd_alloc.h
84
+ mysqlnd_auth.h
85
+ mysqlnd_block_alloc.h
86
+ mysqlnd_charset.h
87
+ mysqlnd_commands.h
88
+ mysqlnd_connection.h
89
+ mysqlnd_debug.h
90
+ mysqlnd_enum_n_def.h
91
+ mysqlnd_ext_plugin.h
92
+ mysqlnd_libmysql_compat.h
93
+ mysqlnd_plugin.h
94
+ mysqlnd_portability.h
95
+ mysqlnd_priv.h
96
+ mysqlnd_protocol_frame_codec.h
97
+ mysqlnd_ps.h
98
+ mysqlnd_read_buffer.h
99
+ mysqlnd_result_meta.h
100
+ mysqlnd_result.h
101
+ mysqlnd_reverse_api.h
102
+ mysqlnd_statistics.h
103
+ mysqlnd_structs.h
104
+ mysqlnd_vio.h
105
+ mysqlnd_wireprotocol.h
106
+ mysqlnd.h
107
+ php_mysqlnd.h
87
108
)
88
109
89
110
target_compile_definitions (php_mysqlnd PRIVATE ZEND_ENABLE_STATIC_TSRMLS_CACHE=1 )
Original file line number Diff line number Diff line change @@ -111,15 +111,6 @@ else()
111
111
message (STATUS "Using bundled PCRE library" )
112
112
113
113
block ()
114
- file (GLOB headers ${CMAKE_CURRENT_SOURCE_DIR} /pcre2lib/*.h )
115
-
116
- # Exclude PCRE2 library config.h header as it uses the
117
- # HAVE_PCRE_VALGRIND_SUPPORT provided via compile definition by generator
118
- # expressions (not available in the PHP configuration headers). It isn't
119
- # required to use public headers. Perhaps more could be filtered and synced
120
- # with upstream PCRE installed headers.
121
- list (FILTER headers EXCLUDE REGEX ".*config\\ .h$" )
122
-
123
114
target_sources (
124
115
php_pcre
125
116
PRIVATE
@@ -154,7 +145,18 @@ else()
154
145
PUBLIC
155
146
FILE_SET HEADERS
156
147
FILES
157
- ${headers}
148
+ # Exclude PCRE2 library config.h header as it uses the
149
+ # HAVE_PCRE_VALGRIND_SUPPORT provided via compile definition by
150
+ # generator expressions (not available in the PHP configuration
151
+ # headers). It isn't required to use public headers. Perhaps more
152
+ # could be filtered and synced with upstream PCRE installed headers.
153
+ #pcre2lib/config.h
154
+ pcre2lib/pcre2_internal.h
155
+ pcre2lib/pcre2_intmodedep.h
156
+ pcre2lib/pcre2_jit_neon_inc.h
157
+ pcre2lib/pcre2_jit_simd_inc.h
158
+ pcre2lib/pcre2_ucp.h
159
+ pcre2lib/pcre2.h
158
160
)
159
161
endblock ()
160
162
Original file line number Diff line number Diff line change @@ -34,10 +34,6 @@ add_feature_info(
34
34
35
35
add_library (php_standard STATIC )
36
36
37
- file (GLOB _php_standard_headers ${CMAKE_CURRENT_SOURCE_DIR} /*.h )
38
- # Exclude Windows header and specify it below separately.
39
- list (FILTER _php_standard_headers EXCLUDE REGEX ".*winver\\ .h$" )
40
-
41
37
target_sources (
42
38
php_standard
43
39
PRIVATE
@@ -113,7 +109,69 @@ target_sources(
113
109
PUBLIC
114
110
FILE_SET HEADERS
115
111
FILES
116
- ${_php_standard_headers}
112
+ base64.h
113
+ basic_functions_arginfo.h
114
+ basic_functions.h
115
+ crc32_x86.h
116
+ crc32.h
117
+ credits_ext.h
118
+ credits_sapi.h
119
+ credits.h
120
+ crypt_blowfish.h
121
+ crypt_freesec.h
122
+ css.h
123
+ datetime.h
124
+ dir_arginfo.h
125
+ dl_arginfo.h
126
+ dl.h
127
+ exec.h
128
+ file_arginfo.h
129
+ file .h
130
+ flock_compat.h
131
+ fsock.h
132
+ head.h
133
+ html_tables.h
134
+ html.h
135
+ info.h
136
+ md5.h
137
+ pack.h
138
+ pageinfo.h
139
+ php_array.h
140
+ php_assert.h
141
+ php_browscap.h
142
+ php_crypt_r.h
143
+ php_crypt.h
144
+ php_dir.h
145
+ php_dns.h
146
+ php_ext_syslog.h
147
+ php_filestat.h
148
+ php_fopen_wrappers.h
149
+ php_http.h
150
+ php_image.h
151
+ php_incomplete_class.h
152
+ php_lcg.h
153
+ php_mail.h
154
+ php_math.h
155
+ php_mt_rand.h
156
+ php_net.h
157
+ php_password.h
158
+ php_rand.h
159
+ php_random.h
160
+ php_smart_string_public.h
161
+ php_smart_string.h
162
+ php_standard.h
163
+ php_string.h
164
+ php_uuencode.h
165
+ php_var.h
166
+ php_versioning.h
167
+ proc_open.h
168
+ quot_print.h
169
+ scanf.h
170
+ sha1.h
171
+ streamsfuncs.h
172
+ url_scanner_ex.h
173
+ url.h
174
+ user_filters_arginfo.h
117
175
$< $< PLATFORM_ID:Windows> :winver.h>
118
176
)
119
177
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ include(FeatureSummary)
4
4
add_library (php_main STATIC )
5
5
add_library (PHP::main ALIAS php_main )
6
6
7
- file (GLOB_RECURSE _php_main_headers ${CMAKE_CURRENT_SOURCE_DIR} /*.h )
8
-
9
7
target_sources (
10
8
php_main
11
9
PRIVATE
@@ -47,11 +45,46 @@ target_sources(
47
45
streams/xp_socket.c
48
46
strlcat.c
49
47
strlcpy.c
50
- ${PHP_BINARY_DIR} /main/build-defs.h
51
48
PUBLIC
52
49
FILE_SET HEADERS
53
50
FILES
54
- ${_php_main_headers}
51
+ fastcgi.h
52
+ fopen_wrappers.h
53
+ http_status_codes.h
54
+ main_arginfo.h
55
+ php_compat.h
56
+ php_content_types.h
57
+ php_getopt.h
58
+ php_globals.h
59
+ php_ini_builder.h
60
+ php_ini.h
61
+ php_main.h
62
+ php_memory_streams.h
63
+ php_network.h
64
+ php_odbc_utils.h
65
+ php_open_temporary_file.h
66
+ php_output.h
67
+ php_reentrancy.h
68
+ php_scandir.h
69
+ php_streams.h
70
+ php_syslog.h
71
+ php_ticks.h
72
+ php_variables.h
73
+ php_version.h
74
+ php.h
75
+ rfc1867.h
76
+ SAPI.h
77
+ snprintf.h
78
+ spprintf.h
79
+ streams/php_stream_context.h
80
+ streams/php_stream_filter_api.h
81
+ streams/php_stream_glob_wrapper.h
82
+ streams/php_stream_mmap.h
83
+ streams/php_stream_plain_wrapper.h
84
+ streams/php_stream_transport.h
85
+ streams/php_stream_userspace.h
86
+ streams/php_streams_int.h
87
+ streams/userspace_arginfo.h
55
88
# A separate file set so binary dir can also be created within a source dir.
56
89
PUBLIC
57
90
FILE_SET HEADERS
@@ -125,12 +158,9 @@ target_link_libraries(
125
158
# Link publicly for PHP SAPIs.
126
159
PUBLIC
127
160
PHP::configuration
161
+ $< $< TARGET_EXISTS:PHP::win32> :PHP::win32>
128
162
)
129
163
130
- if (TARGET PHP::win32 )
131
- target_link_libraries (php_main PUBLIC PHP::win32 )
132
- endif ()
133
-
134
164
# Add DTrace.
135
165
if (PHP_DTRACE )
136
166
message (CHECK_START "Checking for DTrace support" )
You can’t perform that action at this time.
0 commit comments