diff --git a/src/media/audio/README.md b/src/media/audio/README.md new file mode 100644 index 0000000..8ef1f60 --- /dev/null +++ b/src/media/audio/README.md @@ -0,0 +1,9 @@ +# Optional Dependencies + +## Linux + +### ALSA + +```bash +sudo apt-get install libasound2-dev +``` \ No newline at end of file diff --git a/src/media/image/README.md b/src/media/image/README.md new file mode 100644 index 0000000..f51e7c9 --- /dev/null +++ b/src/media/image/README.md @@ -0,0 +1,9 @@ +# Optional Dependencies + +## Linux + +### libPNG + +```bash +sudo apt-get install libpng-dev +``` \ No newline at end of file diff --git a/src/rendering/fonts/README.md b/src/rendering/fonts/README.md new file mode 100644 index 0000000..b0af544 --- /dev/null +++ b/src/rendering/fonts/README.md @@ -0,0 +1,9 @@ +# Optional Dependencies + +## Linux + +### Freetype + +```bash +sudo apt-get install libfreetype-dev +``` diff --git a/src/rendering/graphics/README.md b/src/rendering/graphics/README.md new file mode 100644 index 0000000..cf4c87b --- /dev/null +++ b/src/rendering/graphics/README.md @@ -0,0 +1,9 @@ +# Optional Dependencies + +## Linux + +### OpenGL + +```bash +sudo apt-get install libgl-dev libegl1-mesa-dev libglu1-mesa-dev libglm-dev +``` diff --git a/src/ui/windows/README.md b/src/ui/windows/README.md new file mode 100644 index 0000000..15e38ad --- /dev/null +++ b/src/ui/windows/README.md @@ -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. \ No newline at end of file