Add dependencies to individual modules.
This commit is contained in:
parent
a46477cdcf
commit
471c7b20e0
5 changed files with 63 additions and 0 deletions
9
src/media/audio/README.md
Normal file
9
src/media/audio/README.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Optional Dependencies
|
||||||
|
|
||||||
|
## Linux
|
||||||
|
|
||||||
|
### ALSA
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo apt-get install libasound2-dev
|
||||||
|
```
|
9
src/media/image/README.md
Normal file
9
src/media/image/README.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Optional Dependencies
|
||||||
|
|
||||||
|
## Linux
|
||||||
|
|
||||||
|
### libPNG
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo apt-get install libpng-dev
|
||||||
|
```
|
9
src/rendering/fonts/README.md
Normal file
9
src/rendering/fonts/README.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Optional Dependencies
|
||||||
|
|
||||||
|
## Linux
|
||||||
|
|
||||||
|
### Freetype
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo apt-get install libfreetype-dev
|
||||||
|
```
|
9
src/rendering/graphics/README.md
Normal file
9
src/rendering/graphics/README.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Optional Dependencies
|
||||||
|
|
||||||
|
## Linux
|
||||||
|
|
||||||
|
### OpenGL
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo apt-get install libgl-dev libegl1-mesa-dev libglu1-mesa-dev libglm-dev
|
||||||
|
```
|
27
src/ui/windows/README.md
Normal file
27
src/ui/windows/README.md
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# Optional Dependencies
|
||||||
|
|
||||||
|
## Linux
|
||||||
|
|
||||||
|
### X and XCB
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo apt-get install libx11-dev libxkbcommon-dev libxkbcommon-x11-dev libx11-xcb-dev libxcb-image0-dev
|
||||||
|
```
|
||||||
|
|
||||||
|
### Wayland
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo apt-get install libwayland-dev wayland-protocols libx11-dev libxkbcommon-dev libxkbcommon-x11-dev libx11-xcb-dev libxcb-image0-dev
|
||||||
|
```
|
||||||
|
|
||||||
|
In addition, we need to generate suitable xdg shell c code:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir $WORK_DIR
|
||||||
|
cd $WORK_DIR
|
||||||
|
wayland-scanner private-code < /usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml > xdg-shell-protocol.cpp
|
||||||
|
wayland-scanner client-header < /usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml > xdg-shell-client-protocol.h
|
||||||
|
export WAYLAND_EXTENSION_DIR=$WORK_DIR
|
||||||
|
```
|
||||||
|
|
||||||
|
In `xdg-shell-protocol.cpp` - we need access to `xdg_wm_base_interface` so export it also `extern const struct wl_interface xdg_wm_base_interface;` as per similar interface structs.
|
Loading…
Reference in a new issue