Skip to content

Commit 0b863cb

Browse files
authored
Merge branch 'main' into feat/excimer
2 parents b09337d + cd2dc5b commit 0b863cb

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

src/SPC/builder/windows/library/curl.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ protected function build(): void
3030
'-DCMAKE_BUILD_TYPE=Release ' .
3131
'-DBUILD_SHARED_LIBS=OFF ' .
3232
'-DBUILD_STATIC_LIBS=ON ' .
33-
'-DCURL_STATICLIB=ON ' .
3433
'-DCMAKE_INSTALL_PREFIX=' . BUILD_ROOT_PATH . ' ' .
3534
'-DBUILD_CURL_EXE=OFF ' . // disable curl.exe
3635
'-DBUILD_TESTING=OFF ' . // disable tests
@@ -42,9 +41,9 @@ protected function build(): void
4241
'-DCURL_USE_OPENSSL=OFF ' . // disable openssl due to certificate issue
4342
'-DCURL_ENABLE_SSL=ON ' .
4443
'-DUSE_NGHTTP2=ON ' . // enable nghttp2
44+
'-DSHARE_LIB_OBJECT=OFF ' . // disable shared lib object
4545
'-DCURL_USE_LIBSSH2=ON ' . // enable libssh2
4646
'-DENABLE_IPV6=ON ' . // enable ipv6
47-
'-DNGHTTP2_CFLAGS="/DNGHTTP2_STATICLIB" ' .
4847
$alt
4948
)
5049
->execWithWrapper(
@@ -53,5 +52,7 @@ protected function build(): void
5352
);
5453
// move libcurl.lib to libcurl_a.lib
5554
rename(BUILD_LIB_PATH . '\libcurl.lib', BUILD_LIB_PATH . '\libcurl_a.lib');
55+
56+
FileSystem::replaceFileStr(BUILD_INCLUDE_PATH . '\curl\curl.h', '#ifdef CURL_STATICLIB', '#if 1');
5657
}
5758
}

src/SPC/builder/windows/library/nghttp2.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,16 @@ protected function build(): void
2929
'-DBUILD_SHARED_LIBS=OFF ' .
3030
'-DENABLE_STATIC_CRT=ON ' .
3131
'-DENABLE_LIB_ONLY=ON ' .
32-
'-DCMAKE_INSTALL_PREFIX=' . BUILD_ROOT_PATH . ' '
32+
'-DCMAKE_INSTALL_PREFIX=' . BUILD_ROOT_PATH . ' ' .
33+
'-DENABLE_STATIC_CRT=ON ' .
34+
'-DENABLE_DOC=OFF ' .
35+
'-DBUILD_TESTING=OFF '
3336
)
3437
->execWithWrapper(
3538
$this->builder->makeSimpleWrapper('cmake'),
3639
"--build build --config Release --target install -j{$this->builder->concurrency}"
3740
);
41+
42+
FileSystem::replaceFileStr(BUILD_INCLUDE_PATH . '\nghttp2\nghttp2.h', '#ifdef NGHTTP2_STATICLIB', '#if 1');
3843
}
3944
}

src/globals/test-extensions.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,25 @@
1313

1414
// test php version (8.1 ~ 8.4 available, multiple for matrix)
1515
$test_php_version = [
16-
// '8.1',
16+
'8.1',
1717
// '8.2',
1818
// '8.3',
19-
// '8.4',
19+
'8.4',
2020
'8.5',
2121
// 'git',
2222
];
2323

2424
// test os (macos-15-intel, macos-15, ubuntu-latest, windows-latest are available)
2525
$test_os = [
26-
'macos-15-intel', // bin/spc for x86_64
26+
// 'macos-15-intel', // bin/spc for x86_64
2727
// 'macos-15', // bin/spc for arm64
2828
// 'ubuntu-latest', // bin/spc-alpine-docker for x86_64
2929
// 'ubuntu-22.04', // bin/spc-gnu-docker for x86_64
3030
// 'ubuntu-24.04', // bin/spc for x86_64
3131
// 'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64
3232
// 'ubuntu-24.04-arm', // bin/spc for arm64
3333
// 'windows-2022', // .\bin\spc.ps1
34-
// 'windows-2025',
34+
'windows-2025',
3535
];
3636

3737
// whether enable thread safe
@@ -50,7 +50,7 @@
5050

5151
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
5252
$extensions = match (PHP_OS_FAMILY) {
53-
'Linux', 'Darwin' => 'imagick',
53+
'Linux', 'Darwin' => 'curl',
5454
'Windows' => 'bcmath',
5555
};
5656

@@ -67,7 +67,7 @@
6767
// If you want to test extra libs for extensions, add them below (comma separated, example `libwebp,libavif`). Unnecessary, when $with_suggested_libs is true.
6868
$with_libs = match (PHP_OS_FAMILY) {
6969
'Linux', 'Darwin' => 'libwebp',
70-
'Windows' => '',
70+
'Windows' => 'nghttp2',
7171
};
7272

7373
// Please change your test base combination. We recommend testing with `common`.

0 commit comments

Comments
 (0)