Script to build a win32 PHP build environment. https://code.ivysaur.me/php-build
This repository has been archived on 2020-05-03. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2015-02-25 07:23:11 +00:00
dist-archive commit all archived files 2015-02-25 07:23:11 +00:00
.legacy-codesite.toml initial meta commit 2015-02-25 07:23:11 +00:00
README.md commit all archived files 2015-02-25 07:23:11 +00:00

php-build

Script to build a win32 PHP build environment.

Overview

It takes many steps to build PHP on windows using the native toolchain. May as well automate the process!

  • php-build requires Cygwin; the final development environment does not require cygwin, nor do any final binaries
  • Build using any VS installation
  • Build from any git branch
  • Uses jom for parallel build on VS2012 or older

Usage

Configure the build environment by modifying the supplied php-build.configuration.sh file. Then use php-build.sh to compile PHP.

Usage:
  php-build.sh [options]

Options:
  --cmd             Open cmd.exe terminal in src dir with correct environment
  --explorer        Open explorer in src dir with correct environment
  --force           Delete php-sdk directory if it already exists
  --help            Display this message

Examples:
  - Build PHP, but fail if destination directory already exists:
    ./php-build.sh

  - Build PHP, removing destination directory if it already exists:
    ./php-build.sh --force

TODO

  • Build all dependencies instead of using dependency zipfiles from windows.php.net

See Also

Download