From 811c549d4b15a6012ad02ab5ef88d1e939721d4d Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Thu, 18 Sep 2008 19:43:18 +0200 Subject: [PATCH] Added support for building with MSVC. Should now work with LuaBinaries (http://luabinaries.luaforge.net) source and binary distribution. The environment variable LUA_PATH should be set to the LuaBinaries installation directory. --- Jamroot | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/Jamroot b/Jamroot index d349184..597d347 100755 --- a/Jamroot +++ b/Jamroot @@ -16,7 +16,38 @@ debug-message os.name is [ os.name ] ; if [ os.name ] = NT { - errors.user-error *** not implemented ; + if ! $(BOOST_ROOT) + { + errors.user-error "*** BOOST_ROOT must be set to a Boost installation." ; + } + + LUA_PATH = [ os.environ LUA_PATH ] ; + + if ! $(LUA_PATH) + { + errors.user-error "*** LUA_PATH must be set." ; + } + + local includes = [ GLOB $(LUA_PATH)/include $(LUA_PATH)/src : lua.h ] ; + + if ! $(includes) + { + errors.user-error "*** Unable to determine Lua include directory." ; + } + + includes = $(includes:D) ; + + debug-message found include directory in $(includes) ; + + if [ GLOB $(LUA_PATH) : lib ] + { + lib lua : : static lua5.1 $(LUA_PATH)/lib/static : : $(includes) ; + lib lua : : shared lua5.1 $(LUA_PATH)/lib : : $(includes) ; + } + else if [ GLOB $(LUA_PATH) : lua5.1.dll ] + { + lib lua : : lua5.1 $(LUA_PATH) : : $(includes) ; + } } else if [ os.name ] = LINUX { -- 2.11.4.GIT