From 8b8253b8ad40ba429f28c02ac987dfb7e4d0df4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Sun, 13 Mar 2016 21:19:10 +0000 Subject: GTK: Revert most of g11b058e MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't distribute gresource, it's redundant binary data, make the distribution more similar to Qt instead. We may want to check that glib-compile-resources is in the PATH during configure. Change-Id: I82c57f8169be0cbcac14d4ca79df8dece6c4d7ff Reviewed-on: https://code.wireshark.org/review/14455 Petri-Dish: João Valverde Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- ui/gtk/Makefile.am | 38 ++++++++++++++------------------------ ui/gtk/Makefile.common | 11 +++-------- 2 files changed, 17 insertions(+), 32 deletions(-) diff --git a/ui/gtk/Makefile.am b/ui/gtk/Makefile.am index 61457a4862..7a97c0afaa 100644 --- a/ui/gtk/Makefile.am +++ b/ui/gtk/Makefile.am @@ -22,21 +22,14 @@ include Makefile.common include $(top_srcdir)/Makefile.am.inc -# -# The gresource files are part of the distribution tarball (but can be rebuilt -# using glib-compile-resources). They're not checked in to the VCS tree. -# The pixbuf-csource files are also generated files but they're (currently) -# checked in to the VCS tree. From the point of view of the build system -# they're not considered generated source (they are never to be cleaned). -# Finally 'wireshark-tap-register.c' is generated source not part of the -# distribution tarball. It has no external dependencies and is to be built -# during compilation. -# - if HAVE_GRESOURCE_PIXBUF -LIBGTKUI_PIXBUF_SRC = wireshark-gresources.h wireshark-gresources.c +NODIST_GENERATED_FILES += \ + wireshark-gresources.h \ + wireshark-gresources.c else -LIBGTKUI_PIXBUF_SRC = pixbuf-csource.h pixbuf-csource.c +BUILD_PIXBUF_CSOURCE = \ + pixbuf-csource.h + pixbuf-csource.c endif AM_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS) $(GTK_CFLAGS) \ @@ -49,11 +42,10 @@ CLEANFILES = \ *~ DISTCLEANFILES = \ - $(GENERATED_FILES) + $(NODIST_GENERATED_FILES) MAINTAINERCLEANFILES = \ - wireshark-gresources.h \ - wireshark-gresources.c \ + $(GENERATED_FILES) \ Makefile.in EXTRA_DIST = \ @@ -75,11 +67,9 @@ EXTRA_DIST = \ pixbuf-csource.c \ pixbuf-csource.h -BUILT_SOURCES = - -if HAVE_GRESOURCE_PIXBUF -BUILT_SOURCES += $(LIBGTKUI_PIXBUF_SRC) -endif +BUILT_SOURCES = \ + $(GENERATED_FILES) \ + $(NODIST_GENERATED_FILES) noinst_LIBRARIES = libgtkui.a @@ -87,11 +77,11 @@ libgtkui_a_SOURCES = \ $(WIRESHARK_COMMON_GTK_SRC) \ $(WIRESHARK_COMMON_GTK_HDRS) \ $(WIRESHARK_TAP_SRC) \ - $(LIBGTKUI_PIXBUF_SRC) + $(GENERATED_FILES) nodist_libgtkui_a_SOURCES = \ - $(GENERATED_C_FILES) \ - $(GENERATED_HEADER_FILES) + $(NODIST_GENERATED_FILES) \ + $(BUILD_PIXBUF_CSOURCE) libgtkui_a_DEPENDENCIES = diff --git a/ui/gtk/Makefile.common b/ui/gtk/Makefile.common index 1b78d1ff3d..c33c1d88ff 100644 --- a/ui/gtk/Makefile.common +++ b/ui/gtk/Makefile.common @@ -24,17 +24,12 @@ # include Makefile_custom.common -# Generated header files that we want in the distribution. -GENERATED_HEADER_FILES = - # Generated C source files that we want in the distribution. -GENERATED_C_FILES = \ +GENERATED_FILES = \ wireshark-tap-register.c -# All the generated files. -GENERATED_FILES = \ - $(GENERATED_HEADER_FILES) \ - $(GENERATED_C_FILES) +# Generated C source files that we don't want in the distribution. +NODIST_GENERATED_FILES = # Files that generate compileable files GENERATOR_FILES = \ -- cgit v1.2.3