aboutsummaryrefslogtreecommitdiff
path: root/backend/CMakeLists.txt
blob: 8272e039942901fe3898060ea761b27eb1175c8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
include_directories(
	${PROTOCOLS_INCLUDE_DIRS}
	${WAYLAND_INCLUDE_DIR}
	${DRM_INCLUDE_DIRS}
    ${LIBINPUT_INCLUDE_DIRS}
)

add_library(wlr-backend
    #wayland/backend.c
    #wayland/registry.c
    #wayland/wl_seat.c
    #wayland/wl_output.c

    drm/backend.c
    drm/drm.c

    libinput/backend.c
    libinput/events.c
    libinput/keyboard.c
    libinput/pointer.c
    libinput/touch.c

    multi/backend.c
    backend.c
    egl.c
    udev.c
)

target_link_libraries(wlr-backend
    wlr-common
    wlr-types
    ${WAYLAND_LIBRARIES}
    ${DRM_LIBRARIES}
    ${GBM_LIBRARIES}
    ${GLESv2_LIBRARIES}
    ${EGL_LIBRARIES}
    ${SYSTEMD_LIBRARIES}
    ${UDEV_LIBRARIES}
    ${LIBINPUT_LIBRARIES}
    ${GBM_LIBRARIES}
)