Skip to content

Commit d2c7fee

Browse files
authored
[3.0] Refactor windows libs (#1067)
2 parents 64d692e + 9cd3125 commit d2c7fee

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1552
-68
lines changed

bin/spc-debug.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
$PHP_Exec = ".\runtime\php.exe"
2+
3+
if (-not(Test-Path $PHP_Exec)) {
4+
$PHP_Exec = Get-Command php.exe -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Definition
5+
if (-not $PHP_Exec) {
6+
Write-Host "Error: PHP not found, you need to install PHP on your system or use 'bin/setup-runtime'." -ForegroundColor Red
7+
exit 1
8+
}
9+
}
10+
11+
& "$PHP_Exec" -d xdebug.mode=debug -d xdebug.client_host=127.0.0.1 -d xdebug.client_port=9003 -d xdebug.start_with_request=yes ("bin/spc") @args
12+
exit $LASTEXITCODE

config/pkg/lib/brotli.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ brotli:
1515
- libbrotlicommon
1616
- libbrotlidec
1717
- libbrotlienc
18+
static-libs@windows:
19+
- brotlicommon.lib
20+
- brotlidec.lib
21+
- brotlienc.lib

config/pkg/lib/bzip2.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ bzip2:
1616
- bzlib.h
1717
static-libs@unix:
1818
- libbz2.a
19+
static-libs@windows:
20+
- libbz2.lib
21+
- libbz2_a.lib

config/pkg/lib/freetype.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ freetype:
1111
depends:
1212
- zlib
1313
suggests:
14+
- libpng
1415
- bzip2
1516
- brotli
1617
headers@unix:

config/pkg/lib/icu.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,20 @@ icu:
66
repo: unicode-org/icu
77
match: icu4c.+-src\.tgz
88
prefer-stable: true
9+
binary:
10+
windows-x86_64: { type: url, url: 'https://dl.static-php.dev/static-php-cli/deps/icu-static-windows-x64/icu-static-windows-x64.zip', extract: hosted }
911
metadata:
10-
license-files: [LICENSE]
12+
license-files: ['@/icu.txt']
1113
license: ICU
14+
headers@windows:
15+
- unicode
1216
lang: cpp
1317
pkg-configs:
1418
- icu-uc
1519
- icu-i18n
1620
- icu-io
21+
static-libs@windows:
22+
- icudt.lib
23+
- icuin.lib
24+
- icuio.lib
25+
- icuuc.lib

config/pkg/lib/libaom.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ libaom:
1010
lang: cpp
1111
static-libs@unix:
1212
- libaom.a
13+
static-libs@windows:
14+
- aom.lib

config/pkg/lib/libavif.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ libavif:
1616
- libpng
1717
static-libs@unix:
1818
- libavif.a
19+
static-libs@windows:
20+
- avif.lib

config/pkg/lib/libffi-win.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
libffi-win:
2+
type: library
3+
artifact:
4+
source:
5+
type: git
6+
rev: master
7+
url: 'https://github.com/static-php/libffi-win.git'
8+
metadata:
9+
license-files: [LICENSE]
10+
license: MIT
11+
static-libs@windows:
12+
- libffi.lib

config/pkg/lib/libiconv-win.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
libiconv-win:
2+
type: library
3+
artifact:
4+
source:
5+
type: git
6+
rev: master
7+
url: 'https://github.com/static-php/libiconv-win.git'
8+
metadata:
9+
license-files: [source/COPYING]
10+
license: GPL-3.0-or-later
11+
static-libs@windows:
12+
- libiconv.lib
13+
- libiconv_a.lib

config/pkg/lib/libjpeg.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ libjpeg:
77
metadata:
88
license-files: [LICENSE.md]
99
license: IJG
10+
suggests@windows:
11+
- zlib
1012
static-libs@unix:
1113
- libjpeg.a
1214
- libturbojpeg.a
15+
static-libs@windows:
16+
- libjpeg_a.lib

0 commit comments

Comments
 (0)