[virt-tools-list] [PATCH virt-viewer v2 1/2] Add libvirt-viewer-util library an use it in tests
Fabiano Fidêncio
fidencio at redhat.com
Mon Mar 14 07:42:30 UTC 2016
Pavel,
On Fri, Mar 11, 2016 at 6:13 PM, Pavel Grunt <pgrunt at redhat.com> wrote:
> Acked-by: Fabiano Fidêncio <fidencio at redhat.com>
> Acked-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
> ---
> src/Makefile.am | 30 ++++++++++++++++++++++--------
> 1 file changed, 22 insertions(+), 8 deletions(-)
>
> diff --git a/src/Makefile.am b/src/Makefile.am
> index 2cd9001..40c5876 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -3,7 +3,7 @@ LDADD =
> MAINTAINERCLEANFILES =
> bin_PROGRAMS =
>
> -noinst_LTLIBRARIES = libvirt-viewer.la
> +noinst_LTLIBRARIES = libvirt-viewer-util.la libvirt-viewer.la
>
> noinst_DATA = \
> virt-viewer.xml \
> @@ -45,10 +45,13 @@ CLEANFILES = \
> $(BUILT_SOURCES) \
> $(NULL)
>
> -libvirt_viewer_la_SOURCES = \
> - $(BUILT_SOURCES) \
> +libvirt_viewer_util_la_SOURCES = \
> virt-viewer-util.h \
> virt-viewer-util.c \
> + $(NULL)
> +
> +libvirt_viewer_la_SOURCES = \
> + $(BUILT_SOURCES) \
Following what you're doing below, I guess you can use a space and "\"
instead of tabs here ...
> virt-viewer-auth.h \
> virt-viewer-auth.c \
> virt-viewer-app.h \
> @@ -120,20 +123,25 @@ COMMON_CFLAGS = \
> $(WARN_CFLAGS) \
> $(NULL)
>
> +libvirt_viewer_util_la_LIBADD = \
> + $(COMMON_LIBS) \
> + $(NULL)
> +
> +libvirt_viewer_util_la_CFLAGS = \
> + $(COMMON_CFLAGS) \
> + $(NULL)
>
> libvirt_viewer_la_LIBADD = \
> $(COMMON_LIBS) \
> $(NULL)
>
> libvirt_viewer_la_CFLAGS = \
> - $(COMMON_CFLAGS)
> + $(COMMON_CFLAGS) \
> $(NULL)
>
> check_PROGRAMS = test-version-compare test-monitor-mapping
> TESTS = $(check_PROGRAMS)
> test_version_compare_SOURCES = \
> - virt-viewer-util.c \
> - virt-viewer-util.h \
> test-version-compare.c \
> $(NULL)
> test_version_compare_LDFLAGS = \
> @@ -148,10 +156,11 @@ test_version_compare_CFLAGS = \
> $(LIBXML2_CFLAGS) \
> $(WARN_CFLAGS) \
> $(NULL)
> +test_version_compare_LDADD = \
> + libvirt-viewer-util.la \
> + $(NULL)
Same here ....
>
> test_monitor_mapping_SOURCES = \
> - virt-viewer-util.c \
> - virt-viewer-util.h \
> test-monitor-mapping.c \
> $(NULL)
> test_monitor_mapping_LDFLAGS = \
> @@ -166,6 +175,9 @@ test_monitor_mapping_CFLAGS = \
> $(LIBXML2_CFLAGS) \
> $(WARN_CFLAGS) \
> $(NULL)
> +test_monitor_mapping_LDADD = \
> + libvirt-viewer-util.la \
> + $(NULL)
Same here ...
>
> if HAVE_LIBVIRT
> bin_PROGRAMS += virt-viewer
> @@ -183,6 +195,7 @@ virt_viewer_CFLAGS = \
> $(LIBVIRT_CFLAGS) \
> $(NULL)
> virt_viewer_LDADD = \
> + libvirt-viewer-util.la \
> libvirt-viewer.la \
> $(NULL)
> endif
> @@ -205,6 +218,7 @@ remote_viewer_CFLAGS = \
> $(SPICE_CONTROLLER_CFLAGS) \
> $(NULL)
> remote_viewer_LDADD = \
> + libvirt-viewer-util.la \
> libvirt-viewer.la \
> $(NULL)
>
> --
> 2.7.2
>
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
Feel free to change it or not, as IMHO this patch is good to be pushed
with or without the change.
Best Regards,
--
Fabiano Fidêncio
More information about the virt-tools-list
mailing list