build: Move clients libexec_PROGRAMS under BUILD_CLIENTS conditional
All the libexec programs are only built when BUILD_CLIENTS is true, so we can just assign libexec_PROGRAMS under the condition. This lets us drop most of the variable assignments and simplify it a bit. https://bugs.freedesktop.org/show_bug.cgi?id=72812
This commit is contained in:
+7
-12
@@ -13,13 +13,6 @@ else
|
|||||||
noinst_PROGRAMS = $(demo_clients)
|
noinst_PROGRAMS = $(demo_clients)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libexec_PROGRAMS = \
|
|
||||||
$(desktop_shell) \
|
|
||||||
$(screenshooter) \
|
|
||||||
$(screensaver) \
|
|
||||||
$(keyboard) \
|
|
||||||
weston-simple-im
|
|
||||||
|
|
||||||
AM_CFLAGS = $(GCC_CFLAGS)
|
AM_CFLAGS = $(GCC_CFLAGS)
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-DDATADIR='"$(datadir)"' \
|
-DDATADIR='"$(datadir)"' \
|
||||||
@@ -63,6 +56,13 @@ endif
|
|||||||
if BUILD_CLIENTS
|
if BUILD_CLIENTS
|
||||||
install_clients = weston-terminal weston-info
|
install_clients = weston-terminal weston-info
|
||||||
|
|
||||||
|
libexec_PROGRAMS = \
|
||||||
|
weston-desktop-shell
|
||||||
|
weston-screenshooter \
|
||||||
|
$(screensaver) \
|
||||||
|
weston-keyboard \
|
||||||
|
weston-simple-im
|
||||||
|
|
||||||
clients_programs = \
|
clients_programs = \
|
||||||
weston-flower \
|
weston-flower \
|
||||||
weston-image \
|
weston-image \
|
||||||
@@ -81,10 +81,6 @@ clients_programs = \
|
|||||||
$(full_gl_client_programs) \
|
$(full_gl_client_programs) \
|
||||||
$(cairo_glesv2_programs)
|
$(cairo_glesv2_programs)
|
||||||
|
|
||||||
desktop_shell = weston-desktop-shell
|
|
||||||
|
|
||||||
screenshooter = weston-screenshooter
|
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libtoytoolkit.la
|
noinst_LTLIBRARIES = libtoytoolkit.la
|
||||||
|
|
||||||
libtoytoolkit_la_SOURCES = \
|
libtoytoolkit_la_SOURCES = \
|
||||||
@@ -182,7 +178,6 @@ weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
|
|||||||
weston_editor_CPPFLAGS = $(AM_CPPFLAGS) $(PANGO_CFLAGS)
|
weston_editor_CPPFLAGS = $(AM_CPPFLAGS) $(PANGO_CFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
keyboard = weston-keyboard
|
|
||||||
weston_keyboard_SOURCES = \
|
weston_keyboard_SOURCES = \
|
||||||
keyboard.c \
|
keyboard.c \
|
||||||
desktop-shell-client-protocol.h \
|
desktop-shell-client-protocol.h \
|
||||||
|
|||||||
+4
-2
@@ -114,7 +114,7 @@ event_weston_LDADD = libtest-client.la
|
|||||||
button_weston_SOURCES = button-test.c
|
button_weston_SOURCES = button-test.c
|
||||||
button_weston_LDADD = libtest-client.la
|
button_weston_LDADD = libtest-client.la
|
||||||
|
|
||||||
text_weston_SOURCES = text-test.c ../clients/text-protocol.c
|
text_weston_SOURCES = text-test.c text-protocol.c
|
||||||
text_weston_LDADD = libtest-client.la
|
text_weston_LDADD = libtest-client.la
|
||||||
|
|
||||||
subsurface_weston_SOURCES = subsurface-test.c
|
subsurface_weston_SOURCES = subsurface-test.c
|
||||||
@@ -154,7 +154,9 @@ EXTRA_DIST = weston-tests-env
|
|||||||
BUILT_SOURCES = \
|
BUILT_SOURCES = \
|
||||||
wayland-test-protocol.c \
|
wayland-test-protocol.c \
|
||||||
wayland-test-server-protocol.h \
|
wayland-test-server-protocol.h \
|
||||||
wayland-test-client-protocol.h
|
wayland-test-client-protocol.h \
|
||||||
|
text-protocol.c \
|
||||||
|
text-client-protocol.h
|
||||||
|
|
||||||
CLEANFILES = $(BUILT_SOURCES)
|
CLEANFILES = $(BUILT_SOURCES)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <linux/input.h>
|
#include <linux/input.h>
|
||||||
#include "weston-test-client-helper.h"
|
#include "weston-test-client-helper.h"
|
||||||
#include "../clients/text-client-protocol.h"
|
#include "text-client-protocol.h"
|
||||||
|
|
||||||
struct text_input_state {
|
struct text_input_state {
|
||||||
int activated;
|
int activated;
|
||||||
|
|||||||
Reference in New Issue
Block a user