Find a file
Ziyao 9b33a38f86
cmake: link libOpenGL instead of legacy libGL (#44)
From cmake documentation, Linux-specific chapter:

  Projects may use the ``OpenGL::GL`` target (or ``OPENGL_LIBRARIES``
  variable) to use legacy GL interfaces.  These will use the legacy GL
  library located by ``OPENGL_gl_LIBRARY``, if available.  If
  ``OPENGL_gl_LIBRARY`` is empty or not found and GLVND is available,
  the ``OpenGL::GL`` target will use GLVND ``OpenGL::OpenGL`` and
  ``OpenGL::GLX`` (and the ``OPENGL_LIBRARIES`` variable will use the
  corresponding libraries).  Thus, for non-EGL-based Linux targets, the
  ``OpenGL::GL`` target is most portable.

which means linking with OpenGL::GL makes cmake find legacy libGL.so or
GLX libraries, and as for now, the former contains GLX symbols and cannot
be built without X libraries. Since we are working with EGL, it wouldn't
provide extra portability, either.

This patch switches to link aquamarine with modern OpenGL::OpenGL, which
contains core OpenGL API only, makes it possible to build on a
wayland-only system. Tested on eweOS, which is a distro without X
libraries.

Link: https://os.ewe.moe/

Signed-off-by: Yao Zi <ziyao@disroot.org>
2024-08-10 17:22:37 +01:00
.github/workflows CI: disable tests 2024-07-01 19:14:37 +03:00
data drm: implement edid parsing 2024-07-02 13:15:56 +02:00
docs drm: add AQ_MGPU_NO_EXPLICIT 2024-08-05 16:42:03 +02:00
include/aquamarine gbm: Nvidia fixes for scanout gbm allocation (#27) 2024-07-24 18:41:13 +02:00
nix Nix: fix cross-compilation 2024-07-27 20:21:53 +03:00
protocols Wayland: Initial progress 2024-06-18 18:45:05 +02:00
src drm: fixup modeline calculations 2024-08-09 19:20:25 +02:00
tests backend: rework event loop api 2024-06-27 00:07:59 +02:00
.clang-format core: Initial stuff 2024-06-18 11:38:26 +02:00
.gitignore Wayland: Initial progress 2024-06-18 18:45:05 +02:00
aquamarine.pc.in core: Initial stuff 2024-06-18 11:38:26 +02:00
CMakeLists.txt cmake: link libOpenGL instead of legacy libGL (#44) 2024-08-10 17:22:37 +01:00
flake.lock flake.lock: update 2024-07-18 21:04:10 +03:00
flake.nix Nix: fix cross-compilation 2024-07-27 20:21:53 +03:00
LICENSE Initial commit 2024-06-18 10:56:51 +02:00
README.md README: update state 2024-07-01 20:42:25 +02:00
VERSION props: bump version to 0.3.1 2024-08-09 20:32:21 +02:00

Aquamarine

Aquamarine is a very light linux rendering backend library. It provides basic abstractions for an application to render on a Wayland session (in a window) or a native DRM session.

It is agnostic of the rendering API (Vulkan/OpenGL) and designed to be lightweight, performant, and minimal.

Aquamarine provides no bindings for other languages. It is C++-only.

Stability

Aquamarine depends on the ABI stability of the stdlib implementation of your compiler. Sover bumps will be done only for aquamarine ABI breaks, not stdlib.

Building

cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`

TODOs

  • Wayland backend
  • DRM backend (DRM / KMS / libinput)
  • Virtual backend (aka. Headless)
  • Hardware plane support