headless: add headless_client sample 23/207123/1
authorSung-Jin Park <sj76.park@samsung.com>
Mon, 15 Apr 2019 11:07:33 +0000 (20:07 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 30 May 2019 08:28:52 +0000 (17:28 +0900)
Change-Id: Id8f709811d62909b83a48f806e9c9c802632b9a2
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
packaging/pepper.spec
src/samples/Makefile.am
src/samples/headless_client.c [new file with mode: 0644]

index 866a6f1..d6aa548 100644 (file)
@@ -574,3 +574,4 @@ rm -f %{_unitdir_user}/basic.target.wants/display-user.service
 %defattr(-,root,root,-)
 %{_bindir}/*-backend
 %{_bindir}/sample-*
+%{_bindir}/headless*
index bd63fb5..ef99df7 100644 (file)
@@ -55,3 +55,10 @@ sample_client_CFLAGS = $(SAMPLE_CLIENT_CFLAGS)
 sample_client_LDADD = $(SAMPLE_CLIENT_LIBS)
 
 sample_client_SOURCES = sample-client.c xdg-shell-client-protocol.h xdg-shell-protocol.c
+
+bin_PROGRAMS += headless_client
+
+headless_client_CFLAGS = $(HEADLESS_CLIENT_CFLAGS)
+headless_client_LDADD = $(HEADLESS_CLIENT_LIBS)
+
+headless_client_SOURCES = headless_client.c
diff --git a/src/samples/headless_client.c b/src/samples/headless_client.c
new file mode 100644 (file)
index 0000000..4be0df7
--- /dev/null
@@ -0,0 +1,7 @@
+#include <stdlib.h>
+
+int main(int argc, char **argv)
+{
+       return EXIT_SUCCESS;
+}
+