blob: 5f81e841dc3758ab4733a6c04fa0791ca8e4a904 [file] [log] [blame]
Brad Bishop36a3e3e2019-10-02 13:29:27 -04001SUMMARY = "RenderDoc recipe providing renderdoccmd"
2DESCRIPTION = "RenderDoc is a frame-capture based graphics debugger"
3HOMEPAGE = "https://github.com/baldurk/renderdoc"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9753b1b4fba3261c27d1ce5c1acef667"
6
Brad Bishope42b3e32020-01-15 22:08:42 -05007SRCREV = "a94f238e37cfe2f142093eb8e5da7775abaa88c6"
Brad Bishop36a3e3e2019-10-02 13:29:27 -04008SRC_URI = "git://github.com/baldurk/${BPN}.git;protocol=http;branch=v1.x \
9 file://0001-renderdoc-use-xxd-instead-of-cross-compiling-shim-bi.patch \
Brad Bishope42b3e32020-01-15 22:08:42 -050010 file://0001-Remove-glslang-pool_allocator-setAllocator.patch \
Brad Bishop36a3e3e2019-10-02 13:29:27 -040011"
12S = "${WORKDIR}/git"
13
14DEPENDS += "virtual/libx11 virtual/libgl libxcb xcb-util-keysyms vim-native"
15
16RDEPENDS_${PN} = "libxcb xcb-util-keysyms"
17
Brad Bishop8410d612019-11-25 09:40:59 -050018inherit cmake python3native features_check
Brad Bishop4fe7a132019-10-07 09:34:48 -040019
Brad Bishop2d39a062019-10-28 08:33:36 -040020REQUIRED_DISTRO_FEATURES = "x11 opengl"
Brad Bishop36a3e3e2019-10-02 13:29:27 -040021
22python __anonymous () {
23 # only works on glibc systems
24 if d.getVar('TCLIBC') != "glibc":
25 raise bb.parse.SkipRecipe("incompatible with %s C library" % d.getVar('TCLIBC'))
26}
27
28COMPATIBLE_HOST = "(x86_64|i.86|arm|aarch64).*-linux"
29
30EXTRA_OECMAKE += "\
31 -DENABLE_QRENDERDOC=OFF \
32 -DENABLE_PYRENDERDOC=OFF \
33 -DENABLE_RENDERDOCCMD=ON \
34 -DCMAKE_BUILD_TYPE=Release \
35"
36
37FILES_${PN} += "${libdir}"
38FILES_${PN}-dev = "${includedir}"