Skip to content

Commit cc931b8

Browse files
committed
Sync CS
1 parent ed99481 commit cc931b8

File tree

4 files changed

+108
-8
lines changed

4 files changed

+108
-8
lines changed

cmake/cmake/ConfigureChecks.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -623,10 +623,10 @@ php_search_libraries(
623623
resolv # Solaris 2.6..7
624624
network # Haiku
625625
ws2_32 # Windows
626-
VARIABLE _HAVE_INET_NTOP
626+
VARIABLE PHP_HAS_INET_NTOP
627627
TARGET php_config INTERFACE
628628
)
629-
if(NOT _HAVE_INET_NTOP)
629+
if(NOT PHP_HAS_INET_NTOP)
630630
message(FATAL_ERROR "Cannot find 'inet_ntop()' which is required.")
631631
endif()
632632

@@ -641,10 +641,10 @@ php_search_libraries(
641641
resolv # Solaris 2.6..7
642642
network # Haiku
643643
ws2_32 # Windows
644-
VARIABLE _HAVE_INET_PTON
644+
VARIABLE PHP_HAS_INET_PTON
645645
TARGET php_config INTERFACE
646646
)
647-
if(NOT _HAVE_INET_PTON)
647+
if(NOT PHP_HAS_INET_PTON)
648648
message(FATAL_ERROR "Required inet_pton not found.")
649649
endif()
650650

cmake/cmake/presets/windows.json

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"version": 4,
3+
"configurePresets": [
4+
{
5+
"name": "windows",
6+
"displayName": "Windows configuration",
7+
"description": "PHP configuration for Windows",
8+
"binaryDir": "${sourceDir}/php-build/windows",
9+
"installDir": "C:/temp",
10+
"cacheVariables": {
11+
"PHP_EXT_COM_DOTNET": false,
12+
"PHP_EXT_CTYPE": false,
13+
"PHP_EXT_DOM": false,
14+
"PHP_EXT_FILEINFO": false,
15+
"PHP_EXT_FILTER": false,
16+
"PHP_EXT_ICONV": false,
17+
"PHP_EXT_LIBXML": false,
18+
"PHP_EXT_OPCACHE": false,
19+
"PHP_EXT_PDO": false,
20+
"PHP_EXT_PDO_SQLITE": false,
21+
"PHP_EXT_PHAR": false,
22+
"PHP_EXT_POSIX": false,
23+
"PHP_EXT_SESSION": false,
24+
"PHP_EXT_SIMPLEXML": false,
25+
"PHP_EXT_SQLITE3": false,
26+
"PHP_EXT_TOKENIZER": false,
27+
"PHP_EXT_XML": false,
28+
"PHP_EXT_XMLREADER": false,
29+
"PHP_EXT_XMLWRITER": false,
30+
31+
"PHP_SAPI_CGI": false,
32+
"PHP_SAPI_PHPDBG": false,
33+
34+
"CMAKE_INSTALL_BINDIR": "",
35+
"CMAKE_INSTALL_DATADIR": "",
36+
"CMAKE_INSTALL_LIBDIR": "",
37+
"CMAKE_INSTALL_LOCALSTATEDIR": "",
38+
"CMAKE_INSTALL_SBINDIR": "",
39+
"CMAKE_INSTALL_SYSCONFDIR": "",
40+
41+
"PHP_EXTENSION_DIR": "ext"
42+
}
43+
},
44+
{
45+
"name": "all-disabled-ts",
46+
"inherits": "all-disabled",
47+
"displayName": "Thread safety (ZTS) with all extensions disabled",
48+
"description": "PHP thread safe (ZTS) build with all PHP extensions and SAPIs disabled, only with CLI SAPI",
49+
"binaryDir": "${sourceDir}/php-build/windows-ts",
50+
"cacheVariables": {
51+
"PHP_THREAD_SAFETY": true
52+
}
53+
},
54+
{
55+
"name": "all-disabled-ninja",
56+
"inherits": "all-disabled",
57+
"displayName": "Ninja generator with all extensions disabled",
58+
"description": "PHP build using Ninja generator with all PHP extensions and SAPIs disabled, only with CLI SAPI",
59+
"binaryDir": "${sourceDir}/php-build/windows-ninja",
60+
"generator": "Ninja"
61+
}
62+
],
63+
"buildPresets": [
64+
{
65+
"name": "all-disabled",
66+
"configurePreset": "all-disabled"
67+
},
68+
{
69+
"name": "all-disabled-ts",
70+
"configurePreset": "all-disabled-ts"
71+
},
72+
{
73+
"name": "all-disabled-ninja",
74+
"configurePreset": "all-disabled-ninja"
75+
}
76+
],
77+
"testPresets": [
78+
{
79+
"name": "all-disabled",
80+
"configurePreset": "all-disabled",
81+
"environment": {
82+
"SKIP_IO_CAPTURE_TESTS": "1"
83+
},
84+
"output": {
85+
"shortProgress": true,
86+
"verbosity": "verbose"
87+
}
88+
},
89+
{
90+
"name": "all-disabled-ts",
91+
"configurePreset": "all-disabled-ts",
92+
"inherits": "all-disabled"
93+
},
94+
{
95+
"name": "all-disabled-ninja",
96+
"configurePreset": "all-disabled-ninja",
97+
"inherits": "all-disabled"
98+
}
99+
]
100+
}

cmake/ext/pcntl/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ cmake_push_check_state(RESET)
177177
HEADERS sched.h
178178
LIBRARIES
179179
gnu # Haiku
180-
VARIABLE _HAVE_SCHED_GETCPU
180+
VARIABLE PHP_EXT_PCNTL_HAS_SCHED_GETCPU
181181
LIBRARY_VARIABLE library
182182
)
183183

184-
if(_HAVE_SCHED_GETCPU)
184+
if(PHP_EXT_PCNTL_HAS_SCHED_GETCPU)
185185
if(library)
186186
set(CMAKE_REQUIRED_LIBRARIES ${library})
187187
endif()

cmake/main/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ target_sources(
103103
$<$<NOT:$<PLATFORM_ID:Windows>>:${PHP_BINARY_DIR}/$<CONFIG>/main/php_config.h>
104104
)
105105

106-
check_symbol_exists(__ELF__ "" _HAVE_ELF)
107-
if(_HAVE_ELF)
106+
check_symbol_exists(__ELF__ "" PHP_HAS_ELF)
107+
if(PHP_HAS_ELF)
108108
target_sources(
109109
php_main
110110
PRIVATE

0 commit comments

Comments
 (0)