<?xml version="1.0"?>
<makefile>
<include file="presets$(DIRSEP)simple.bkl"/>
<include file="presets$(DIRSEP)wx.bkl"/>
<option name="WXLUA_DIR" category="path"/>
<option name="LUA_DIR" category="path"/>
<option name="LOON_DIR" category="path"/>
<set var="ROOT_DIR">..</set>
<set-srcdir>$(ROOT_DIR)$(DIRSEP)src</set-srcdir>
<set var="OUTPUT_PROFIX">
<if cond="FORMAT=='mingw'">gcc_dll</if>
</set>
<set var="BUILDDIR">$(ROOT_DIR)$(DIRSEP)lib$(DIRSEP)$(OUTPUT_PROFIX)</set>
<set var="BINDIR">$(ROOT_DIR)</set>
<dll id="ln" template="simple,wx">
<!-- using nd module of loon library -->
<define>_NBUSE_ND_</define>
<!-- include files directory -->
<include>"$(WX_DIR)$(DIRSEP)include"</include>
<include>"$(WXLUA_DIR)$(DIRSEP)modules"</include>
<include>"$(ROOT_DIR)$(DIRSEP)include"</include>
<include>"$(LUA_DIR)$(DIRSEP)src"</include>
<include>"$(LOON_DIR)$(DIRSEP)include"</include>
<!-- source files -->
<sources>$(fileList('*.cpp'))</sources>
<dirname>$(BUILDDIR)</dirname>
<dllname>nd</dllname>
<ldflags>-Wl,--enable-auto-import $(SRCDIR)$(DIRSEP)doc.def</ldflags>
<ldflags>-static-libgcc</ldflags><!-- avoid LIBGCC_S_DW2-1.dll -->
<ldflags>-static-libstdc++</ldflags><!-- avoid LIBSTDC++-6.dll -->
<!-- begin: for lambda syntax -->
<!--<set var="CXXFLAGS">-std=c++0x</set>-->
<cppflags>-std=gnu++0x</cppflags>
<!-- end -->
<depends>genwxbind</depends>
<!-- WX library -->
<lib-path>$(BUILDDIR)</lib-path>
<lib-path>$(WX_DIR)$(DIRSEP)lib$(DIRSEP)gcc_dll</lib-path>
<!-- tag extended by wx.bkl -->
<wx-lib>adv</wx-lib>
<wx-lib>net</wx-lib>
<wx-lib>core</wx-lib>
<wx-lib>base</wx-lib>
<wx-lib>xml</wx-lib>
<!--<wx-lib>odbc</wx-lib>-->
<wx-lib>xrc</wx-lib>
<wx-lib>html</wx-lib>
<wx-lib>media</wx-lib>
<wx-lib>gl</wx-lib>
<!--<wx-lib>dbgrid</wx-lib>-->
<!--<wx-lib>qa</wx-lib>-->
<wx-lib>aui</wx-lib>
<!--<wx-lib>richtext</wx-lib>-->
<!-- WXLUA library -->
<lib-path>"$(WXLUA_DIR)/lib/gcc_dll"</lib-path>
<sys-lib>wxlua_msw28_wxbindadv</sys-lib>
<sys-lib>wxlua_msw28_wxbindaui</sys-lib>
<sys-lib>wxlua_msw28_wxbindbase</sys-lib>
<sys-lib>wxlua_msw28_wxbindcore</sys-lib>
<sys-lib>wxlua_msw28_wxbindgl</sys-lib>
<sys-lib>wxlua_msw28_wxbindhtml</sys-lib>
<sys-lib>wxlua_msw28_wxbindmedia</sys-lib>
<sys-lib>wxlua_msw28_wxbindnet</sys-lib>
<!--<sys-lib>wxlua_msw28_wxbindrichtext</sys-lib>-->
<sys-lib>wxlua_msw28_wxbindstc</sys-lib>
<sys-lib>wxlua_msw28_wxbindxml</sys-lib>
<sys-lib>wxlua_msw28_wxbindxrc</sys-lib>
<sys-lib>wxlua_msw28_wxlua</sys-lib>
<!-- <sys-lib>wxlua_msw28_wxluadebug</sys-lib> -->
<sys-lib>wxlua_msw28_wxluasocket</sys-lib>
<!-- LUA library -->
<!--<lib-path>"$(LUA_DIR)/src"</lib-path>-->
<lib-path>$(WXLUA_DIR)\lib\gcc_dll</lib-path>-
<sys-lib>lua5.1</sys-lib>
<!-- LOON library -->
<lib-path>$(LOON_DIR)$(DIRSEP)lib$(DIRSEP)gcc_dll</lib-path>
<sys-lib>loon</sys-lib>
</dll>
<action id="genwxbind">
<command>"$(WXLUA_DIR)/lib/gcc_dll/lua" -e"rulesFilename=[[$(SRCDIR)$(DIRSEP)doc_rules.lua]]" "$(WXLUA_DIR)"/bindings/genwxbind.lua</command>
<is-phony>true</is-phony>
</action>
</makefile>
bakefile xml input file, use lua, wxlua and loonlib