Skip to content

Commit 5cd3e84

Browse files
ePiratjbkempf
authored andcommitted
Docs: Update the build instructions in the README
1 parent b44684c commit 5cd3e84

1 file changed

Lines changed: 28 additions & 19 deletions

File tree

README.md

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -58,33 +58,42 @@ For those who do not need to know the background theory, most documentation page
5858

5959
## Building libspatialaudio
6060

61-
To build **libspatialaudio**, follow these steps:
61+
Clone the repository (if you haven't already):
6262

63-
1. Clone the repository (if you haven't already):
63+
```bash
64+
git clone https://github.com/videolabs/libspatialaudio.git
65+
cd libspatialaudio
66+
```
6467

65-
```bash
66-
git clone https://github.com/videolabs/libspatialaudio.git
67-
cd libspatialaudio
68-
```
68+
To build **libspatialaudio**, either Meson or CMake can be used:
6969

70-
2. Create a `build` directory and navigate into it:
70+
### Meson
7171

72-
```bash
73-
mkdir build
74-
cd build
75-
```
72+
1. Create a `build` directory and configure the project:
7673

77-
3. Run CMake to configure the project:
74+
```bash
75+
meson setup build
76+
```
7877

79-
```bash
80-
cmake ..
81-
```
78+
2. Build the project:
8279

83-
4. Build the project using Make:
80+
```bash
81+
meson compile -C build
82+
```
8483

85-
```bash
86-
make
87-
```
84+
### CMake
85+
86+
1. Create a `build` directory and configure the project:
87+
88+
```bash
89+
cmake -B build
90+
```
91+
92+
2. Build the project:
93+
94+
```bash
95+
cmake --build build
96+
```
8897

8998
## License
9099

0 commit comments

Comments
 (0)