move glibconfig.h to glib/

This commit is contained in:
Ryan Lortie 2010-07-11 21:08:42 -04:00
parent 29a6fb68b7
commit 83d67bf2e7
9 changed files with 41 additions and 32 deletions

2
.gitignore vendored
View File

@ -30,9 +30,7 @@ missing
install-sh install-sh
glib-gettextize glib-gettextize
glib-zip glib-zip
glibconfig.h
gtk-doc.make gtk-doc.make
glibconfig.h.win32
INSTALL INSTALL
README README

View File

@ -43,7 +43,6 @@ EXTRA_DIST += \
Makefile.decl \ Makefile.decl \
mkinstalldirs \ mkinstalldirs \
makefile.msc \ makefile.msc \
glibconfig.h.win32.in \
msvc_recommended_pragmas.h \ msvc_recommended_pragmas.h \
config.h.win32.in \ config.h.win32.in \
po/po2tbl.sed.in \ po/po2tbl.sed.in \
@ -70,26 +69,11 @@ BUILT_EXTRA_DIST = \
README \ README \
INSTALL \ INSTALL \
ChangeLog \ ChangeLog \
glibconfig.h.win32 \
config.h.win32 \ config.h.win32 \
gtk-doc.make gtk-doc.make
configexecincludedir = $(libdir)/glib-2.0/include
configexecinclude_DATA = glibconfig.h
uninstall-local:
rm -f $(DESTDIR)$(configexecincludedir)/glibconfig.h
CONFIGURE_DEPENDENCIES = acglib.m4 CONFIGURE_DEPENDENCIES = acglib.m4
BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
glibconfig.h: stamp-gc-h
$(AM_V_GEN) if test -f glibconfig.h; then :; \
else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
stamp-gc-h: config.status
cd $(top_builddir) && $(SHELL) ./config.status glibconfig.h
echo timestamp > stamp-gc-h
ChangeLog: ChangeLog:
$(AM_V_GEN) if test -d "$(srcdir)/.git"; then \ $(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
(GIT_DIR=$(top_srcdir)/.git ./missing --run git log GLIB_2_20_0^^.. --stat) | fmt --split-only > $@.tmp \ (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GLIB_2_20_0^^.. --stat) | fmt --split-only > $@.tmp \
@ -123,7 +107,7 @@ gettext_SCRIPTS = mkinstalldirs
# build documentation when doing distcheck # build documentation when doing distcheck
DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man
DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h config.lt DISTCLEANFILES = config.lt
distclean-local: lcov-clean distclean-local: lcov-clean
if test $(srcdir) = .; then :; else \ if test $(srcdir) = .; then :; else \

View File

@ -2911,10 +2911,10 @@ dnl *** output the whole stuff ***
dnl ****************************** dnl ******************************
dnl this section will only be run if config.status is invoked with no dnl this section will only be run if config.status is invoked with no
dnl arguments, or with "glibconfig.h" as an argument. dnl arguments, or with "glib/glibconfig.h" as an argument.
AC_CONFIG_COMMANDS([glibconfig.h], AC_CONFIG_COMMANDS([glib/glibconfig.h],
[ [
outfile=glibconfig.h-tmp outfile=glib/glibconfig.h-tmp
cat > $outfile <<\_______EOF cat > $outfile <<\_______EOF
/* glibconfig.h /* glibconfig.h
* *
@ -3283,11 +3283,11 @@ G_END_DECLS
_______EOF _______EOF
if cmp -s $outfile glibconfig.h; then if cmp -s $outfile glib/glibconfig.h; then
AC_MSG_NOTICE([glibconfig.h is unchanged]) AC_MSG_NOTICE([glib/glibconfig.h is unchanged])
rm -f $outfile rm -f $outfile
else else
mv $outfile glibconfig.h mv $outfile glib/glibconfig.h
fi fi
],[ ],[
@ -3739,7 +3739,7 @@ if false; then
INSTALL INSTALL
README README
config.h.win32 config.h.win32
glibconfig.h.win32 glib/glibconfig.h.win32
glib/makefile.msc glib/makefile.msc
glib/glib.rc glib/glib.rc
gmodule/makefile.msc gmodule/makefile.msc

View File

@ -1,6 +1,6 @@
#! /bin/sh #! /bin/sh
egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glibconfig.h" > glibconfig.cpp egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glib/glibconfig.h" > glibconfig.cpp
INCLUDES="-include ${top_builddir:-..}/config.h" INCLUDES="-include ${top_builddir:-..}/config.h"
INCLUDES="$INCLUDES -include glibconfig.cpp" INCLUDES="$INCLUDES -include glibconfig.cpp"

4
glib/.gitignore vendored
View File

@ -1,3 +1,7 @@
glibconfig.h
glibconfig.h.win32
glibconfig-stamp
gtester gtester
libglib-gdb.py libglib-gdb.py
makefile.msc makefile.msc

View File

@ -1,7 +1,28 @@
## Process this file with automake to produce Makefile.in ## Process this file with automake to produce Makefile.in
include $(top_srcdir)/Makefile.decl include $(top_srcdir)/Makefile.decl
CLEANFILES= BUILT_SOURCES =
DISTCLEANFILES =
CLEANFILES =
#
# Generate glibconfig.h
#
# The timestamp of the stamp file is used to indicate if glibconfig.h is
# up to date with respect to config.status. In the usual case, changes
# to config.status will not result in changes to glibconfig.h so we
# avoid touching its timestamp (in order not to rebuild the whole tree).
#
DISTCLEANFILES += glibconfig-stamp glibconfig.h
BUILT_SOURCES += glibconfig-stamp
configexecincludedir = $(libdir)/glib-2.0/include
configexecinclude_HEADERS = glibconfig.h
glibconfig-stamp: ../config.status
$(AM_V_GEN) cd $(top_builddir) && \
$(SHELL) ./config.status glib/glibconfig.h
@touch glibconfig-stamp
if HAVE_GOOD_PRINTF if HAVE_GOOD_PRINTF
else else
@ -63,6 +84,7 @@ EXTRA_DIST += \
glib.rc.in \ glib.rc.in \
gen-unicode-tables.pl \ gen-unicode-tables.pl \
gen-script-table.pl \ gen-script-table.pl \
glibconfig.h.win32.in \
abicheck.sh \ abicheck.sh \
glib.symbols \ glib.symbols \
gregex.c \ gregex.c \
@ -74,6 +96,7 @@ EXTRA_DIST += \
# These may be in the builddir too # These may be in the builddir too
BUILT_EXTRA_DIST = \ BUILT_EXTRA_DIST = \
makefile.msc \ makefile.msc \
glibconfig.h.win32 \
glib.rc glib.rc
lib_LTLIBRARIES = libglib-2.0.la lib_LTLIBRARIES = libglib-2.0.la
@ -317,14 +340,13 @@ libglib_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
INSTALL_PROGS= INSTALL_PROGS=
if ENABLE_DTRACE if ENABLE_DTRACE
glib_probes.h: glib_probes.d Makefile glib_probes.h: glib_probes.d Makefile
$(DTRACE) -C -h -s $< -o $@.tmp $(DTRACE) -C -h -s $< -o $@.tmp
sed -e "s,define STAP_HAS_SEMAPHORES 1,undef STAP_HAS_SEMAPHORES," < $@.tmp > $@ && rm -f $@.tmp sed -e "s,define STAP_HAS_SEMAPHORES 1,undef STAP_HAS_SEMAPHORES," < $@.tmp > $@ && rm -f $@.tmp
glib_probes.o: glib_probes.d Makefile glib_probes.o: glib_probes.d Makefile
$(DTRACE) -G -s $< -o $@ $(DTRACE) -G -s $< -o $@
BUILT_SOURCES = glib_probes.h glib_probes.o BUILT_SOURCES += glib_probes.h glib_probes.o
CLEANFILES += glib_probes.h glib_probes.h.tmp CLEANFILES += glib_probes.h glib_probes.h.tmp
libglib_2_0_la_LIBADD += glib_probes.o libglib_2_0_la_LIBADD += glib_probes.o
endif endif
@ -347,6 +369,7 @@ gspawn-win64-helper-console.c:
echo '#define HELPER_CONSOLE' >$@ echo '#define HELPER_CONSOLE' >$@
echo '#include "gspawn-win32-helper.c"' >>$@ echo '#include "gspawn-win32-helper.c"' >>$@
if OS_WIN32 if OS_WIN32
if OS_WIN32_X64 if OS_WIN32_X64
INSTALL_PROGS += gspawn-win64-helper gspawn-win64-helper-console INSTALL_PROGS += gspawn-win64-helper gspawn-win64-helper-console

View File

@ -1,6 +1,6 @@
#! /bin/sh #! /bin/sh
egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glibconfig.h" > glibconfig.cpp egrep '^#([^i]|if).*[^\]$' "${builddir:-.}/glibconfig.h" > glibconfig.cpp
INCLUDES="-include ${top_builddir:-..}/config.h" INCLUDES="-include ${top_builddir:-..}/config.h"
INCLUDES="$INCLUDES -include glibconfig.cpp $GLIB_DEBUG_FLAGS" INCLUDES="$INCLUDES -include glibconfig.cpp $GLIB_DEBUG_FLAGS"

View File

@ -1,6 +1,6 @@
#! /bin/sh #! /bin/sh
egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glibconfig.h" > glibconfig.cpp egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glib/glibconfig.h" > glibconfig.cpp
INCLUDES="-include ${top_builddir:-..}/config.h" INCLUDES="-include ${top_builddir:-..}/config.h"
INCLUDES="$INCLUDES -include glibconfig.cpp" INCLUDES="$INCLUDES -include glibconfig.cpp"