|
34 | 34 | $upx = false; |
35 | 35 |
|
36 | 36 | // prefer downloading pre-built packages to speed up the build process |
37 | | -$prefer_pre_built = false; |
| 37 | +$prefer_pre_built = true; |
38 | 38 |
|
39 | 39 | // If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`). |
40 | 40 | $extensions = match (PHP_OS_FAMILY) { |
41 | | - 'Linux', 'Darwin' => 'parallel', |
| 41 | + 'Linux', 'Darwin' => 'apcu,bcmath,bz2,calendar,ctype,curl,dba,dom,exif,fileinfo,filter,ftp,gd,gmp,gettext,iconv,igbinary,imagick,intl,ldap,mbregex,mbstring,mysqli,mysqlnd,opcache,openssl,parallel,pcntl,pdo,pdo_mysql,pdo_pgsql,pdo_sqlite,pgsql,phar,posix,protobuf,readline,redis,session,shmop,simplexml,soap,sockets,sodium,sqlite3,ssh2,sysvmsg,sysvsem,sysvshm,tidy,tokenizer,xlswriter,xml,xmlreader,xmlwriter,zip,zlib,yaml,zstd', |
42 | 42 | 'Windows' => 'amqp,apcu,bcmath,bz2,calendar,ctype,curl,dba,dom,ds,exif,ffi,fileinfo,filter,ftp,gd,iconv,igbinary,libxml,mbregex,mbstring,mysqli,mysqlnd,opcache,openssl,pdo,pdo_mysql,pdo_sqlite,pdo_sqlsrv,phar,rar,redis,session,shmop,simdjson,simplexml,soap,sockets,sqlite3,sqlsrv,ssh2,swow,sysvshm,tokenizer,xml,xmlreader,xmlwriter,yac,yaml,zip,zlib', |
43 | 43 | }; |
44 | 44 |
|
|
52 | 52 | // You can use `common`, `bulk`, `minimal` or `none`. |
53 | 53 | // note: combination is only available for *nix platform. Windows must use `none` combination |
54 | 54 | $base_combination = match (PHP_OS_FAMILY) { |
55 | | - 'Linux', 'Darwin' => 'minimal', |
| 55 | + 'Linux', 'Darwin' => 'none', |
56 | 56 | 'Windows' => 'none', |
57 | 57 | }; |
58 | 58 |
|
@@ -121,7 +121,6 @@ function quote2(string $param): string |
121 | 121 | $build_cmd .= $no_strip ? '--no-strip ' : ''; |
122 | 122 | $build_cmd .= $upx ? '--with-upx-pack ' : ''; |
123 | 123 | $build_cmd .= $final_libs === '' ? '' : ('--with-libs=' . quote2($final_libs) . ' '); |
124 | | - $build_cmd .= '--build-cli --build-micro '; |
125 | 124 | $build_cmd .= str_starts_with($argv[2], 'windows-') ? '' : '--build-fpm '; |
126 | 125 | $build_cmd .= '--debug '; |
127 | 126 | } |
@@ -150,9 +149,16 @@ function quote2(string $param): string |
150 | 149 | } |
151 | 150 | } elseif ($argv[1] === 'build_cmd') { |
152 | 151 | if (str_starts_with($argv[2], 'windows-')) { |
153 | | - passthru('powershell.exe -file .\bin\spc.ps1 ' . $build_cmd, $retcode); |
| 152 | + passthru('powershell.exe -file .\bin\spc.ps1 ' . $build_cmd . ' --build-cli --build-micro', $retcode); |
154 | 153 | } else { |
155 | | - passthru('./bin/spc ' . $build_cmd, $retcode); |
| 154 | + passthru('./bin/spc ' . $build_cmd . ' --build-cli --build-micro', $retcode); |
| 155 | + } |
| 156 | +} elseif ($argv[1] === 'build_embed_cmd') { |
| 157 | + if (str_starts_with($argv[2], 'windows-')) { |
| 158 | + // windows does not accept embed SAPI |
| 159 | + passthru('powershell.exe -file .\bin\spc.ps1 ' . $build_cmd . ' --build-cli', $retcode); |
| 160 | + } else { |
| 161 | + passthru('./bin/spc ' . $build_cmd . ' --build-embed', $retcode); |
156 | 162 | } |
157 | 163 | } |
158 | 164 |
|
|
0 commit comments