Commit b2110ff8 authored by Ricardo Cosme's avatar Ricardo Cosme

+ Suporte Boost Build para build do busconsole no MSVC.


git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/branches/02_00_01@163888 ae0415b3-e90b-0410-900d-d0be9363c56b
parent 7017a975
......@@ -135,8 +135,36 @@ lib luaopenbus
;
explicit luaopenbus ;
exe busconsole
: src/console.c
/lua//lua
/luuid//luuid
/lce//lce
/luafilesystem//lfs
/luavararg//luavararg
/luastruct//luastruct
/luasocket//luasocket
/loop//loop
/loop//luatuple
/loop//luacothread
/oil//oil
/oil//luaidl
/luascs//luascs
/luaopenbus//luaopenbus
: <dependency>/loop//loop
<dependency>/loop//luatuple
<dependency>/loop//luacothread
<dependency>/oil//oil
<dependency>/oil//luaidl
<dependency>/lce//lce
<dependency>/luascs//luascs
<dependency>/luaopenbus//luaopenbus
;
explicit busconsole ;
install stage
: luaopenbus
busconsole
: <location>install
;
\ No newline at end of file
......@@ -2,6 +2,35 @@
import os ;
project win ;
lib wsock32
:
: <search>c:/Windows/System32
;
lib rpcrt4
:
: <search>c:/Windows/System32
;
project unix ;
lib dl
:
: <link>shared
;
lib uuid
:
: <link>shared
;
lib pthread
:
: <link>shared
;
path-constant here : . ;
local lua-install-path = [ os.environ LUA_INSTALL_PATH ] ;
......@@ -24,3 +53,349 @@ lib lua
<target-os>windows
<search>$(lua-install-path)/lib
;
local luuid-root-path = [ os.environ LUUID_ROOT_PATH ] ;
if ! $(luuid-root-path)
{
luuid-root-path = "$(here)/../luuid" ;
}
use-project luuid : $(luuid-root-path) ;
openssl-debug-shared-include-path = [ os.environ OPENSSL_DEBUG_SHARED_INCLUDE_PATH ] ;
if ! $(openssl-debug-shared-include-path)
{
openssl-debug-shared-include-path = $(here)/../../install/openssl-mt-d/include ;
}
openssl-debug-shared-lib-path = [ os.environ OPENSSL_DEBUG_SHARED_LIB_PATH ] ;
if ! $(openssl-debug-shared-lib-path)
{
openssl-debug-shared-lib-path = $(here)/../../install/openssl-mt-d/lib ;
}
openssl-debug-static-include-path = [ os.environ OPENSSL_DEBUG_STATIC_INCLUDE_PATH ] ;
if ! $(openssl-debug-static-include-path)
{
openssl-debug-static-include-path = $(here)/../../install/openssl-mt-s-d/include ;
}
openssl-debug-static-lib-path = [ os.environ OPENSSL_DEBUG_STATIC_LIB_PATH ] ;
if ! $(openssl-debug-static-lib-path)
{
openssl-debug-static-lib-path = $(here)/../../install/openssl-mt-s-d/lib ;
}
openssl-release-shared-include-path = [ os.environ OPENSSL_RELEASE_SHARED_INCLUDE_PATH ] ;
if ! $(openssl-release-shared-include-path)
{
openssl-release-shared-include-path = $(here)/../../install/openssl-mt/include ;
}
openssl-release-shared-lib-path = [ os.environ OPENSSL_RELEASE_SHARED_LIB_PATH ] ;
if ! $(openssl-release-shared-lib-path)
{
openssl-release-shared-lib-path = $(here)/../../install/openssl-mt/lib ;
}
openssl-release-static-include-path = [ os.environ OPENSSL_RELEASE_STATIC_INCLUDE_PATH ] ;
if ! $(openssl-release-static-include-path)
{
openssl-release-static-include-path = $(here)/../../install/openssl-mt-s/include ;
}
openssl-release-static-lib-path = [ os.environ OPENSSL_RELEASE_STATIC_LIB_PATH ] ;
if ! $(openssl-release-static-lib-path)
{
openssl-release-static-lib-path = $(here)/../../install/openssl-mt-s/lib ;
}
openssl-include-path = [ os.environ OPENSSL_INCLUDE_PATH ] ;
if $(openssl-include-path)
{
openssl-debug-shared-include-path = $(openssl-include-path) ;
openssl-debug-static-include-path = $(openssl-include-path) ;
openssl-release-shared-include-path = $(openssl-include-path) ;
openssl-release-static-include-path = $(openssl-include-path) ;
}
openssl-lib-path = [ os.environ OPENSSL_LIB_PATH ] ;
if $(openssl-lib-path)
{
openssl-debug-shared-lib-path = $(openssl-lib-path) ;
openssl-debug-static-lib-path = $(openssl-lib-path) ;
openssl-release-shared-lib-path = $(openssl-lib-path) ;
openssl-release-static-lib-path = $(openssl-lib-path) ;
}
project openssl ;
#Unix
lib crypto
:
: <variant>debug
<link>shared
<search>$(openssl-debug-shared-lib-path)
:
: <include>$(openssl-debug-shared-include-path)
;
lib crypto
:
: <variant>debug
<link>static
<search>$(openssl-debug-static-lib-path)
:
: <include>$(openssl-debug-static-include-path)
;
lib crypto
:
: <variant>debug
<link>static
<target-os>darwin
<file>$(openssl-debug-static-lib-path)/libcrypto.a
:
: <include>$(openssl-debug-static-include-path)
;
lib crypto
:
: <variant>release
<link>shared
<search>$(openssl-release-shared-lib-path)
:
: <include>$(openssl-release-shared-include-path)
;
lib crypto
:
: <variant>release
<link>static
<search>$(openssl-release-static-lib-path)
:
: <include>$(openssl-release-static-include-path)
;
lib crypto
:
: <variant>release
<link>static
<target-os>darwin
<file>$(openssl-release-static-lib-path)/libcrypto.a
:
: <include>$(openssl-release-static-include-path)
;
#Windows
lib crypto
:
: <name>libeay32
<variant>debug
<link>shared
<target-os>windows
<search>$(openssl-debug-shared-lib-path)
:
: <linkflags>"gdi32.lib user32.lib advapi32.lib"
<include>$(openssl-debug-shared-include-path)
;
lib crypto
:
: <name>libeay32
<variant>debug
<link>static
<target-os>windows
<search>$(openssl-debug-static-lib-path)
:
: <linkflags>"gdi32.lib user32.lib advapi32.lib"
<include>$(openssl-debug-static-include-path)
;
lib crypto
:
: <name>libeay32
<variant>release
<link>shared
<target-os>windows
<search>$(openssl-release-shared-lib-path)
:
: <linkflags>"gdi32.lib user32.lib advapi32.lib"
<include>$(openssl-release-shared-include-path)
;
lib crypto
:
: <name>libeay32
<variant>release
<link>static
<target-os>windows
<search>$(openssl-release-static-lib-path)
:
: <linkflags>"gdi32.lib user32.lib advapi32.lib"
<include>$(openssl-release-static-include-path)
;
#Unix
lib openssl
: crypto
: <name>ssl
<variant>debug
<link>shared
<search>$(openssl-debug-shared-lib-path)
:
: <include>$(openssl-debug-shared-include-path)
;
lib openssl
: crypto
: <name>ssl
<variant>debug
<link>static
<search>$(openssl-debug-static-lib-path)
<target-os>darwin:<file>$(openssl-debug-static-lib-path)/libssl.a
:
: <include>$(openssl-debug-static-include-path)
;
lib openssl
: crypto
: <name>ssl
<variant>debug
<link>static
<target-os>darwin
<file>$(openssl-debug-static-lib-path)/libssl.a
:
: <include>$(openssl-debug-static-include-path)
;
lib openssl
: crypto
: <name>ssl
<variant>release
<link>shared
<search>$(openssl-release-shared-lib-path)
:
: <include>$(openssl-release-shared-include-path)
;
lib openssl
: crypto
: <name>ssl
<variant>release
<link>static
<search>$(openssl-release-static-lib-path)
:
: <include>$(openssl-release-static-include-path)
;
lib openssl
: crypto
: <name>ssl
<variant>release
<link>static
<target-os>darwin
<file>$(openssl-release-static-lib-path)/libssl.a
:
: <include>$(openssl-release-static-include-path)
;
#Windows
lib openssl
: crypto
: <name>ssleay32
<variant>debug
<link>shared
<target-os>windows
<search>$(openssl-debug-shared-lib-path)
:
: <include>$(openssl-debug-shared-include-path)
;
lib openssl
: crypto
: <name>ssleay32
<variant>debug
<link>static
<target-os>windows
<search>$(openssl-debug-static-lib-path)
:
: <include>$(openssl-debug-static-include-path)
;
lib openssl
: crypto
: <name>ssleay32
<variant>release
<link>shared
<target-os>windows
<search>$(openssl-release-shared-lib-path)
:
: <include>$(openssl-release-shared-include-path)
;
lib openssl
: crypto
: <name>ssleay32
<variant>release
<link>static
<target-os>windows
<search>$(openssl-release-static-lib-path)
:
: <include>$(openssl-release-static-include-path)p
;
local lce-root-path = [ os.environ LCE_ROOT_PATH ] ;
if ! $(lce-root-path)
{
lce-root-path = "$(here)/../lce" ;
}
use-project lce : $(lce-root-path) ;
local lfs-root-path = [ os.environ LFS_ROOT_PATH ] ;
if ! $(lfs-root-path)
{
lfs-root-path = "$(here)/../luafilesystem" ;
}
use-project lfs : $(lfs-root-path) ;
local luavararg-root-path = [ os.environ LUAVARARG_ROOT_PATH ] ;
if ! $(luavararg-root-path)
{
luavararg-root-path = "$(here)/../luavararg" ;
}
use-project luavararg : $(luavararg-root-path) ;
local luastruct-root-path = [ os.environ LUASTRUCT_ROOT_PATH ] ;
if ! $(luastruct-root-path)
{
luastruct-root-path = "$(here)/../luastruct" ;
}
use-project luastruct : $(luastruct-root-path) ;
local luasocket-root-path = [ os.environ LUASOCKET_ROOT_PATH ] ;
if ! $(luasocket-root-path)
{
luasocket-root-path = "$(here)/../luasocket" ;
}
use-project luasocket : $(luasocket-root-path) ;
local loop-root-path = [ os.environ LOOP_ROOT_PATH ] ;
if ! $(loop-root-path)
{
loop-root-path = "$(here)/../loop" ;
}
use-project loop : $(loop-root-path) ;
local oil-root-path = [ os.environ OIL_ROOT_PATH ] ;
if ! $(oil-root-path)
{
oil-root-path = "$(here)/../oil" ;
}
use-project oil : $(oil-root-path) ;
local luascs-root-path = [ os.environ LUASCS_ROOT_PATH ] ;
if ! $(luascs-root-path)
{
luascs-root-path = "$(here)/../scs-lua" ;
}
use-project luascs : $(luascs-root-path) ;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment