diff options
author | Victor Toso <me@victortoso.com> | 2017-01-10 16:36:48 +0100 |
---|---|---|
committer | Victor Toso <me@victortoso.com> | 2017-01-23 09:30:47 +0100 |
commit | 47e37e7c9db5f70a0ade527fe6045ba742cec8fa (patch) | |
tree | 4e8903dbfab002ad892385cf92b777a13a4d4f89 | |
parent | 0517c9d6c4da58d5e8b76cef7fada58141859443 (diff) |
Move spicy tools to its own folder
So we can have the tools and the libraries in different folders.
In the src/Makefile.am I've only removed the lines related to the
tools but not all lines were copied into tools/Makefile.am as we
don't really need them. Other lines were adjusted to have the paths
correctly;
Signed-off-by: Victor Toso <victortoso@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | po/POTFILES.in | 2 | ||||
-rw-r--r-- | src/Makefile.am | 53 | ||||
-rw-r--r-- | tools/Makefile.am | 69 | ||||
-rw-r--r-- | tools/spice-cmdline.c (renamed from src/spice-cmdline.c) | 0 | ||||
-rw-r--r-- | tools/spice-cmdline.h (renamed from src/spice-cmdline.h) | 0 | ||||
-rw-r--r-- | tools/spicy-connect.c (renamed from src/spicy-connect.c) | 0 | ||||
-rw-r--r-- | tools/spicy-connect.h (renamed from src/spicy-connect.h) | 0 | ||||
-rw-r--r-- | tools/spicy-screenshot.c (renamed from src/spicy-screenshot.c) | 0 | ||||
-rw-r--r-- | tools/spicy-stats.c (renamed from src/spicy-stats.c) | 0 | ||||
-rw-r--r-- | tools/spicy.c (renamed from src/spicy.c) | 0 |
12 files changed, 72 insertions, 55 deletions
diff --git a/Makefile.am b/Makefile.am index 47cf840..31d4707 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,7 @@ ACLOCAL_AMFLAGS = -I m4 NULL = -SUBDIRS = spice-common src man po doc data +SUBDIRS = spice-common src man po doc data tools if BUILD_TESTS SUBDIRS += tests diff --git a/configure.ac b/configure.ac index f3e7f8d..4fd0bd7 100644 --- a/configure.ac +++ b/configure.ac @@ -590,6 +590,7 @@ po/Makefile.in src/Makefile src/spice-version.h src/controller/Makefile +tools/Makefile doc/Makefile doc/reference/Makefile man/Makefile diff --git a/po/POTFILES.in b/po/POTFILES.in index db42281..d1033f9 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -2,8 +2,8 @@ src/channel-main.c src/channel-usbredir.c src/desktop-integration.c src/spice-channel.c -src/spice-cmdline.c src/spice-option.c src/usb-device-manager.c src/usb-device-widget.c src/usbutil.c +tools/spice-cmdline.c diff --git a/src/Makefile.am b/src/Makefile.am index e43cee0..b991a5f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -45,10 +45,6 @@ EXTRA_DIST = \ DISTCLEANFILES = spice-version.h -bin_PROGRAMS = spicy-stats spicy-screenshot -if WITH_GTK -bin_PROGRAMS += spicy -endif if WITH_POLKIT acldir = $(ACL_HELPER_DIR) acl_PROGRAMS = spice-client-glib-usb-acl-helper @@ -383,31 +379,6 @@ endif libspice_client_glib_2_0_la_LIBADD += -lws2_32 -lgdi32 endif -spicy_SOURCES = \ - spicy.c \ - spicy-connect.h \ - spicy-connect.c \ - spice-cmdline.h \ - spice-cmdline.c \ - $(NULL) - -spicy_LDADD = \ - libspice-client-gtk-3.0.la \ - libspice-client-glib-2.0.la \ - $(GTHREAD_LIBS) \ - $(GTK_LIBS) \ - $(LIBM) \ - $(NULL) - -# FIXME: GtkAction and lots of GtkUIManager APIs are deprecated -spicy_CPPFLAGS = \ - $(AM_CPPFLAGS) \ - $(GTHREAD_CFLAGS) \ - -DSPICE_DISABLE_DEPRECATED \ - -Wno-deprecated-declarations \ - $(NULL) - - if WITH_POLKIT spice_client_glib_usb_acl_helper_SOURCES = \ spice-client-glib-usb-acl-helper.c \ @@ -436,30 +407,6 @@ install-data-hook: endif -spicy_screenshot_SOURCES = \ - spicy-screenshot.c \ - spice-cmdline.h \ - spice-cmdline.c \ - $(NULL) - -spicy_screenshot_LDADD = \ - libspice-client-glib-2.0.la \ - $(GOBJECT2_LIBS) \ - $(NULL) - -spicy_stats_SOURCES = \ - spicy-stats.c \ - spice-cmdline.h \ - spice-cmdline.c \ - $(NULL) - -spicy_stats_LDADD = \ - libspice-client-glib-2.0.la \ - $(GOBJECT2_LIBS) \ - $(NULL) - - - $(libspice_client_glib_2_0_la_SOURCES): spice-glib-enums.h spice-marshal.h if WITH_GTK diff --git a/tools/Makefile.am b/tools/Makefile.am new file mode 100644 index 0000000..0bdb3c5 --- /dev/null +++ b/tools/Makefile.am @@ -0,0 +1,69 @@ +bin_PROGRAMS = spicy-stats spicy-screenshot + +TOOLS_CPPFLAGS = \ + -DSPICE_COMPILATION \ + -I$(top_builddir)/src \ + -I$(top_srcdir) \ + -I$(top_srcdir)/src \ + $(COMMON_CFLAGS) \ + $(GLIB2_CFLAGS) \ + $(GIO_CFLAGS) \ + $(SMARTCARD_CFLAGS) \ + $(SPICE_CFLAGS) \ + $(NULL) + +if WITH_GTK +bin_PROGRAMS += spicy +TOOLS_CPPFLAGS += $(GTK_CFLAGS) +endif + +spicy_SOURCES = \ + spicy.c \ + spicy-connect.h \ + spicy-connect.c \ + spice-cmdline.h \ + spice-cmdline.c \ + $(NULL) + +spicy_LDADD = \ + $(top_builddir)/src/libspice-client-gtk-3.0.la \ + $(top_builddir)/src/libspice-client-glib-2.0.la \ + $(NULL) + +# FIXME: GtkAction and lots of GtkUIManager APIs are deprecated +spicy_CPPFLAGS = \ + $(TOOLS_CPPFLAGS) \ + -DSPICE_DISABLE_DEPRECATED \ + -Wno-deprecated-declarations \ + $(NULL) + +spicy_screenshot_SOURCES = \ + spicy-screenshot.c \ + spice-cmdline.h \ + spice-cmdline.c \ + $(NULL) + +spicy_screenshot_LDADD = \ + $(top_builddir)/src/libspice-client-glib-2.0.la \ + $(GOBJECT2_LIBS) \ + $(NULL) + +spicy_screenshot_CPPFLAGS = \ + $(TOOLS_CPPFLAGS) \ + $(NULL) + +spicy_stats_SOURCES = \ + spicy-stats.c \ + spice-cmdline.h \ + spice-cmdline.c \ + $(NULL) + +spicy_stats_LDADD = \ + $(top_builddir)/src/libspice-client-glib-2.0.la \ + $(NULL) + +spicy_stats_CPPFLAGS = \ + $(TOOLS_CPPFLAGS) \ + $(NULL) + +-include $(top_srcdir)/git.mk diff --git a/src/spice-cmdline.c b/tools/spice-cmdline.c index 4b6f4c2..4b6f4c2 100644 --- a/src/spice-cmdline.c +++ b/tools/spice-cmdline.c diff --git a/src/spice-cmdline.h b/tools/spice-cmdline.h index 11a8086..11a8086 100644 --- a/src/spice-cmdline.h +++ b/tools/spice-cmdline.h diff --git a/src/spicy-connect.c b/tools/spicy-connect.c index 39555a6..39555a6 100644 --- a/src/spicy-connect.c +++ b/tools/spicy-connect.c diff --git a/src/spicy-connect.h b/tools/spicy-connect.h index 56b2d80..56b2d80 100644 --- a/src/spicy-connect.h +++ b/tools/spicy-connect.h diff --git a/src/spicy-screenshot.c b/tools/spicy-screenshot.c index 68f9335..68f9335 100644 --- a/src/spicy-screenshot.c +++ b/tools/spicy-screenshot.c diff --git a/src/spicy-stats.c b/tools/spicy-stats.c index 8ca4cc1..8ca4cc1 100644 --- a/src/spicy-stats.c +++ b/tools/spicy-stats.c diff --git a/src/spicy.c b/tools/spicy.c index c502428..c502428 100644 --- a/src/spicy.c +++ b/tools/spicy.c |