gnomemm r1929 - in cluttermm_tutorial/trunk: . m4
- From: daniel svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1929 - in cluttermm_tutorial/trunk: . m4
- Date: Mon, 29 Dec 2008 21:45:51 +0000 (UTC)
Author: daniel
Date: Mon Dec 29 21:45:51 2008
New Revision: 1929
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1929&view=rev
Log:
Add autoconf/automake build environment.
Note that there is no autogen.sh -- just run "autoreconf -if" instead.
Added:
cluttermm_tutorial/trunk/AUTHORS
cluttermm_tutorial/trunk/ChangeLog
cluttermm_tutorial/trunk/Makefile.am
cluttermm_tutorial/trunk/NEWS
cluttermm_tutorial/trunk/README
cluttermm_tutorial/trunk/configure.ac
cluttermm_tutorial/trunk/m4/
cluttermm_tutorial/trunk/m4/dk-warn.m4
Added: cluttermm_tutorial/trunk/AUTHORS
==============================================================================
Added: cluttermm_tutorial/trunk/Makefile.am
==============================================================================
--- (empty file)
+++ cluttermm_tutorial/trunk/Makefile.am Mon Dec 29 21:45:51 2008
@@ -0,0 +1,77 @@
+## Copyright (c) 2008 Openismus GmbH <danielk openismus com>
+##
+## This file is part of the Cluttermm Tutorial.
+##
+## The Cluttermm Tutorial is free software; you can redistribute it and/or
+## modify it under the terms of the GNU General Public License as published
+## by the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## The Cluttermm Tutorial is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with the Cluttermm Tutorial; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+## This project does not use recursive make, but a single toplevel Makefile
+## to build the entire tree (excluding the po subdirectory as gettext comes
+## with its own build system). Read Peter Miller's excellent paper to learn
+## why recursive make invocations are both slow and error-prone:
+## http://members.pcug.org.au/~millerp/rmch/recu-make-cons-harm.html
+
+AUTOMAKE_OPTIONS = subdir-objects
+ACLOCAL_AMFLAGS = -I m4 $(ACLOCAL_FLAGS)
+DISTCHECK_CONFIGURE_FLAGS = --enable-warnings=fatal
+
+bin_PROGRAMS = \
+ examples/actor/example \
+ examples/actor_group/example \
+ examples/actor_transformations/example \
+ examples/behaviour/example \
+ examples/custom_actor/example \
+ examples/custom_container/example \
+ examples/effects/example \
+ examples/full_example/example \
+ examples/score/example \
+ examples/stage/example \
+ examples/stage_widget/example \
+ examples/timeline/example
+
+examples_actor_example_SOURCES = examples/actor/main.cc
+examples_actor_group_example_SOURCES = examples/actor_group/main.cc
+examples_actor_transformations_example_SOURCES = examples/actor_transformations/main.cc
+examples_behaviour_example_SOURCES = examples/behaviour/main.cc
+examples_custom_actor_example_SOURCES = \
+ examples/custom_actor/main.cc \
+ examples/custom_actor/triangle_actor.cc \
+ examples/custom_actor/triangle_actor.h
+examples_custom_container_example_SOURCES = \
+ examples/custom_container/examplebox.cc \
+ examples/custom_container/examplebox.h \
+ examples/custom_container/main.cc
+examples_effects_example_SOURCES = examples/effects/main.cc
+examples_full_example_example_SOURCES = examples/full_example/main.cc
+examples_score_example_SOURCES = examples/score/main.cc
+examples_stage_example_SOURCES = examples/stage/main.cc
+examples_stage_widget_example_SOURCES = examples/stage_widget/main.cc
+examples_timeline_example_SOURCES = examples/timeline/main.cc
+
+AM_CPPFLAGS = $(TUTORIAL_MODULES_CFLAGS)
+AM_CXXFLAGS = $(TUTORIAL_WXXFLAGS)
+LDADD = $(TUTORIAL_MODULES_LIBS)
+
+dist_pkgdata_DATA = \
+ examples/full_example/images/alexander_larsson.jpg \
+ examples/full_example/images/andreas_nilsson.jpg \
+ examples/full_example/images/bastian_nocera.jpg \
+ examples/full_example/images/christian_kellner.jpg \
+ examples/full_example/images/david_zeuthen.jpg \
+ examples/full_example/images/john_palmieri.jpg \
+ examples/full_example/images/jonathan_blandford.jpg \
+ examples/full_example/images/matthew_allum.jpg \
+ examples/full_example/images/matthias_clasen.jpg \
+ examples/full_example/images/mikael_hallendal.jpg \
+ examples/full_example/images/ryan_lortie.jpg
Added: cluttermm_tutorial/trunk/NEWS
==============================================================================
Added: cluttermm_tutorial/trunk/README
==============================================================================
--- (empty file)
+++ cluttermm_tutorial/trunk/README Mon Dec 29 21:45:51 2008
@@ -0,0 +1,9 @@
+Cluttermm Tutorial
+==================
+
+This package no longer comes with its own autogen.sh script.
+To generate the build environment within a fresh checkout, run:
+
+ autoreconf --install --force
+
+Continue with "./configure; make" as usual.
Added: cluttermm_tutorial/trunk/configure.ac
==============================================================================
--- (empty file)
+++ cluttermm_tutorial/trunk/configure.ac Mon Dec 29 21:45:51 2008
@@ -0,0 +1,43 @@
+## Copyright (c) 2008 Openismus GmbH <danielk openismus com>
+##
+## This file is part of the Cluttermm Tutorial.
+##
+## The Cluttermm Tutorial is free software; you can redistribute it and/or
+## modify it under the terms of the GNU General Public License as published
+## by the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## The Cluttermm Tutorial is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with the Cluttermm Tutorial; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+AC_INIT([cluttermm_tutorial], [0.9], [http://www.gtkmm.org/], [cluttermm_tutorial])
+AC_PREREQ([2.58])
+
+AC_CONFIG_SRCDIR([examples/custom_actor/triangle_actor.cc])
+AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_HEADERS([config.h])
+
+AM_INIT_AUTOMAKE([1.8 -Wall gnu no-define nostdinc])
+AC_ARG_VAR([ACLOCAL_FLAGS], [aclocal flags, e.g. -I <macro dir>])
+
+AC_PROG_CXX()
+PKG_CHECK_MODULES([TUTORIAL_MODULES], [cluttermm-0.9 >= 0.9.0 clutter-gtkmm-0.9 >= 0.9.0])
+
+AC_LANG([C++])
+
+# Disabling -Wnon-virtual-dtor is nasty, but unfortunately required due to
+# a bug in gconfmm that triggers this warning. Not disabling this warning
+# would make --enable-warnings=fatal unusable.
+DK_ARG_ENABLE_WARNINGS([TUTORIAL_WXXFLAGS],
+ [-Wall -w1 -Wno-non-virtual-dtor],
+ [-pedantic -Wall -Wextra -w1 -Wno-non-virtual-dtor],
+ [GLIBMM GTKMM])
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT()
Added: cluttermm_tutorial/trunk/m4/dk-warn.m4
==============================================================================
--- (empty file)
+++ cluttermm_tutorial/trunk/m4/dk-warn.m4 Mon Dec 29 21:45:51 2008
@@ -0,0 +1,114 @@
+## Copyright (c) 2004-2007 Daniel Elstner <daniel kitta gmail com>
+##
+## This file is part of danielk's Autostuff.
+##
+## danielk's Autostuff is free software; you can redistribute it and/or
+## modify it under the terms of the GNU General Public License as published
+## by the Free Software Foundation; either version 2 of the License, or (at
+## your option) any later version.
+##
+## danielk's Autostuff is distributed in the hope that it will be useful, but
+## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+## for more details.
+##
+## You should have received a copy of the GNU General Public License along
+## with danielk's Autostuff; if not, write to the Free Software Foundation,
+## Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+#serial 20070116
+
+## DK_ARG_ENABLE_WARNINGS(variable, min-flags, max-flags, [deprecation-prefixes])
+##
+## Provide the --enable-warnings configure argument, set to "min" by default.
+## <min-flags> and <max-flags> should be space-separated lists of compiler
+## warning flags to use with --enable-warnings=min or --enable-warnings=max,
+## respectively. Warning level "fatal" is the same as "max" but in addition
+## enables -Werror mode.
+##
+## If not empty, <deprecation-prefixes> should be a list of module prefixes
+## which is expanded to -D<module>_DISABLE_DEPRECATED flags if fatal warnings
+## are enabled, too.
+##
+AC_DEFUN([DK_ARG_ENABLE_WARNINGS],
+[dnl
+m4_if([$3],, [AC_FATAL([3 arguments expected])])[]dnl
+dnl
+AC_ARG_ENABLE([warnings], [AS_HELP_STRING(
+ [--enable-warnings=@<:@min|max|fatal|no@:>@],
+ [control compiler pickyness @<:@min@:>@])],
+ [dk_enable_warnings=$enableval],
+ [dk_enable_warnings=min])[]dnl
+
+dk_lang=
+case $ac_compile in
+ *'$CXXFLAGS '*)
+ dk_lang='C++'
+ dk_cc=$CXX
+ dk_conftest=conftest.${ac_ext-cc}
+ ;;
+ *'$CFLAGS '*)
+ dk_lang=C
+ dk_cc=$CC
+ dk_conftest=conftest.${ac_ext-c}
+ ;;
+esac
+
+AS_IF([test "x$dk_lang" != x],
+[
+ AC_MSG_CHECKING([which $dk_lang compiler warning flags to use])
+
+ case $dk_enable_warnings in
+ no) dk_warning_flags=;;
+ max) dk_warning_flags="$3";;
+ fatal) dk_warning_flags="$3 -Werror";;
+ *) dk_warning_flags="$2";;
+ esac
+
+ dk_deprecation_flags=
+m4_if([$4],,, [
+ AS_IF([test "x$dk_enable_warnings" = xfatal],
+ [
+ dk_deprecation_prefixes="$4"
+ for dk_prefix in $dk_deprecation_prefixes
+ do
+ dk_deprecation_flags="${dk_deprecation_flags}-D${dk_prefix}_DISABLE_DEPRECATED "
+ done
+ ])
+])[]dnl
+ dk_tested_flags=
+
+ AS_IF([test "x$dk_warning_flags" != x],
+ [
+ # Keep in mind that the dummy source must be devoid of any
+ # problems that might cause diagnostics.
+ AC_LANG_CONFTEST([AC_LANG_SOURCE(
+ [[int main(int argc, char** argv) { return (argv != 0) ? argc : 0; }]])])
+
+ for dk_flag in $dk_warning_flags
+ do
+ # Test whether the compiler accepts the flag. GCC doesn't bail
+ # out when given an unsupported flag but prints a warning, so
+ # check the compiler output instead.
+ dk_cc_out=`$dk_cc $dk_tested_flags $dk_flag -c "$dk_conftest" 2>&1 || echo failed`
+ rm -f "conftest.${OBJEXT-o}"
+
+ AS_IF([test "x$dk_cc_out" = x],
+ [
+ AS_IF([test "x$dk_tested_flags" = x],
+ [dk_tested_flags=$dk_flag],
+ [dk_tested_flags="$dk_tested_flags $dk_flag"])
+ ], [
+ echo "$dk_cc_out" >&AS_MESSAGE_LOG_FD
+ ])
+ done
+
+ rm -f "$dk_conftest"
+ ])
+ dk_all_flags=$dk_deprecation_flags$dk_tested_flags
+ AC_SUBST([$1], [$dk_all_flags])
+
+ test "x$dk_all_flags" != x || dk_all_flags=none
+ AC_MSG_RESULT([$dk_all_flags])
+])
+])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]