mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +00:00
examples: only link clients to wlroots if necessary
This commit is contained in:
parent
2d0c5ec78e
commit
a8bc8c65ce
@ -1,12 +1,12 @@
|
|||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <wayland-client-protocol.h>
|
#include <wayland-client-protocol.h>
|
||||||
#include <wayland-client.h>
|
#include <wayland-client.h>
|
||||||
#include <wlr/util/log.h>
|
|
||||||
#include "idle-client-protocol.h"
|
#include "idle-client-protocol.h"
|
||||||
|
|
||||||
static struct org_kde_kwin_idle *idle_manager = NULL;
|
static struct org_kde_kwin_idle *idle_manager = NULL;
|
||||||
@ -109,8 +109,6 @@ void *main_loop(void *data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
wlr_log_init(WLR_DEBUG, NULL);
|
|
||||||
|
|
||||||
if (parse_args(argc, argv) != 0) {
|
if (parse_args(argc, argv) != 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#define _POSIX_C_SOURCE 200809L
|
#define _POSIX_C_SOURCE 200809L
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -9,7 +10,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <wayland-client.h>
|
#include <wayland-client.h>
|
||||||
#include <wayland-egl.h>
|
#include <wayland-egl.h>
|
||||||
#include <wlr/render/egl.h>
|
|
||||||
#include "input-method-unstable-v2-client-protocol.h"
|
#include "input-method-unstable-v2-client-protocol.h"
|
||||||
#include "text-input-unstable-v3-client-protocol.h"
|
#include "text-input-unstable-v3-client-protocol.h"
|
||||||
#include "xdg-shell-client-protocol.h"
|
#include "xdg-shell-client-protocol.h"
|
||||||
|
@ -59,7 +59,7 @@ examples = {
|
|||||||
},
|
},
|
||||||
'idle': {
|
'idle': {
|
||||||
'src': 'idle.c',
|
'src': 'idle.c',
|
||||||
'dep': [wayland_client, wlr_protos, wlroots, threads],
|
'dep': [wayland_client, wlr_protos, threads],
|
||||||
},
|
},
|
||||||
'idle-inhibit': {
|
'idle-inhibit': {
|
||||||
'src': 'idle-inhibit.c',
|
'src': 'idle-inhibit.c',
|
||||||
@ -75,7 +75,7 @@ examples = {
|
|||||||
},
|
},
|
||||||
'gamma-control': {
|
'gamma-control': {
|
||||||
'src': 'gamma-control.c',
|
'src': 'gamma-control.c',
|
||||||
'dep': [wayland_client, wayland_cursor, wlr_protos, wlroots],
|
'dep': [wayland_client, wayland_cursor, wlr_protos, math],
|
||||||
},
|
},
|
||||||
'pointer-constraints': {
|
'pointer-constraints': {
|
||||||
'src': 'pointer-constraints.c',
|
'src': 'pointer-constraints.c',
|
||||||
@ -91,7 +91,6 @@ examples = {
|
|||||||
threads,
|
threads,
|
||||||
wayland_client,
|
wayland_client,
|
||||||
wlr_protos,
|
wlr_protos,
|
||||||
wlroots,
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'screencopy': {
|
'screencopy': {
|
||||||
@ -103,13 +102,13 @@ examples = {
|
|||||||
'dep': [wayland_client, wlr_protos, wlroots],
|
'dep': [wayland_client, wlr_protos, wlroots],
|
||||||
},
|
},
|
||||||
'input-method': {
|
'input-method': {
|
||||||
'src': 'input-method.c',
|
'src': 'input-method.c',
|
||||||
'dep': [wayland_client, wlr_protos, wlroots] + libepoll,
|
'dep': [wayland_client, wlr_protos] + libepoll,
|
||||||
},
|
},
|
||||||
'text-input': {
|
'text-input': {
|
||||||
'src': 'text-input.c',
|
'src': 'text-input.c',
|
||||||
'dep': [wayland_cursor, wayland_client, wlr_protos, wlroots],
|
'dep': [wayland_cursor, wayland_client, wlr_protos, wlroots],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach name, info : examples
|
foreach name, info : examples
|
||||||
|
Loading…
Reference in New Issue
Block a user