From 4c95dbb05b754e14d26b561dce414e8461c999d2 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 13 Jun 2014 10:30:36 -0400 Subject: [PATCH] Don't include the win32 theme on Linux No need to carry around these resources when we are not going to use them. --- gtk/Makefile.am | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 73e01b9244..28f669c9ed 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -1382,10 +1382,12 @@ gtk.gresource.xml: n=`basename $$f`; \ echo -e " theme/Raleigh/$$n" >> $@; \ done; \ - for f in $(srcdir)/resources/theme/win32/*.css; do \ - n=`basename $$f`; \ - echo -e " theme/win32/$$n" >> $@; \ - done; \ + if test "$(win32_theme)" = "yes"; then \ + for f in $(srcdir)/resources/theme/win32/*.css; do \ + n=`basename $$f`; \ + echo -e " theme/win32/$$n" >> $@; \ + done; \ + fi; \ for f in $(srcdir)/resources/cursor/*.png; do \ n=`basename $$f`; \ echo -e " cursor/$$n" >> $@; \ @@ -1452,6 +1454,7 @@ libgtk_3_la_LIBADD = $(libadd) libgtk_3_la_DEPENDENCIES = $(deps) if USE_WIN32 +win32_theme=yes libgtk_3_la_LIBADD += -lole32 -lgdi32 -lcomdlg32 -lwinspool -lcomctl32 libgtk_3_la_LDFLAGS += -Wl,-luuid libgtk_3_la_DEPENDENCIES += $(gtk_def) $(gtk_win32_res) $(deps)