From: <ai...@us...> - 2011-01-11 23:14:15
|
Revision: 11483 http://plplot.svn.sourceforge.net/plplot/?rev=11483&view=rev Author: airwin Date: 2011-01-11 23:14:08 +0000 (Tue, 11 Jan 2011) Log Message: ----------- Implement check_swig_documentation (Unix) target that uses doc/docbook/bin/api2swigdoc.pl to parse doc/docbook/src/api.xml to generate bindings/swig-support/swig_documentation.i_compare in the build tree, and compares that result with bindings/swig-support/swig_documentation.i in the source tree to make sure that latter file is consistent with api.xml. Modified Paths: -------------- trunk/bindings/CMakeLists.txt Added Paths: ----------- trunk/bindings/swig-support/CMakeLists.txt Modified: trunk/bindings/CMakeLists.txt =================================================================== --- trunk/bindings/CMakeLists.txt 2011-01-11 23:07:30 UTC (rev 11482) +++ trunk/bindings/CMakeLists.txt 2011-01-11 23:14:08 UTC (rev 11483) @@ -19,6 +19,9 @@ # along with PLplot; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# swig-support has to come before swig-generated bindings (currently +# python, java, lua, and octave). +add_subdirectory(swig-support) add_subdirectory(c++) add_subdirectory(f77) add_subdirectory(f95) Added: trunk/bindings/swig-support/CMakeLists.txt =================================================================== --- trunk/bindings/swig-support/CMakeLists.txt (rev 0) +++ trunk/bindings/swig-support/CMakeLists.txt 2011-01-11 23:14:08 UTC (rev 11483) @@ -0,0 +1,47 @@ +# bindings/swig-support/CMakeLists.txt for PLplot +### +### Process this file with cmake to produce Makefile +### +# Copyright (C) 2010 Alan W. Irwin +# +# This file is part of PLplot. +# +# PLplot is free software; you can redistribute it and/or modify +# it under the terms of the GNU Library General Public License as published +# by the Free Software Foundation; version 2 of the License. +# +# PLplot 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 Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public License +# along with PLplot; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +# Add (Unix) custom target to check that swig_documentation.i is up to +# date with our DocBook api chapter +if(PERL_XML_DOM AND PERL_XML_PARSER) + add_custom_target( + check_swig_documentation + COMMAND ${CMAKE_COMMAND} -E remove -f + ${CMAKE_CURRENT_BINARY_DIR}/swig_documentation.i_compare + COMMAND ${PERL_EXECUTABLE} + ${CMAKE_SOURCE_DIR}/doc/docbook/bin/api2swigdoc.pl + ${CMAKE_SOURCE_DIR}/doc/docbook/src/plplotdoc.xml.in + ${CMAKE_SOURCE_DIR}/doc/docbook/src/api.xml + ${CMAKE_CURRENT_BINARY_DIR}/swig_documentation.i_compare + COMMAND cmp + ${CMAKE_CURRENT_SOURCE_DIR}/swig_documentation.i + ${CMAKE_CURRENT_BINARY_DIR}/swig_documentation.i_compare + ) + + set(make_documentation_DEPENDS + ${CMAKE_CURRENT_BINARY_DIR}/plplot_octave_txt/${rep_doc} + ) +else(PERL_XML_DOM AND PERL_XML_PARSER) + message(STATUS + "WARNING: Perl modules XML::Parser and/or XML::DOM not available\n" + " so cannot check that swig_documentation.i is up to date." + ) +endif(PERL_XML_DOM AND PERL_XML_PARSER) Property changes on: trunk/bindings/swig-support/CMakeLists.txt ___________________________________________________________________ Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |