Move extract-strings to its own directory

This will hopefully help resolve the circular dependency between
libgtk linking against inspector/libgtkinspector and inspector/
needing extract-strings from gtk/.

I didn't preserve the EXEEXT decorations in this operation -
automake gave me stern warnings about it, so I just dropped them
all. Somebody who cross-builds GTK+ will have to reconstruct this.
This commit is contained in:
Matthias Clasen
2014-05-27 15:54:38 -04:00
parent ea2d20e313
commit a28d2cb923
5 changed files with 20 additions and 20 deletions

View File

@ -1888,6 +1888,7 @@ gtk/gtkversion.h
gtk/gtk-win32.rc gtk/gtk-win32.rc
gtk/inspector/Makefile gtk/inspector/Makefile
gtk/native/Makefile gtk/native/Makefile
util/Makefile
libgail-util/Makefile libgail-util/Makefile
modules/Makefile modules/Makefile
modules/input/Makefile modules/input/Makefile

View File

@ -1321,9 +1321,9 @@ COMPOSITE_TEMPLATES = \
template_headers = $(COMPOSITE_TEMPLATES:.ui=.ui.h) template_headers = $(COMPOSITE_TEMPLATES:.ui=.ui.h)
%.ui.h: %.ui extract-strings$(BUILD_EXEEXT) %.ui.h: %.ui
$(AM_V_GEN) mkdir -p $(dir $@) \ $(AM_V_GEN) mkdir -p $(dir $@) \
&& ./extract-strings$(BUILD_EXEEXT) $< > $@ && $(top_builddir)/util/extract-strings$(BUILD_EXEEXT) $< > $@
# #
# rules to generate built sources # rules to generate built sources
@ -1616,17 +1616,6 @@ endif
gtk_launch_LDADD = $(LDADDS) gtk_launch_LDADD = $(LDADDS)
gtk_launch_SOURCES = gtk-launch.c gtk_launch_SOURCES = gtk-launch.c
# The extract_strings tool is a build utility that runs on the build system.
extract_strings_sources = extract-strings.c
extract_strings_cppflags =
extract_strings_cflags = $(GLIB_CFLAGS_FOR_BUILD)
extract_strings_ldadd = $(GLIB_LIBS_FOR_BUILD)
extract-strings$(BUILD_EXEEXT): $(extract_strings_sources)
@rm -f extract-strings$(BUILD_EXEEXT)
$(AM_V_CCLD)$(CC_FOR_BUILD) $(extract_strings_cppflags) $(CPPFLAGS_FOR_BUILD) $(extract_strings_cflags) $(CFLAGS_FOR_BUILD) $^ $(LDFLAGS_FOR_BUILD) $(extract_strings_ldadd) $(LIBS_FOR_BUILD) -o $@
EXTRA_DIST += $(extract_strings_sources)
DISTCLEANFILES += extract-strings
.PHONY: files test test-debug .PHONY: files test test-debug
files: files:

View File

@ -6,13 +6,14 @@ resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --gener
resources.h: inspector.gresource.xml resources.h: inspector.gresource.xml
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/inspector.gresource.xml \ $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/inspector.gresource.xml \
--target=$@ --sourcedir=$(srcdir) --c-name gtk_inspector --generate-header --manual-register --target=$@ --sourcedir=$(srcdir) --c-name gtk_inspector --generate-header --manual-register
resources.c: inspector.gresource.xml $(resource_files) $(template_headers) resources.c: inspector.gresource.xml $(resource_files)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/inspector.gresource.xml \ $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/inspector.gresource.xml \
--target=$@ --sourcedir=$(srcdir) --c-name gtk_inspector --generate-source --manual-register --target=$@ --sourcedir=$(srcdir) --c-name gtk_inspector --generate-source --manual-register
BUILT_SOURCES = \ BUILT_SOURCES = \
resources.h \ resources.h \
resources.c resources.c \
$(template_headers)
libgtkinspector_la_SOURCES = \ libgtkinspector_la_SOURCES = \
actions.h \ actions.h \
@ -98,11 +99,9 @@ templates = \
template_headers = $(templates:.ui=.ui.h) template_headers = $(templates:.ui=.ui.h)
BUILT_SOURCES += $(template_headers) extract_strings = $(top_builddir)/util/extract-strings
extract_strings = $(top_builddir)/gtk/extract-strings$(BUILD_EXEEXT) %.ui.h : %.ui
%.ui.h: %.ui $(extract_strings)
$(AM_V_GEN) $(extract_strings) $< > $@ $(AM_V_GEN) $(extract_strings) $< > $@
EXTRA_DIST += \ EXTRA_DIST += \
@ -112,7 +111,7 @@ EXTRA_DIST += \
MAINTAINERCLEANFILES = \ MAINTAINERCLEANFILES = \
resources.c \ resources.c \
resources.h resources.h \
$(template_headers) $(template_headers)
distclean-local: distclean-local:

11
util/Makefile.am Normal file
View File

@ -0,0 +1,11 @@
# The extract_strings tool is a build utility that runs on the build system.
extract_strings_sources = extract-strings.c
extract_strings_cppflags =
extract_strings_cflags = $(GLIB_CFLAGS_FOR_BUILD)
extract_strings_ldadd = $(GLIB_LIBS_FOR_BUILD)
extract-strings: $(extract_strings_sources)
@rm -f extract-strings
$(AM_V_CCLD)$(CC_FOR_BUILD) $(extract_strings_cppflags) $(CPPFLAGS_FOR_BUILD) $(extract_strings_cflags) $(CFLAGS_FOR_BUILD) $^ $(LDFLAGS_FOR_BUILD) $(extract_strings_ldadd) $(LIBS_FOR_BUILD) -o $@
noinst_PROGRAMS = extract-strings