59 lines (53 with data), 3.3 kB
/* ================================================================================== */
/* Plugins for Antiryad Gx - Copyright (c) Antoine Guillon - http://pyro.akm.free.fr/ */
/* ================================================================================== */
/* */
/* Copyright (c) Antoine Guillon (http://pyro.akm.free.fr/) */
/* All rights reserved. */
/* */
/* Redistribution and use in source and binary forms, with or without */
/* modification, are permitted provided that the following conditions are met: */
/* */
/* 1. Redistributions of source code must retain the above copyright notice, this */
/* list of conditions and the following disclaimer. */
/* 2. Redistributions in binary form must reproduce the above copyright notice, */
/* this list of conditions and the following disclaimer in the documentation */
/* and/or other materials provided with the distribution. */
/* */
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND */
/* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED */
/* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */
/* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR */
/* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES */
/* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; */
/* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND */
/* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */
/* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS */
/* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
/* ================================================================================== */
import antiryadgx.gx_sys
import antiryadgx.gx_file
import antiryadgx.gx_winbox
ifdef gx_antiryad_globalversion_6
import antiryadgx.gx_vcpu
enddef /* gx_antiryad_globalversion_6 */
import antiryadgx.gx_gel
class precompileheader
declarefunction nothing,main,nothing
/* ---- */
/* main */
/* ---- */
function main
gx_gel::precompile(gx_winbox::texteditorloadtxt(string::"../sources/plugin.geh"))
gx_gel::saveprecompiledheader(string::"plugin.gph")
ifdef gx_antiryad_globalversion_6
gx_vcpu::free(gx_gel::finishprecompilation())
elsedef /* gx_antiryad_globalversion_6 */
gx_gel::free(gx_gel::finishprecompilation())
enddef /* gx_antiryad_globalversion_6 */
gx_gel::packgez(string::"plugin.gpz",string::"plugin.gph")
gx_file::kill(string::"plugin.gph")
gx_sys::convertbintoc(string::"plugin.gpz",string::"../sources/plugindata.h",string::"gelheader")
gx_file::kill(string::"plugin.gpz")
return
endfunction