diff options
author | Daniel Elstner <danielk@openismus.com> | 2009-08-09 21:28:11 +0200 |
---|---|---|
committer | Daniel Elstner <danielk@openismus.com> | 2009-08-09 21:34:13 +0200 |
commit | 90feeb3e3b0f392d418a5a48c3711e5824ab086c (patch) | |
tree | b6197a5119b505b0aad0d71194ded246f0445fdc /configure.ac | |
parent | 975e6813cc61d5b90c5ccd00aba12ac505dfe485 (diff) | |
download | glibmm-90feeb3e3b0f392d418a5a48c3711e5824ab086c.tar.gz |
Get rid of all Makefile.am in the MSVC dirs
* MSVC_Net2005/**/Makefile.am: Delete recursive build files.
* MSVC_Net2008/**/Makefile.am: ditto.
* MSVC_Net2005/filelist.am: New file. Recursively list all
files that should go into the distribution.
* MSVC_Net2008/filelist.am: ditto.
* configure.ac (AC_CONFIG_FILES): Remove all Makefile outputs
to the MSVC subdirectories. Combine all the remaining output
files into a single argument to just one AC_CONFIG_FILES call.
Follow through with a number of TODO comments and remove some
old cruft which is no longer used anywhere in the module.
(AC_CONFIG_COMMANDS): Copy the configuration header files into
the MSVC subdirectories by making config.status execute custom
configuration commands. This is easier than doing it at the
Makefile level, where it was previously implemented.
* Makefile.am: Include the filelist.am files from the MSVC
subdirectories.
(SUBDIRS): Remove MSVC_Net200[58] directories from the list.
(dist_noinst_DATA): Distribute the MSVC project files.
* tools/gmmproc.in: Substitute @PERL@ instead of @PERL_PATH@.
* tools/generate_wrap_init.pl.in: ditto.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 107 |
1 files changed, 28 insertions, 79 deletions
diff --git a/configure.ac b/configure.ac index 45839447..7a441fc9 100644 --- a/configure.ac +++ b/configure.ac @@ -18,7 +18,6 @@ AC_INIT([glibmm], [2.21.3], [http://bugzilla.gnome.org/enter_bug.cgi?product=glibmm], [glibmm], [http://www.gtkmm.org/]) AC_PREREQ([2.59]) -m4_pattern_forbid([^_?MM_]) AC_CONFIG_SRCDIR([glib/glibmm.h]) AC_CONFIG_AUX_DIR([build]) @@ -69,15 +68,8 @@ PKG_CHECK_MODULES([GIOMM], [$GIOMM_MODULES]) MM_PKG_CONFIG_SUBST([GTHREAD_CFLAGS], [--cflags-only-other gthread-2.0]) MM_PKG_CONFIG_SUBST([GTHREAD_LIBS], [--libs gthread-2.0]) -# Location to install gmmproc tools -# TODO: There is no reason for this to be a substitution variable -AC_SUBST([GMMPROC_DIR], ['${libdir}/glibmm-2.4/proc']) - AC_CHECK_PROGS([M4], [gm4 m4], [m4]) -# TODO: Temporary hack -AC_PATH_PROG([PERL_PATH], [perl], [perl]) - # Check for the SUN Forte compiler, and define GLIBMM_COMPILER_SUN_FORTE in the header. GLIBMM_PROG_CXX_SUN @@ -117,10 +109,6 @@ GLIBMM_CXX_CAN_USE_NAMESPACES_INSIDE_EXTERNC GLIBMM_CXX_ALLOWS_STATIC_INLINE_NPOS GLIBMM_C_STD_TIME_T_IS_NOT_INT32 -# Create a list of input directories for Doxygen. -# TODO: kill -GTKMM_DOXYGEN_INPUT_SUBDIRS([glib gio]) - MM_ARG_ENABLE_DOCUMENTATION MM_ARG_WITH_TAGFILE_DOC([libstdc++.tag], [mm-common-libstdc++]) MM_ARG_WITH_TAGFILE_DOC([libsigc++-2.0.tag], [sigc++-2.0]) @@ -134,9 +122,6 @@ MM_ARG_ENABLE_WARNINGS([GLIBMM_WXXFLAGS], [-pedantic -Wall -Wextra], [G]) -# TODO: kill dummy -AC_SUBST([DISABLE_DEPRECATED_CFLAGS], [[]]) - #Offer the ability to omit some API from the library, #to reduce the code size: GLIBMM_ARG_ENABLE_API_DEPRECATED @@ -148,68 +133,32 @@ GLIBMM_ARG_ENABLE_API_VFUNCS # to reduce the code size: GLIBMM_ARG_ENABLE_API_DEFAULT_SIGNAL_HANDLERS -# Dummy conditional just to make automake-1.4 happy. -# We need an always-false condition in docs/Makefile.am. -# TODO: kill -AM_CONDITIONAL(GTKMM_FALSE,[false]) - -AC_CONFIG_FILES([ - Makefile - - glib/glibmm-2.4.pc - glib/src/Makefile - glib/glibmm/Makefile - - gio/giomm-2.4.pc - gio/src/Makefile - gio/giomm/Makefile - - tools/Makefile - tools/gmmproc - tools/generate_wrap_init.pl -]) - -AC_CONFIG_FILES([ - tests/Makefile - examples/Makefile - - docs/Makefile - docs/reference/Doxyfile -]) - -AC_CONFIG_FILES([ - MSVC_Net2005/Makefile - MSVC_Net2005/gendef/Makefile - MSVC_Net2005/glibmm/Makefile - MSVC_Net2005/glibmm/glibmm.rc - MSVC_Net2005/giomm/Makefile - MSVC_Net2005/giomm/giomm.rc - MSVC_Net2005/examples/Makefile - MSVC_Net2005/examples/dispatcher/Makefile - MSVC_Net2005/examples/dispatcher2/Makefile - MSVC_Net2005/examples/markup/Makefile - MSVC_Net2005/examples/options/Makefile - MSVC_Net2005/examples/thread/Makefile - MSVC_Net2005/examples/thread_pool/Makefile - MSVC_Net2005/tests/Makefile - MSVC_Net2005/tests/glibmm_value/Makefile - MSVC_Net2005/tests/giomm_simple/Makefile - - MSVC_Net2008/Makefile - MSVC_Net2008/gendef/Makefile - MSVC_Net2008/glibmm/Makefile - MSVC_Net2008/glibmm/glibmm.rc - MSVC_Net2008/giomm/Makefile - MSVC_Net2008/giomm/giomm.rc - MSVC_Net2008/examples/Makefile - MSVC_Net2008/examples/dispatcher/Makefile - MSVC_Net2008/examples/dispatcher2/Makefile - MSVC_Net2008/examples/markup/Makefile - MSVC_Net2008/examples/options/Makefile - MSVC_Net2008/examples/thread/Makefile - MSVC_Net2008/examples/thread_pool/Makefile - MSVC_Net2008/tests/Makefile - MSVC_Net2008/tests/glibmm_value/Makefile - MSVC_Net2008/tests/giomm_simple/Makefile -]) +AC_CONFIG_FILES([Makefile + tools/Makefile + tools/gmmproc + tools/generate_wrap_init.pl + glib/glibmm-2.4.pc + glib/src/Makefile + glib/glibmm/Makefile + gio/giomm-2.4.pc + gio/src/Makefile + gio/giomm/Makefile + tests/Makefile + examples/Makefile + docs/Makefile + docs/reference/Doxyfile + MSVC_Net2005/glibmm/glibmm.rc + MSVC_Net2005/giomm/giomm.rc + MSVC_Net2008/glibmm/glibmm.rc + MSVC_Net2008/giomm/giomm.rc]) + +# Copy the generated configuration headers into the MSVC project directories. +AC_CONFIG_COMMANDS([MSVC_Net2005/glibmm/glibmmconfig.h], + [cp -f glib/glibmmconfig.h MSVC_Net2005/glibmm/glibmmconfig.h]) +AC_CONFIG_COMMANDS([MSVC_Net2005/giomm/giommconfig.h], + [cp -f gio/giommconfig.h MSVC_Net2005/giomm/giommconfig.h]) +AC_CONFIG_COMMANDS([MSVC_Net2008/glibmm/glibmmconfig.h], + [cp -f glib/glibmmconfig.h MSVC_Net2008/glibmm/glibmmconfig.h]) +AC_CONFIG_COMMANDS([MSVC_Net2008/giomm/giommconfig.h], + [cp -f gio/giommconfig.h MSVC_Net2008/giomm/giommconfig.h]) AC_OUTPUT |