Menu

[r639]: / agxplugin / oggtheora / projects / precompileheader.gel  Maximize  Restore  History

Download this file

88 lines (82 with data), 4.9 kB

/* =================================================================================== */
/* Plugins for Antiryad Gx - Copyright (c) Antoine Guillon - http://www.arkhamdev.net/ */
/* =================================================================================== */
/*                                                                                     */
/* 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_antiryad
import antiryadgx.gx_core
import antiryadgx.gx_system
import antiryadgx.gx_sys
import antiryadgx.gx_file
import antiryadgx.gx_winbox
import antiryadgx.gx_vcpu
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_4
  gx_gel::free(gx_gel::finishprecompilation())
  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")
enddef /* gx_antiryad_globalversion_4 */
ifdef gx_antiryad_globalversion_5
  gx_gel::free(gx_gel::finishprecompilation())
  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")
enddef /* gx_antiryad_globalversion_5 */
ifdef gx_antiryad_globalversion_6
  gx_vcpu::free(gx_gel::finishprecompilation())
  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")
enddef /* gx_antiryad_globalversion_6 */
ifdef gx_antiryad_globalversion_7
  gx_vcpu::free(gx_gel::finishprecompilation())
  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")
enddef /* gx_antiryad_globalversion_7 */
ifdef gx_antiryad_globalversion_8
  gx_vcpu::free(gx_gel::finishprecompilation())
  gx_gel::packgez(string::"plugin.gpz",string::"plugin.gph")
  gx_file::kill(string::"plugin.gph")
  gx_system::convertbintoc(string::"plugin.gpz",string::"../sources/plugindata.h",string::"gelheader")
enddef /* gx_antiryad_globalversion_8 */
ifdef gx_core_globalversion_9
  gx_vcpu::free(gx_gel::finishprecompilation())
  gx_gel::packgez(string::"plugin.gpz",string::"plugin.gph")
  gx_file::kill(string::"plugin.gph")
  gx_system::convertbintoc(string::"plugin.gpz",string::"../sources/plugindata.h",string::"gelheader")
enddef /* gx_core_globalversion_9 */
  gx_file::kill(string::"plugin.gpz")

  return
endfunction