* test/wrappers/test-milena.cc: New.
* test/wrappers/Makefile.am: New.
* test/Makefile.am (SUBDIRS): Append `wrappers' and prepend `.'.
* configure.ac: Configure test/wrappers/Makefile.
---
dynamic-use-of-static-c++/ChangeLog | 9 +++++
dynamic-use-of-static-c++/configure.ac | 1 +
dynamic-use-of-static-c++/test/Makefile.am | 2 +-
.../test/wrappers/Makefile.am | 25 +++++++++++++
.../test/wrappers/test-milena.cc | 38 ++++++++++++++++++++
5 files changed, 74 insertions(+), 1 deletions(-)
create mode 100644 dynamic-use-of-static-c++/test/wrappers/Makefile.am
create mode 100644 dynamic-use-of-static-c++/test/wrappers/test-milena.cc
diff --git a/dynamic-use-of-static-c++/ChangeLog b/dynamic-use-of-static-c++/ChangeLog
index 8f695ef..a483c8d 100644
--- a/dynamic-use-of-static-c++/ChangeLog
+++ b/dynamic-use-of-static-c++/ChangeLog
@@ -1,5 +1,14 @@
2009-11-02 Roland Levillain <roland(a)lrde.epita.fr>
+ Exercise Milena precompiled wrappers.
+
+ * test/wrappers/test-milena.cc: New.
+ * test/wrappers/Makefile.am: New.
+ * test/Makefile.am (SUBDIRS): Append `wrappers' and prepend `.'.
+ * configure.ac: Configure test/wrappers/Makefile.
+
+2009-11-02 Roland Levillain <roland(a)lrde.epita.fr>
+
Start to provide some precompiled wrappers for Milena.
* src/wrappers/milena.hh, src/wrappers/milena.cc: New.
diff --git a/dynamic-use-of-static-c++/configure.ac
b/dynamic-use-of-static-c++/configure.ac
index 02dced0..0bfd275 100644
--- a/dynamic-use-of-static-c++/configure.ac
+++ b/dynamic-use-of-static-c++/configure.ac
@@ -214,6 +214,7 @@ AC_CONFIG_FILES([
_config/local-config.rb
test/Makefile
test/vaucanson/Makefile
+ test/wrappers/Makefile
], [chmod +x bin/dyn-config])
# Instantiate the output files.
diff --git a/dynamic-use-of-static-c++/test/Makefile.am
b/dynamic-use-of-static-c++/test/Makefile.am
index fd65b67..e0301a6 100644
--- a/dynamic-use-of-static-c++/test/Makefile.am
+++ b/dynamic-use-of-static-c++/test/Makefile.am
@@ -17,7 +17,7 @@
AM_CPPFLAGS = -I$(srcdir)/fixtures -I$(top_srcdir)/src -I$(top_builddir)/src
AM_CXXFLAGS = $(WARNING_CXXFLAGS)
-SUBDIRS = vaucanson
+SUBDIRS = . vaucanson wrappers
#erb# =begin # Read the documentation of erbx to see how to change this part
#erb# <%
diff --git a/dynamic-use-of-static-c++/test/wrappers/Makefile.am
b/dynamic-use-of-static-c++/test/wrappers/Makefile.am
new file mode 100644
index 0000000..d947ea2
--- /dev/null
+++ b/dynamic-use-of-static-c++/test/wrappers/Makefile.am
@@ -0,0 +1,25 @@
+# Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE).
+#
+# This file is part of Olena.
+#
+# Olena 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, version 2 of the License.
+#
+# Olena 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 Olena. If not, see <http://www.gnu.org/licenses/>.
+
+LDADD = \
+ $(top_builddir)/src/wrappers/libdynmilena.la \
+ $(top_builddir)/src/libdyn.la
+AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src
+
+check_PROGRAMS = test-milena
+test_milena_SOURCES = test-milena.cc
+
+TESTS = $(check_PROGRAMS)
diff --git a/dynamic-use-of-static-c++/test/wrappers/test-milena.cc
b/dynamic-use-of-static-c++/test/wrappers/test-milena.cc
new file mode 100644
index 0000000..d24d216
--- /dev/null
+++ b/dynamic-use-of-static-c++/test/wrappers/test-milena.cc
@@ -0,0 +1,38 @@
+// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+//
+// This file is part of Olena.
+//
+// Olena 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, version 2 of the License.
+//
+// Olena 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 Olena. If not, see <http://www.gnu.org/licenses/>.
+//
+// As a special exception, you may use this file as part of a free
+// software project without restriction. Specifically, if other files
+// instantiate templates or use macros or inline functions from this
+// file, or you compile this file and link it with other files to produce
+// an executable, this file does not by itself cause the resulting
+// executable to be covered by the GNU General Public License. This
+// exception does not however invalidate any other reasons why the
+// executable file might be covered by the GNU General Public License.
+
+/// \file
+/// Exercise the Milena wrappers.
+
+#include <wrappers/milena.hh>
+
+int main()
+{
+ dyn::language::var ima = dyn::mln::mk_image2d_int(3, 3);
+ dyn::mln::fill(ima, 0);
+ dyn::mln::println("ima (before) =", ima);
+ dyn::mln::iota(ima);
+ dyn::mln::println("ima (after) =", ima);
+}
--
1.6.5
Show replies by date