* config.i: New.
* python/Makefile.am (pyexec_LTLIBRARIES): Add _config.la.
(nodist__config_la_SOURCES, _config_la_LIBADD): New.
(CLEANFILES): Add $(nodist__config_la_SOURCES), config.py,
config.pyc and config.pyo.
(nodist_python_PYTHON): Add config.py.
* python/swilena.py: Import config.
---
swilena/ChangeLog | 12 ++++++++++++
swilena/config.i | 31 +++++++++++++++++++++++++++++++
swilena/python/Makefile.am | 10 ++++++++++
swilena/python/swilena.py | 2 ++
4 files changed, 55 insertions(+), 0 deletions(-)
create mode 100644 swilena/config.i
diff --git a/swilena/ChangeLog b/swilena/ChangeLog
index c2de3c5..912b495 100644
--- a/swilena/ChangeLog
+++ b/swilena/ChangeLog
@@ -1,5 +1,17 @@
2009-06-08 Roland Levillain <roland(a)lrde.epita.fr>
+ New Swilena module: config.
+
+ * config.i: New.
+ * python/Makefile.am (pyexec_LTLIBRARIES): Add _config.la.
+ (nodist__config_la_SOURCES, _config_la_LIBADD): New.
+ (CLEANFILES): Add $(nodist__config_la_SOURCES), config.py,
+ config.pyc and config.pyo.
+ (nodist_python_PYTHON): Add config.py.
+ * python/swilena.py: Import config.
+
+2009-06-08 Roland Levillain <roland(a)lrde.epita.fr>
+
Fix Swilena's copyright headers.
* box.ixx,
diff --git a/swilena/config.i b/swilena/config.i
new file mode 100644
index 0000000..a3bf3fe
--- /dev/null
+++ b/swilena/config.i
@@ -0,0 +1,31 @@
+// -*- C++ -*-
+// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+//
+// This file is part of the Olena Library. This library is free
+// software; you can redistribute it and/or modify it under the terms
+// of the GNU General Public License version 2 as published by the
+// Free Software Foundation.
+//
+// This library 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 library; see the file COPYING. If not, write to
+// the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+// Boston, MA 02111-1307, USA.
+
+/// \file config.i
+/// \brief Swilena configuration.
+
+%module config
+
+%inline %{
+/// Are we using SWIG \a version or greater?
+bool
+have_swig(int version)
+{
+ return SWIGVERSION >= version;
+}
+%}
diff --git a/swilena/python/Makefile.am b/swilena/python/Makefile.am
index ad41c3c..eb49d04 100644
--- a/swilena/python/Makefile.am
+++ b/swilena/python/Makefile.am
@@ -47,6 +47,16 @@ python_PYTHON += data.py
nodist_python_PYTHON =
pyexec_LTLIBRARIES =
+## config.
+pyexec_LTLIBRARIES += _config.la
+nodist__config_la_SOURCES = config-wrap.cc
+_config_la_LIBADD = $(AM_LIBADD)
+CLEANFILES += $(nodist__config_la_SOURCES) config.py config.py[co]
+## Include the dependency files. Copied from Automake's generated
+## case for C++.
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_config-wrap.Pcc@am__quote@
+nodist_python_PYTHON += config.py
+
## point2d.
pyexec_LTLIBRARIES += _point2d.la
nodist__point2d_la_SOURCES = point2d-wrap.cc
diff --git a/swilena/python/swilena.py b/swilena/python/swilena.py
index 1c7f3e1..ce093b5 100644
--- a/swilena/python/swilena.py
+++ b/swilena/python/swilena.py
@@ -22,6 +22,8 @@
import ltihooks
+import config
+
from box2d import *
from point2d import *
from dpoint2d import *
--
1.6.2.4
Show replies by date