glfw_3.3.8.bb 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. SUMMARY = "A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input"
  2. HOMEPAGE = "https://www.glfw.org/"
  3. DESCRIPTION = "GLFW is an Open Source, multi-platform library for OpenGL, \
  4. OpenGL ES and Vulkan application development. It provides a simple, \
  5. platform-independent API for creating windows, contexts and surfaces, reading \
  6. input, handling events, etc."
  7. LICENSE = "Zlib"
  8. LIC_FILES_CHKSUM = "file://LICENSE.md;md5=98d93d1ddc537f9b9ea6def64e046b5f"
  9. SECTION = "lib"
  10. inherit pkgconfig cmake features_check
  11. PV .= "+git"
  12. SRCREV = "7482de6071d21db77a7236155da44c172a7f6c9e"
  13. SRC_URI = "git://github.com/glfw/glfw.git;branch=3.3-stable;protocol=https"
  14. S = "${WORKDIR}/git"
  15. EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON -DGLFW_BUILD_DOCS=OFF"
  16. CFLAGS += "-fPIC"
  17. DEPENDS = "libpng zlib"
  18. REQUIRED_DISTRO_FEATURES = "opengl x11"
  19. ANY_OF_DISTRO_FEATURES = "wayland x11"
  20. # upstream considers x11 and wayland backends mutually exclusive and will
  21. # prioritize wayland if it is enabled, but wayland has dependencies that cannot
  22. # be satisfied by this layer so it is disabled by default
  23. PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
  24. PACKAGECONFIG[wayland] = "-DGLFW_USE_WAYLAND=ON,,wayland wayland-native wayland-protocols extra-cmake-modules libxkbcommon"
  25. PACKAGECONFIG[x11] = ",,libxrandr libxinerama libxi libxcursor libglu"
  26. COMPATIBLE_HOST:libc-musl = "null"