From: Francesco <fr...@us...> - 2005-06-12 21:21:40
|
Update of /cvsroot/wxlua/wxLua/util/build/bakefiles In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17375/util/build/bakefiles Added Files: Bakefiles.bkgen options.bkl regen.bat util.bkl Log Message: Added bakefile build system --- NEW FILE: options.bkl --- <?xml version="1.0" ?> <!-- Author: Francesco Montorsi <fr...@us...> --> <!-- RCS-ID: $Id: options.bkl,v 1.1 2005/06/12 21:21:11 frm Exp $ --> <!-- --> <!-- WXLUA-UTILITIES OPTIONS BAKEFILE --> <!-- --> <makefile> <!-- --> <!-- The list of wxLua OPTIONS DEFAULTS --> <!-- --> <set var="USE_UTIL_DEFAULT">1</set> <!-- --> <!-- The list of wxArt2d OPTIONS --> <!-- --> <!-- options not tied to a specific module --> <if cond="TARGETING_IDE=='0'"> <option name="USE_UTIL"> <values>0,1</values> <default-value>$(USE_UTIL_DEFAULT)</default-value> <description>Does the wxLua utilities shoulb be compiled ?</description> </option> </if> <if cond="TARGETING_IDE=='1'"> <!-- IDEs are less flexible; we have to set these as variables with the default values --> <set var="USE_UTIL">$(USE_UTIL_DEFAULT)</set> </if> </makefile> --- NEW FILE: util.bkl --- <?xml version="1.0" ?> <!-- Author: Francesco Montorsi <fr...@us...> --> <!-- RCS-ID: $Id: util.bkl,v 1.1 2005/06/12 21:21:11 frm Exp $ --> <!-- --> <!-- WXLUA-UTILITIES BAKEFILE --> <!-- --> <makefile> <!-- This is required because it contains the definitions of a lot of utils --> <include file="../../../build/bakefiles/wxluabase.bkl"/> <!-- required for copy-files tag --> <using module="datafiles"/> <!-- our options --> <include file="options.bkl"/> <!-- our base path --> <if cond="TARGETING_WIN32=='1'"> <set var="UTIL_BASEDIR">..$(DIRSEP)..</set> </if> <if cond="TARGETING_WIN32=='0'"> <set var="UTIL_BASEDIR">.</set> </if> <set var="SRCDIR">$(UTIL_BASEDIR)</set> <!-- our utilities --> <exe id="bin2c" cond="USE_UTIL=='1'"> <dirname>$(UTIL_BASEDIR)$(DIRSEP)..$(DIRSEP)bin</dirname> <sources>bin2c/bin2c.c</sources> </exe> </makefile> --- NEW FILE: Bakefiles.bkgen --- <?xml version="1.0" ?> <!-- $Id: Bakefiles.bkgen,v 1.1 2005/06/12 21:21:11 frm Exp $ --> <bakefile-gen> <disable-formats>msvc6prj,gnu,dmars,cbx_unix,cbuilderx</disable-formats> <input>util.bkl</input> <!-- required since wxArt2d uses wx presets stored in wxWidgets subfolders... --> <add-flags>-I%WXWIN%\build\bakefiles\wxpresets</add-flags> <!-- List of output formats to generate: --> <add-formats> autoconf,borland,dmars,mingw,msvc,msvc6prj,watcom,cbuilderx,cbx_unix,gnu </add-formats> <!-- Directories where msw makefiles should go: --> <add-flags formats="borland"> -o../msw/makefile.bcc </add-flags> <add-flags formats="dmars_smake"> -o../msw/makefile.dms </add-flags> <add-flags formats="dmars"> -o../msw/makefile.dmc </add-flags> <add-flags formats="mingw"> -o../msw/makefile.gcc </add-flags> <add-flags formats="msvc"> -o../msw/makefile.vc </add-flags> <add-flags formats="watcom"> -o../msw/makefile.wat </add-flags> <add-flags formats="msvc6prj"> -o../msw/util.dsw </add-flags> <!-- Directory where AUTOCONF files should go: --> <add-flags formats="autoconf"> -o../../Makefile.in </add-flags> <add-flags formats="autoconf"> <!-- bakefile will merge the conditions required by our Makefile.in with the conditions required by the others Makefile.in files of the project; wonderful ! --> -DAUTOCONF_MACROS_FILE=../../../autoconf_inc.m4 </add-flags> </bakefile-gen> --- NEW FILE: regen.bat --- @echo off REM REM MAKEFILE REGENERATION SCRIPT (for WinXP) REM REM author: Francesco Montorsi (fr...@us...) REM date: 18-8-2004 echo. echo. echo Regenerating makefiles for MSVC, BORLAND, MINGW and AUTOCONF... echo. bakefile_gen echo. echo Regeneration completed. echo. echo. pause |