LT_PREREQ([2.2])
LT_INIT([disable-static])
-# Compositor build requirements
-COMPOSITOR_MODULES="wayland-server >= 1.6.00 pixman-1 >= 0.25.2"
+# Pepper build requirements
+PEPPER_MODULES="wayland-server >= 1.6.00 pixman-1 >= 0.25.2"
-# Check compositor modules
-PKG_CHECK_MODULES(COMPOSITOR, [$COMPOSITOR_MODULES])
+# Check pepper modules
+PKG_CHECK_MODULES(PEPPER, [$PEPPER_MODULES])
+# Check pepper server modules
# Output files
AC_CONFIG_FILES([
Makefile
bin_PROGRAMS =
+lib_LTLIBRARIES =
+
+# pepper library
+lib_LTLIBRARIES += libpepper.la
+libpepper_la_CFLAGS = $(PEPPER_CFLAGS)
+libpepper_la_LIBADD = $(PEPPER_LIBS)
+libpepper_la_SOURCES = pepper.h \
+ compositor.c
# Pepper server executable
bin_PROGRAMS += pepper
pepper_LDFLAGS = -export-dynamic
-pepper_CFLAGS = $(COMPOSITOR_CFLAGS)
-pepper_LDADD = $(COMPOSITOR_LIBS)
-pepper_SOURCES = pepper.c
+pepper_LDADD = libpepper.la
+pepper_SOURCES = server/server.c
+++ /dev/null
-#include <stdio.h>
-#include <stdlib.h>
-
-#include <wayland-server.h>
-
-int
-main(int argc, char **argv)
-{
- int ret = EXIT_SUCCESS;
- struct wl_display * display = NULL;
- const char * socket_name = NULL;
-
- /* Create a display object. */
- display = wl_display_create();
-
- if (!display)
- {
- printf("Failed to create display.\n");
- ret = EXIT_FAILURE;
- goto out;
- }
-
- /* Add a listening socket. */
- socket_name = wl_display_add_socket_auto(display);
-
- if (!socket_name)
- {
- printf("Failed to add socket.\n");
- ret = EXIT_FAILURE;
- goto out;
- }
-
- printf("Pepper server socket added: %s\n", socket_name);
-
- /* Start main loop. */
- wl_display_run(display);
-
-out:
- if (display)
- wl_display_destroy(display);
-
- return ret;
-}
--- /dev/null
+#include <stdio.h>
+#include <stdlib.h>
+
+int
+main(int argc, char **argv)
+{
+ return 0;
+}