Merge pull request #1312 from ascent12/drm_include

Fix libdrm includes
This commit is contained in:
Drew DeVault 2018-10-15 02:31:49 +02:00 committed by GitHub
commit 814fc1364c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 3 deletions

View File

@ -12,7 +12,7 @@
#include <unistd.h>
#include <pthread.h>
#include <stdbool.h>
#include <libdrm/drm_fourcc.h>
#include <drm_fourcc.h>
#include "wlr-export-dmabuf-unstable-v1-client-protocol.h"
struct wayland_output {

View File

@ -80,6 +80,7 @@ examples = {
libavcodec,
libavformat,
libavutil,
drm.partial_dependency(includes: true), # <drm_fourcc.h>
threads,
wayland_client,
wlr_protos,

View File

@ -3,7 +3,7 @@
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <stdlib.h>
#include <libdrm/drm_fourcc.h>
#include <drm_fourcc.h>
#include <wlr/render/egl.h>
#include <wlr/util/log.h>
#include "glapi.h"

View File

@ -22,7 +22,13 @@ lib_wlr_render = static_library(
),
glapi,
include_directories: wlr_inc,
dependencies: [egl, glesv2, pixman, wayland_server],
dependencies: [
egl,
drm.partial_dependency(includes: true), # <drm_fourcc.h>
glesv2,
pixman,
wayland_server
],
)
wlr_render = declare_dependency(