From: John L. <jr...@us...> - 2007-05-05 16:08:39
|
Update of /cvsroot/wxlua/wxLua/apps/build/bakefiles In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv4080/bakefiles Modified Files: apps.bkl Log Message: Add luac the lua compiler as an app to build Index: apps.bkl =================================================================== RCS file: /cvsroot/wxlua/wxLua/apps/build/bakefiles/apps.bkl,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** apps.bkl 4 May 2007 20:22:23 -0000 1.53 --- apps.bkl 5 May 2007 16:08:25 -0000 1.54 *************** *** 92,95 **** --- 92,133 ---- <!-- ================================================================== --> + <!-- The LUAC compiler target --> + <!-- ================================================================== --> + + <exe id="app_luac" template="wxlua"> + <wxlua-dirname>$(WXLUA_BINDIR)</wxlua-dirname> + + <app-type>console</app-type> + <install-to>$(BINDIR)</install-to> + + <include>$(WXLUA_BASEDIR)/modules/lua/include</include> + + <!--- the .. is because SRCDIR is always set to us to the wxLua/apps + folder and thus we only need to use .. to get to the module root --> + <sources> + ../modules/lua/src/luac.c + ../modules/lua/src/print.c + </sources> + <headers></headers> + + <!-- we want as EXE name the standard "lua" name so that when we install + wxLua we get the lua installed in standard places and with standard names + (see also the notes in modules.bkl for lua_lib and lua_dll) + --> + <exename>luac</exename> + + <!-- see modules/build/bakefiles/options.bkl for these --> + <cflags>$(LUA_PLATFORM_SPECIFIC_CFLAGS)</cflags> + <ldflags>$(LUA_PLATFORM_SPECIFIC_LDFLAGS)</ldflags> + + <wxlua-lib>lua</wxlua-lib> + <if cond="TARGETING_WIN32=='0'"> + <!-- we require the standard MATH library to build the lua sources + (and it needs to be listed _after_ <wxlua-lib>lua</wxlua-lib> --> + <sys-lib>m</sys-lib> + </if> + </exe> + + <!-- ================================================================== --> <!-- The WXLUA application target --> <!-- ================================================================== --> |