blob: e52ec5f2913418f8512f5bd04bc95f97641feb6e [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "RenderDoc recipe providing renderdoccmd"
2DESCRIPTION = "RenderDoc is a frame-capture based graphics debugger"
3HOMEPAGE = "https://github.com/baldurk/renderdoc"
4LICENSE = "MIT"
Andrew Geissler8f840682023-07-21 09:09:43 -05005LIC_FILES_CHKSUM = "file://LICENSE.md;md5=36d34a46cb71546195d2b0c626a52e5d"
Andrew Geissler82c905d2020-04-13 13:39:40 -05006
Andrew Geissler8f840682023-07-21 09:09:43 -05007SRCREV = "35b13a8e8fd2a331854dba6da81a20452e142d6f"
William A. Kennington IIIb95905d2021-06-02 12:40:56 -07008SRC_URI = " \
Patrick Williams8e7b46e2023-05-01 14:19:06 -05009 git://github.com/baldurk/${BPN}.git;protocol=https;branch=v1.x \
Andrew Geissler82c905d2020-04-13 13:39:40 -050010"
11S = "${WORKDIR}/git"
12
13DEPENDS += "virtual/libx11 virtual/libgl libxcb xcb-util-keysyms vim-native"
14
Patrick Williams213cb262021-08-07 19:21:33 -050015RDEPENDS:${PN} = "libxcb xcb-util-keysyms"
Andrew Geissler82c905d2020-04-13 13:39:40 -050016
Andrew Geissler5199d832021-09-24 16:47:35 -050017inherit cmake pkgconfig python3native features_check
Andrew Geissler82c905d2020-04-13 13:39:40 -050018
19REQUIRED_DISTRO_FEATURES = "x11 opengl"
20
21python __anonymous () {
22 # only works on glibc systems
23 if d.getVar('TCLIBC') != "glibc":
24 raise bb.parse.SkipRecipe("incompatible with %s C library" % d.getVar('TCLIBC'))
25}
26
27COMPATIBLE_HOST = "(x86_64|i.86|arm|aarch64).*-linux"
28
29EXTRA_OECMAKE += "\
30 -DENABLE_QRENDERDOC=OFF \
31 -DENABLE_PYRENDERDOC=OFF \
32 -DENABLE_RENDERDOCCMD=ON \
33 -DCMAKE_BUILD_TYPE=Release \
Patrick Williams169d7bc2024-01-05 11:33:25 -060034 -DHOST_NATIVE_CPP_COMPILER="${BUILD_CXX}" \
Andrew Geissler82c905d2020-04-13 13:39:40 -050035"
36
Patrick Williams213cb262021-08-07 19:21:33 -050037FILES:${PN} += "${libdir}"
38FILES:${PN}-dev = "${includedir}"