-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocs.patch
44 lines (38 loc) · 1.06 KB
/
docs.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From: Peter Kokot <peterkokot@gmail.com>
Subject: Add docs related to CMake
These are only quick README adjustments and fixes on how to use CMake
with PHP.
---
README.md | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/README.md b/README.md
index c5376f67725..2675e91239f 100644
--- a/README.md
+++ b/README.md
@@ -35,8 +35,30 @@ For other systems, see the [installation chapter](https://www.php.net/install).
### Building PHP source code
+#### CMake
+
+On Debian-based systems:
+
+ sudo apt install -y cmake gcc g++ bison libsqlite3-dev
+
+On Fedora-based systems:
+
+ sudo dnf install cmake gcc gcc-c++ bison sqlite-devel
+
+Generate build system:
+
+ cmake -S . -B php-build
+
+Build PHP:
+
+ cmake --build php-build -j
+
+#### Windows using JScript
+
*For Windows, see [Build your own PHP on Windows](https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2).*
+#### Autotools
+
For a minimal PHP build from Git, you will need autoconf, bison, and re2c. For
a default build, you will additionally need libxml2 and libsqlite3.