|
Boost-Commit : |
From: grafikrobot_at_[hidden]
Date: 2007-12-23 22:43:57
Author: grafik
Date: 2007-12-23 22:43:57 EST (Sun, 23 Dec 2007)
New Revision: 42269
URL: http://svn.boost.org/trac/boost/changeset/42269
Log:
Add ext build for Luabind (trunk version only).
Added:
sandbox/tools/build_extensions/example/luabind/
- copied from r42268, /sandbox/tools/build_extensions/example/lua/
sandbox/tools/build_extensions/ext/luabind.jam
- copied, changed from r42268, /sandbox/tools/build_extensions/ext/lua.jam
Text files modified:
sandbox/tools/build_extensions/example/luabind/build.jam | 14 ++--
sandbox/tools/build_extensions/ext/luabind.jam | 118 +++++++++++++--------------------------
2 files changed, 45 insertions(+), 87 deletions(-)
Modified: sandbox/tools/build_extensions/example/luabind/build.jam
==============================================================================
--- /sandbox/tools/build_extensions/example/lua/build.jam (original)
+++ sandbox/tools/build_extensions/example/luabind/build.jam 2007-12-23 22:43:57 EST (Sun, 23 Dec 2007)
@@ -1,21 +1,19 @@
#~ Copyright 2006 Redshift Software, Inc.
#~ Copyright 2007 Couch World Games Inc.
+#~ Copyright 2007 Rene Rivera
#~ Distributed under the Boost Software License, Version 1.0.
#~ (See accompanying file LICENSE_1_0.txt or copy at
#~ http://www.boost.org/LICENSE_1_0.txt)
-using lua : 5.1.1 : $(PACKAGES)/lua-5.1.1 ;
+using lua : 5.1.2 : $(PACKAGES)/lua-5.1.2 ;
+using boost : 1.34.1 : $(PACKAGES)/boost_1_34_1 ;
+using luabind : 0.7.1 : $(PACKAGES)/luabind-0.7.1 : --disable-error-checking ;
import stage ;
install stage-lib
:
- /ext/lua//luai
+ /ext/luabind//luabind/<link>shared
+ /ext/luabind//luabind/<link>static
: <location>$(STAGE_ROOT)/lib <install-dependencies>on <install-type>LIB
;
-install stage-bin
- :
- /ext/lua//lua
- /ext/lua//luac
- : <location>$(STAGE_ROOT)/bin <install-dependencies>on <install-type>EXE
- ;
Copied: sandbox/tools/build_extensions/ext/luabind.jam (from r42268, /sandbox/tools/build_extensions/ext/lua.jam)
==============================================================================
--- /sandbox/tools/build_extensions/ext/lua.jam (original)
+++ sandbox/tools/build_extensions/ext/luabind.jam 2007-12-23 22:43:57 EST (Sun, 23 Dec 2007)
@@ -1,15 +1,12 @@
#~ Copyright Redshift Software, Inc. 2006.
+#~ Copyright Rene Rivera 2007.
#~ Distributed under the Boost Software License, Version 1.0.
#~ (See accompanying file LICENSE_1_0.txt or copy at
#~ http://www.boost.org/LICENSE_1_0.txt)
-### Support for building Lua interpreter <http://www.lua.org/>.
+### Luabind <http://www.rasterbar.com/products/luabind.html>
### Targets:
-### /ext/lua//luacore
-### /ext/lua//lualib
-### /ext/lua//luai (core+lib)
-### /ext/lua//lua
-### /ext/lua//luac
+### /ext/luabind//luabind
import extension ;
@@ -18,94 +15,57 @@
import feature ;
import common ;
-extension.declare lua ;
+extension.declare luabind ;
+extension.option luabind max-arity : 5 1 2 3 4 6 7 8 9 10 ;
+extension.option luabind max-bases : 4 1 2 3 5 ;
+extension.option luabind error-checking : enable disable ;
+extension.option luabind exceptions : enable disable ;
+extension.option luabind rtti : enable disable ;
rule init ( version ? : location : options * )
{
version ?= default ;
local requirements =
- [ extension.define lua $(version) : $(location) : $(options) ]
- <lua-version>$(version)
- <lua-location>$(location)
+ [ extension.define luabind $(version) : $(location) : $(options) ]
+ <luabind-version>$(version)
+ <luabind-location>$(location)
<toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
<toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
- <location-prefix>lua
+ <location-prefix>luabind
#~ <warnings>off
- <target-os>windows,<link>shared:<define>LUA_BUILD_AS_DLL
- <target-os>linux:<define>LUA_USE_LINUX
+ <toolset>msvc,<link>shared:<define>LUABIND_EXPORT=__declspec(dllexport)
+ <toolset>msvc,<link>shared:<define>LUABIND_IMPORT=__declspec(dllimport)
;
local common-requirements =
- <include>$(location)/src
+ <include>$(location)
+ <luabind-max-arity>1:<define>LUABIND_MAX_ARITY=1
+ <luabind-max-arity>2:<define>LUABIND_MAX_ARITY=2
+ <luabind-max-arity>3:<define>LUABIND_MAX_ARITY=3
+ <luabind-max-arity>4:<define>LUABIND_MAX_ARITY=4
+ <luabind-max-arity>5:<define>LUABIND_MAX_ARITY=5
+ <luabind-max-arity>6:<define>LUABIND_MAX_ARITY=6
+ <luabind-max-arity>7:<define>LUABIND_MAX_ARITY=7
+ <luabind-max-arity>8:<define>LUABIND_MAX_ARITY=8
+ <luabind-max-arity>9:<define>LUABIND_MAX_ARITY=9
+ <luabind-max-arity>10:<define>LUABIND_MAX_ARITY=10
+ <luabind-max-bases>1:<define>LUABIND_MAX_BASES=1
+ <luabind-max-bases>2:<define>LUABIND_MAX_BASES=2
+ <luabind-max-bases>3:<define>LUABIND_MAX_BASES=3
+ <luabind-max-bases>4:<define>LUABIND_MAX_BASES=4
+ <luabind-max-bases>5:<define>LUABIND_MAX_BASES=5
+ <luabind-error-checking>disable:<define>LUABIND_NO_ERROR_CHECKING
+ <luabind-exceptions>disable:<define>LUABIND_NO_EXCEPTIONS
+ <luabind-rtti>disable:<define>LUABIND_NO_RTTI
;
- alias luacore
- : $(location)/src/lapi.c
- $(location)/src/lcode.c
- $(location)/src/ldebug.c
- $(location)/src/ldo.c
- $(location)/src/ldump.c
- $(location)/src/lfunc.c
- $(location)/src/lgc.c
- $(location)/src/llex.c
- $(location)/src/lmem.c
- $(location)/src/lobject.c
- $(location)/src/lopcodes.c
- $(location)/src/lparser.c
- $(location)/src/lstate.c
- $(location)/src/lstring.c
- $(location)/src/ltable.c
- $(location)/src/ltm.c
- $(location)/src/lundump.c
- $(location)/src/lvm.c
- $(location)/src/lzio.c
+ lib luabind
+ : /ext/boost//boost
+ /ext/lua//luai
+ [ glob $(location)/src/*.cpp ]
: $(common-requirements)
$(requirements)
+ <define>LUABIND_BUILDING
:
: $(common-requirements)
;
-
- alias lualib
- : $(location)/src/lauxlib.c
- $(location)/src/lbaselib.c
- $(location)/src/ldblib.c
- $(location)/src/liolib.c
- $(location)/src/lmathlib.c
- $(location)/src/loslib.c
- $(location)/src/ltablib.c
- $(location)/src/lstrlib.c
- $(location)/src/loadlib.c
- $(location)/src/linit.c
- : $(common-requirements)
- $(requirements)
- :
- : $(common-requirements)
- ;
-
- lib luai
- : luacore
- lualib
- : $(common-requirements)
- $(requirements)
- :
- : $(common-requirements)
- ;
-
- exe lua
- : $(location)/src/lua.c
- luai
- : $(common-requirements)
- $(requirements)
- <target-os>linux:<find-shared-library>dl
- <target-os>linux:<find-shared-library>readline
- <target-os>linux:<find-shared-library>history
- <target-os>linux:<find-shared-library>ncurses
- ;
-
- exe luac
- : $(location)/src/luac.c
- $(location)/src/print.c
- luai/<link>static
- : $(common-requirements)
- $(requirements)
- ;
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk