Skip to content

Commit

Permalink
Tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
mlazdans committed Mar 2, 2025
1 parent 5ff8098 commit e6ff7cc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion win_build_scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Make sure you got ~20GB free disk space to build for all PHP versions.

Make sure ``git`` is in you PATH

1. Set up Microsoft Visual Studio vc15 and vs16.
1. Set up Microsoft Visual Studio vc15, vs16 and vs17 (for PHP8.4+).
2. Set up Firebird 32-bit and 64-bit installations or libraries.
3. Set up PHP-SDK according to https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2
4. Clone php-firebird extension source somewhere.
Expand Down
4 changes: 2 additions & 2 deletions win_build_scripts/php-fb-build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ set pfb_build_root=php%pfb_php_vers%\%pfb_cpp_vers%\
set check_code="if(!function_exists('ibase_connect'))exit(1);"

set TPATH=%PATH%
set PATH=%PFB_FB64_DIR%;%TPATH%
set PATH=%FB64_DIR%;%TPATH%
"%pfb_build_root%x64\php-src\x64\Release_TS\php.exe" -dextension=.\php_interbase.dll -r %check_code% || goto :error
"%pfb_build_root%x64\php-src\x64\Release\php.exe" -dextension=.\php_interbase.dll -r %check_code% || goto :error
set PATH=%PFB_FB32_DIR%;%TPATH%
set PATH=%FB32_DIR%;%TPATH%
"%pfb_build_root%x86\php-src\Release_TS\php.exe" -dextension=.\php_interbase.dll -r %check_code% || goto :error
"%pfb_build_root%x86\php-src\Release\php.exe" -dextension=.\php_interbase.dll -r %check_code% || goto :error
set PATH=%TPATH%
Expand Down
4 changes: 2 additions & 2 deletions win_build_scripts/php-fb-config.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ set PFB_VERS=3.0.1-%GIT_HASH%
set PFB_OUTPUT_DIR=D:\php-firebird\releases\

@REM FB 32-bit and 64-bit libraries
set PFB_FB32_DIR=C:\Program Files\Firebird\Firebird_5_0-x86
set PFB_FB64_DIR=C:\Program Files\Firebird\Firebird_5_0
set FB32_DIR=C:\Program Files\Firebird\Firebird_5_0-x86
set FB64_DIR=C:\Program Files\Firebird\Firebird_5_0
8 changes: 4 additions & 4 deletions win_build_scripts/php-fb-sdk-build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
@REM Must be called under phpsdk-<php_vers>-<arch>.bat
@REM
@REM Calling script should set variables:
@REM <PFB_FB32_DIR> <PFB_FB64_DIR> <PFB_SOURCE_DIR> <pfb_php_vers> [pfb_nts] [pfb_x86]
@REM <FB32_DIR> <FB64_DIR> <PFB_SOURCE_DIR> <pfb_php_vers> [pfb_nts] [pfb_x86]
@REM
@REM set pfb_php_vers=7.4
@REM set pfb_nts=1 if nts expected, 0 if ts
@REM set pfb_x86=1 if linking to x86 fbclient, o if x64
@REM
@REM <PFB_FB32_DIR> <PFB_FB64_DIR> <PFB_SOURCE_DIR> all set in php-fb-config.bat
@REM <FB32_DIR> <FB64_DIR> <PFB_SOURCE_DIR> all set in php-fb-config.bat
@REM

goto :MAIN
Expand Down Expand Up @@ -41,10 +41,10 @@ exit /B
)

if "%pfb_x86%" gtr "0" (
set with_interbase="shared,%PFB_FB32_DIR%"
set with_interbase="shared,%FB32_DIR%"
set build_msg=%build_msg% x86
) else (
set with_interbase="shared,%PFB_FB64_DIR%"
set with_interbase="shared,%FB64_DIR%"
set build_msg=%build_msg% x86_64
)

Expand Down

0 comments on commit e6ff7cc

Please sign in to comment.