44>  ** Before running the ` make install `  or ` cmake --install `  command, be aware
55>  that files will be copied outside of your current build directory.** 
66
7- ## Introduction  
7+ ## Index  
8+ 
9+ *  [ 1. Introduction] ( #1-introduction ) 
10+ *  [ 2. Autotools-based build system] ( #2-autotools-based-build-system ) 
11+ *  [ 3. JScript-based Windows build system] ( #3-jscript-based-windows-build-system ) 
12+ *  [ 4. CMake-based build system] ( #4-cmake-based-build-system ) 
13+   *  [ 4.1. Installation directory structure] ( #41-installation-directory-structure ) 
14+ 
15+ ## 1. Introduction  
816
917When we think about installing software, we often imagine downloading a package
1018and setting it up on the system, ready for immediate use.
@@ -24,12 +32,12 @@ predefined directory structure. Some files may also be generated or modified
2432according to the final installation location, known as the
2533* installation prefix* .
2634
27- It's important to note that this type of PHP installations are  usually managed
28- by  package managers, which  handle this process through automated scripts.
35+ It's important to note that this type of PHP installation is  usually managed by 
36+ package managers, that  handle this process through automated scripts.
2937Additionally, applying patches to tailor the PHP package to suit the specific
30- requirements of the target system is common practice.
38+ requirements of the target system is a  common practice.
3139
32- ## Installing PHP with  Autotools-based build system 
40+ ## 2.  Autotools-based build system 
3341
3442The default way to install PHP using Autotools across the system directories can
3543be done like this:
@@ -214,9 +222,38 @@ and the `share` directory being named `php`:
214222    └─📂 temp
215223``` 
216224
217- ## Installing PHP with CMake  
225+ ## 3. JScript-based Windows build system  
226+ 
227+ Inside a Windows PowerShell:
228+ 
229+ ``` sh 
230+ #  Clone SDK binary tools Git repository
231+ git clone https://github.com/php/php-sdk-binary-tools C:\p hp-sdk
232+ cd  C:\p hp-sdk
233+ 
234+ .\p hpsdk-vs17-x64.bat
235+ phpsdk_buildtree phpmaster
236+ 
237+ git clone https://github.com/php/php-src
238+ cd  php-src
239+ phpsdk_deps --update --branch master
240+ 
241+ #  Create Windows configure.bat script
242+ .\b uildconf.bat
243+ 
244+ #  Configure PHP build and create Makefile
245+ .\c onfigure.bat --with-prefix=< installation-prefix> 
246+ 
247+ #  Build PHP
248+ nmake
249+ 
250+ #  Install built files
251+ nmake install
252+ ``` 
253+ 
254+ ## 4. CMake-based build system  
218255
219- In this repository, installing  PHP with CMake can be done in a similar way:
256+ Installing  PHP with CMake can be done in a similar way:
220257
221258``` sh 
222259#  Configuration and generation of build system files:
@@ -301,7 +338,7 @@ PHP CMake-based build system specific installation cache variables:
301338  ` 20230901-zts-debug `  for thread-safe debug build, or ` 20230901 `  for
302339  non-thread-safe build
303340
304- ### Installation directory structure  
341+ ### 4.1.  Installation directory structure 
305342
306343PHP installation directory structure when using CMake:
307344
0 commit comments