Skip to content
Snippets Groups Projects
Commit 7cd8fa59 authored by g0dil's avatar g0dil
Browse files

Extension support

parent 41a4cd99
No related branches found
No related tags found
No related merge requests found
/Ext/*/
/local_config.hh
Mainpage.dox
/*/
@INCLUDE = "$(TOPDIR)/doclib/Doxyfile.global"
PROJECT_NAME = Extensions
# -*- python -*-
Import('env')
import SENFSCons, glob, os.path, yaptu
###########################################################################
sconscripts = sorted(glob.glob("*/SConscript"))
EXTENSIONS = []
for script in sconscripts:
name = os.path.split(script)[0]
dox = os.path.join(name, 'Mainpage.dox')
title = ''
if os.path.exists(dox):
title = ([''] + [ line.split('\\mainpage',1)[-1].strip() for line in file(dox)
if '\\mainpage' in line ])[-1]
EXTENSIONS.append((name, title))
MAINPAGE="""
/** \mainpage Extensions
This folder contains additional SENF extensions which are built
into the senf libarary but are not part of senf proper.
\htmlonly
<dl>
{{ for name, title in EXTENSIONS:
<dt><a href="../../${name}/doc/html/index.html">${name}</a></dt><dd>${title}</a></dd>
}}
</dl>
\endhtmlonly
*/
"""
file("Mainpage.dox","w").write(yaptu.process(MAINPAGE, globals(), env.Dictionary()))
SConscript(sconscripts)
env.Clean('all','Mainpage.dox')
env.Clean('all_docs','Mainpage.dox')
SENFSCons.Doxygen(env)
......@@ -9,6 +9,9 @@ import SENFSCons, glob, os
if not env.GetOption('clean') and not os.path.exists("local_config.hh"):
Execute(Touch("local_config.hh"))
SConscript(glob.glob("*/SConscript"))
# Ext/SConscript is last so it can depend on env vars set by any other script
# (e.g. $PACKET_BUNDLES)
SConscript(list(set(glob.glob("*/SConscript")) - set(("Ext/SConscript",))))
SConscript("Ext/SConscript")
env.InstallSubdir(target = '$INCLUDEINSTALLDIR', source = [ 'config.hh' ])
// $Id$
//
// Copyright (C) 2007
// Fraunhofer Institute for Open Communication Systems (FOKUS)
// Competence Center NETwork research (NET), St. Augustin, GERMANY
// Stefan Bund <g0dil@berlios.de>
//
// This program 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.
//
// This program 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 this program; if not, write to the
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
\brief Console public header */
#include <senf/Utils/Console/Console.hh>
// Local Variables:
// mode: c++
// fill-column: 100
// comment-column: 40
// c-file-style: "senf"
// indent-tabs-mode: nil
// ispell-local-dictionary: "american"
// compile-command: "scons -u test"
// End:
......@@ -58,7 +58,7 @@ def SetupForSENF(env):
if os.path.exists('senf'):
print "\nUsing SENF in './senf'\n"
env.Append( LIBPATH = [ 'senf' ],
CPPPATH = [ 'senf/include' ],
CPPPATH = [ 'senf' ],
SENF_BUILDOPTS = [ '${final and "final=1" or None}',
'${debug and "debug=1" or None}',
'${profile and "profile=1" or None}' ],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment