Build gtkwin32css.h from gtk-win32.css

This commit is contained in:
Alexander Larsson 2011-11-18 16:43:45 +01:00
parent e9ac60830d
commit a38c48be92

View File

@ -833,7 +833,8 @@ gtk_built_public_sources = \
# built headers that don't get installed
gtk_built_private_headers = \
gtkmarshalers.h \
gtkbuiltincache.h
gtkbuiltincache.h \
gtkwin32css.h
gtk_built_sources = \
gtktypebuiltins.c \
@ -845,6 +846,7 @@ gtk_built_sources = \
stamp_files = \
stamp-gtkmarshalers.h \
stamp-gtktypebuiltins.h \
stamp-gtkwin32css.h \
stamp-icons
# non-header sources (headers should be specified in the above variables)
@ -902,6 +904,14 @@ gtkmarshalers.c: @REBUILD@ gtkmarshalers.list
&& cp xgen-gmlc gtkmarshalers.c \
&& rm -f xgen-gmlc
gtkwin32css.h: stamp-gtkwin32css.h
@true
stamp-gtkwin32css.h: @REBUILD@ gtk-win32.css
$(AWK) 'BEGIN { print "static const char *gtk_win32_default_css = " } { print " \"" $$0 "\\n\""} END { print ";" }' < $(srcdir)/gtk-win32.css >> xgen-gmlh\
&& (cmp -s xgen-gmlh gtkwin32css.h || cp xgen-gmlh gtkwin32css.h) \
&& rm -f xgen-gmlh \
&& echo timestamp > $(@F)
gtktypebuiltins.h: stamp-gtktypebuiltins.h
@true
stamp-gtktypebuiltins.h: @REBUILD@ $(gtk_public_h_sources) $(deprecated_h_sources) gtktypebuiltins.h.template