12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697(******************************************************************************)(* OASIS: architecture for building OCaml libraries and applications *)(* *)(* Copyright (C) 2011-2016, Sylvain Le Gall *)(* Copyright (C) 2008-2011, OCamlCore SARL *)(* *)(* This library 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, with the OCaml static compilation *)(* exception. *)(* *)(* 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 file COPYING for more *)(* details. *)(* *)(* You should have received a copy of the GNU Lesser General Public License *)(* along with this library; if not, write to the Free Software Foundation, *)(* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *)(******************************************************************************)(** Plugin to handle "none" generation
@author Sylvain Le Gall
*)openOASISGettextopenOASISUtilsletnot_implemented~ctxt:_str__=failwithf(f_"No implementation for %s")strletsection_not_implemented~ctxt:_strpkg__extra_args=not_implementedstrpkgextra_args(* END EXPORT *)openOASISTypesopenOASISPluginletstd_no_generatestrctxt_=ctxt,{chng_moduls=[NoneData.nonesys_ml];chng_clean=None;chng_distclean=None;chng_main=(OASISDataNotation.func_with_arg_ctxtnot_implemented"NonePlugin.not_implemented"strOASISDataNotation.of_string);}letsection_no_generatestrplugin_ctxtpkg(cs,_)=std_no_generate(str^" of section "^cs.cs_name)plugin_ctxtpkgletinit()=letnm,ver="None",SomeOASISConf.version_shortinlet()=register_help(`All,nm,ver){(help_defaultNoneData.readme_template_mkd)withhelp_order=10}inletplugin=`Configure,nm,verinletself_id,_=Configure.createplugininlet()=Configure.register_actself_id(std_no_generate"configure")inletplugin=`Build,nm,verinletself_id,_=Build.createplugininlet()=Build.register_actself_id(std_no_generate"build")inletplugin=`Install,nm,verinletself_id,_=Install.createplugininlet()=Install.register_actself_id((std_no_generate"install"),(std_no_generate"uninstall"))inletplugin=`Test,nm,verinletself_id,_=Test.createplugininlet()=Test.register_actself_id(section_no_generate"test")inletplugin=`Doc,nm,verinletself_id,_=Doc.createplugininlet()=Doc.register_actself_id(section_no_generate"doc")in()