mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Got it to build
This commit is contained in:
parent
95a553dc51
commit
9ac46ec5ed
8 changed files with 69 additions and 18 deletions
|
|
@ -1,6 +1,7 @@
|
|||
include_directories(
|
||||
${PROTOCOLS_INCLUDE_DIRS}
|
||||
${WAYLAND_INCLUDE_DIR}
|
||||
${DRM_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
add_library(wlr-backend
|
||||
|
|
@ -8,6 +9,11 @@ add_library(wlr-backend
|
|||
wayland/registry.c
|
||||
wayland/wl_seat.c
|
||||
wayland/wl_output.c
|
||||
drm/drm.c
|
||||
drm/event.c
|
||||
drm/otd.c
|
||||
drm/session.c
|
||||
drm/udev.c
|
||||
)
|
||||
|
||||
target_link_libraries(wlr-backend
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "otd.h"
|
||||
#include "drm.h"
|
||||
#include "event.h"
|
||||
#include "backend/drm/otd.h"
|
||||
#include "backend/drm/drm.h"
|
||||
#include "backend/drm/event.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#include "otd.h"
|
||||
#include "event.h"
|
||||
#include "drm.h"
|
||||
#include "udev.h"
|
||||
#include "backend/drm/otd.h"
|
||||
#include "backend/drm/event.h"
|
||||
#include "backend/drm/drm.h"
|
||||
#include "backend/drm/udev.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "otd.h"
|
||||
#include "drm.h"
|
||||
#include "event.h"
|
||||
#include "session.h"
|
||||
#include "udev.h"
|
||||
#include "backend/drm/otd.h"
|
||||
#include "backend/drm/drm.h"
|
||||
#include "backend/drm/event.h"
|
||||
#include "backend/drm/session.h"
|
||||
#include "backend/drm/udev.h"
|
||||
|
||||
struct otd *otd_start(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#define _POSIX_C_SOURCE 200809L
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
|
@ -9,8 +11,8 @@
|
|||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "session.h"
|
||||
#include "otd.h"
|
||||
#include "backend/drm/session.h"
|
||||
#include "backend/drm/otd.h"
|
||||
|
||||
int take_device(struct otd *restrict otd,
|
||||
const char *restrict path,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#define _POSIX_C_SOURCE 200809L
|
||||
|
||||
#include <libudev.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
|
@ -6,10 +8,10 @@
|
|||
#include <xf86drm.h>
|
||||
#include <xf86drmMode.h>
|
||||
|
||||
#include "otd.h"
|
||||
#include "udev.h"
|
||||
#include "session.h"
|
||||
#include "drm.h"
|
||||
#include "backend/drm/otd.h"
|
||||
#include "backend/drm/udev.h"
|
||||
#include "backend/drm/session.h"
|
||||
#include "backend/drm/drm.h"
|
||||
|
||||
static bool device_is_kms(struct otd *otd, struct udev_device *dev)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue