[mm-common] Add examples/ directory to skeletonmm source tree



commit 3f5ab01b536100c16fe2696bbdeb3af9de03cc0f
Author: Daniel Elstner <danielk openismus com>
Date:   Tue Sep 15 11:26:41 2009 +0200

    Add examples/ directory to skeletonmm source tree
    
    * skeletonmm/examples/: New skeleton subdirectory for code examples.
    * skeletonmm/skeleton/skeletonmm.h: New single include header.
    * skeletonmm/configure.ac (AC_CONFIG_FILES): List examples/Makefile.
    * skeletonmm/Makefile.am (skeletonmm_include_HEADERS): Distribute and
    install the skeleton/skeletonmm.h single include header.
    * skeletonmm/doc/reference/Doxyfile.in: Update for Doxygen 1.6.1.
    (EXAMPLE_*): Correct accidentally renamed variables.
    (EXAMPLE_PATH): Point to skeleton examples subdirectory.
    (EXAMPLE_RECURSIVE): Enable.
    (SORT_MEMBERS_CTORS_1ST): Enable.
    * Makefile.am (nobase_dist_doc_DATA): List new skeleton files.

 Makefile.am                            |    4 ++++
 skeletonmm/Makefile.am                 |    5 ++++-
 skeletonmm/configure.ac                |    1 +
 skeletonmm/doc/reference/Doxyfile.in   |   18 ++++++++----------
 skeletonmm/examples/.gitignore         |    1 +
 skeletonmm/examples/Makefile.am        |   29 +++++++++++++++++++++++++++++
 skeletonmm/examples/example/example.cc |   29 +++++++++++++++++++++++++++++
 skeletonmm/skeleton/skeletonmm.h       |   25 +++++++++++++++++++++++++
 8 files changed, 101 insertions(+), 11 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 58c0aa2..88669a7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -73,8 +73,12 @@ nobase_dist_doc_DATA =							\
 	skeletonmm/doc/Makefile.am					\
 	skeletonmm/doc/reference/.gitignore				\
 	skeletonmm/doc/reference/Doxyfile.in				\
+	skeletonmm/examples/.gitignore					\
+	skeletonmm/examples/Makefile.am					\
+	skeletonmm/examples/example/example.cc				\
 	skeletonmm/skeleton/.gitignore					\
 	skeletonmm/skeleton/skeletonmm-uninstalled.pc.in		\
+	skeletonmm/skeleton/skeletonmm.h				\
 	skeletonmm/skeleton/skeletonmm.pc.in				\
 	skeletonmm/skeleton/skeletonmmconfig.h.in			\
 	skeletonmm/skeleton/skeletonmm/Makefile.am			\
diff --git a/skeletonmm/Makefile.am b/skeletonmm/Makefile.am
index 386f1a1..5fe4872 100644
--- a/skeletonmm/Makefile.am
+++ b/skeletonmm/Makefile.am
@@ -28,7 +28,10 @@ doc_subdirs = doc
 else
 doc_subdirs =
 endif
-SUBDIRS = $(src_subdirs) skeleton/skeletonmm $(doc_subdirs)
+SUBDIRS = $(src_subdirs) skeleton/skeletonmm examples $(doc_subdirs)
+
+skeletonmm_includedir = $(includedir)/$(SKELETONMM_MODULE_NAME)
+skeletonmm_include_HEADERS = skeleton/skeletonmm.h
 
 skeletonmm_libincludedir = $(libdir)/$(SKELETONMM_MODULE_NAME)/include
 nodist_skeletonmm_libinclude_HEADERS = skeleton/skeletonmmconfig.h
diff --git a/skeletonmm/configure.ac b/skeletonmm/configure.ac
index 21ea9d2..961984f 100644
--- a/skeletonmm/configure.ac
+++ b/skeletonmm/configure.ac
@@ -61,6 +61,7 @@ AC_CONFIG_FILES([Makefile
                  skeleton/${SKELETONMM_MODULE_NAME}-uninstalled.pc:skeleton/skeletonmm-uninstalled.pc.in
                  skeleton/src/Makefile
                  skeleton/skeletonmm/Makefile
+                 examples/Makefile
                  doc/Makefile
                  doc/reference/Doxyfile])
 AC_OUTPUT
diff --git a/skeletonmm/doc/reference/Doxyfile.in b/skeletonmm/doc/reference/Doxyfile.in
index 6417496..c3d5f07 100644
--- a/skeletonmm/doc/reference/Doxyfile.in
+++ b/skeletonmm/doc/reference/Doxyfile.in
@@ -1,4 +1,4 @@
-# Doxyfile 1.5.8
+# Doxyfile 1.6.1
 # @configure_input@
 
 #---------------------------------------------------------------------------
@@ -65,6 +65,7 @@ SHOW_INCLUDE_FILES     = NO
 INLINE_INFO            = YES
 SORT_MEMBER_DOCS       = YES
 SORT_BRIEF_DOCS        = NO
+SORT_MEMBERS_CTORS_1ST = YES
 SORT_GROUP_NAMES       = YES
 SORT_BY_SCOPE_NAME     = YES
 GENERATE_TODOLIST      = NO
@@ -100,8 +101,6 @@ EXCLUDE                =
 EXCLUDE_SYMLINKS       = NO
 EXCLUDE_PATTERNS       =
 EXCLUDE_SYMBOLS        = _* \
-                         SkeletonDimensionData \
-                         SkeletonPositionData \
                          adaptor_trait \
                          basic_filebuf \
                          basic_streambuf \
@@ -110,10 +109,10 @@ EXCLUDE_SYMBOLS        = _* \
                          internal \
                          pair \
                          unary_function
-SKELETON_PATH           =
-SKELETON_PATTERNS       = *.cc \
+EXAMPLE_PATH           = "@abs_top_srcdir@/examples"
+EXAMPLE_PATTERNS       = *.cc \
                          *.h
-SKELETON_RECURSIVE      = NO
+EXAMPLE_RECURSIVE      = YES
 IMAGE_PATH             =
 INPUT_FILTER           =
 FILTER_PATTERNS        =
@@ -167,8 +166,10 @@ QHG_LOCATION           =
 DISABLE_INDEX          = NO
 ENUM_VALUES_PER_LINE   = 1
 GENERATE_TREEVIEW      = NONE
+USE_INLINE_TREES       = NO
 TREEVIEW_WIDTH         = 250
 FORMULA_FONTSIZE       = 10
+SEARCHENGINE           = NO
 #---------------------------------------------------------------------------
 # configuration options related to the LaTeX output
 #---------------------------------------------------------------------------
@@ -184,6 +185,7 @@ PDF_HYPERLINKS         = YES
 USE_PDFLATEX           = YES
 LATEX_BATCHMODE        = NO
 LATEX_HIDE_INDICES     = NO
+LATEX_SOURCE_CODE      = NO
 #---------------------------------------------------------------------------
 # configuration options related to the RTF output
 #---------------------------------------------------------------------------
@@ -279,7 +281,3 @@ DOT_TRANSPARENT        = NO
 DOT_MULTI_TARGETS      = YES
 GENERATE_LEGEND        = YES
 DOT_CLEANUP            = YES
-#---------------------------------------------------------------------------
-# Options related to the search engine
-#---------------------------------------------------------------------------
-SEARCHENGINE           = NO
diff --git a/skeletonmm/examples/.gitignore b/skeletonmm/examples/.gitignore
new file mode 100644
index 0000000..d4109ac
--- /dev/null
+++ b/skeletonmm/examples/.gitignore
@@ -0,0 +1 @@
+/example/example
diff --git a/skeletonmm/examples/Makefile.am b/skeletonmm/examples/Makefile.am
new file mode 100644
index 0000000..658aeb9
--- /dev/null
+++ b/skeletonmm/examples/Makefile.am
@@ -0,0 +1,29 @@
+## Copyright (c) 2009  Joe Hacker <joe example com>
+##
+## This file is part of skeletonmm.
+##
+## skeletonmm is free software: you can redistribute it and/or modify it
+## under the terms of the GNU Lesser General Public License as published
+## by the Free Software Foundation, either version 2.1 of the License,
+## or (at your option) any later version.
+##
+## skeletonmm 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 Lesser General Public License for more details.
+##
+## You should have received a copy of the GNU Lesser General Public License
+## along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+AUTOMAKE_OPTIONS = subdir-objects
+
+check_PROGRAMS = example/example
+
+local_includes = -I$(top_builddir)/skeleton $(if $(srcdir:.=),-I$(top_srcdir)/skeleton)
+local_libs = $(top_builddir)/skeleton/skeletonmm/libskeletonmm-$(GLIBMM_API_VERSION).la
+
+AM_CPPFLAGS = -I$(top_builddir) $(local_includes) $(GTHREAD_CFLAGS) $(SKELETONMM_CFLAGS)
+AM_CXXFLAGS = $(SKELETONMM_WXXFLAGS)
+LDADD = $(SKELETONMM_LIBS) $(local_libs)
+
+example_example_SOURCES = example/example.cc
diff --git a/skeletonmm/examples/example/example.cc b/skeletonmm/examples/example/example.cc
new file mode 100644
index 0000000..e84572c
--- /dev/null
+++ b/skeletonmm/examples/example/example.cc
@@ -0,0 +1,29 @@
+/* Copyright (c) 2009  Joe Hacker <joe example com>
+ *
+ * This file is part of skeletonmm.
+ *
+ * skeletonmm is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation, either version 2.1 of the License,
+ * or (at your option) any later version.
+ *
+ * skeletonmm 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 Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <skeletonmm.h>
+
+namespace
+{
+
+} // anonymous namespace
+
+int main(int, char**)
+{
+  return 0;
+}
diff --git a/skeletonmm/skeleton/skeletonmm.h b/skeletonmm/skeleton/skeletonmm.h
new file mode 100644
index 0000000..f6cbb91
--- /dev/null
+++ b/skeletonmm/skeleton/skeletonmm.h
@@ -0,0 +1,25 @@
+/* Copyright (c) 2009  Joe Hacker <joe example com>
+ *
+ * This file is part of skeletonmm.
+ *
+ * skeletonmm is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation, either version 2.1 of the License,
+ * or (at your option) any later version.
+ *
+ * skeletonmm 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 Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef SKELETONMM_H_INCLUDED
+#define SKELETONMM_H_INCLUDED
+
+#include <skeletonmmconfig.h>
+#include <skeletonmm/skeleton.h>
+
+#endif /* !SKELETONMM_H_INCLUDED */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]