Commit 25d4d65c authored by Ricardo Cosme's avatar Ricardo Cosme

[OPENBUS-2785] Deployment do barramento com suporte ao 2.1 atraves do Boost Build

+ Ajustes para suportar a versao do SDK Lua com suporte ao protocolo 2.1.


git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/trunk@165135 ae0415b3-e90b-0410-900d-d0be9363c56b
parent 1d259a22
......@@ -72,6 +72,8 @@ make luaopenbus.c
lua/openbus/core/legacy/idl.lua
lua/openbus/core/legacy/parsed.lua
lua/openbus/core/messages.lua
lua/openbus/console/costdin.lua
lua/openbus/console/utils.lua
lua/openbus/idl/parsed.lua
lua/openbus/idl.lua
lua/openbus/util/argcheck.lua
......@@ -86,6 +88,8 @@ make luaopenbus.c
lua/openbus/util/sysex.lua
lua/openbus/util/tickets.lua
lua/openbus.lua
src/lthreadlib.c
src/lecholib.c
: preloader.pre-compile
: <search>$(here)
;
......@@ -96,6 +100,13 @@ using idl2lua ;
make lua/openbus/idl/parsed.lua
: $(openbus-lib-idl-path)/src/openbus.idl
$(openbus-lib-idl-path)/src/corba.idl
$(openbus-idl-path)/src/tecgraf/openbus/core/v2_1/services/access_control.idl
$(openbus-idl-path)/src/tecgraf/openbus/core/v2_1/services/offer_registry.idl
$(openbus-idl-path)/src/tecgraf/openbus/core/v2_1/data_export.idl
$(openbus-idl-path)/src/tecgraf/openbus/core/v2_1/core.idl
$(openbus-idl-path)/src/tecgraf/openbus/core/v2_1/credential.idl
$(scs-idl-path)/src/scs.idl
: idl2lua.compile
: <include>$(openbus-lib-idl-path)/src
<include>$(openbus-idl-path)/src
......@@ -103,35 +114,60 @@ make lua/openbus/idl/parsed.lua
;
make lua/openbus/core/idl/parsed.lua
: $(openbus-idl-path)/src/access_control.idl
$(openbus-idl-path)/src/offer_registry.idl
$(openbus-idl-path)/src/data_export.idl
$(openbus-idl-path)/src/core.idl
$(openbus-idl-path)/src/credential.idl
: $(openbus-idl-path)/src/tecgraf/openbus/core/v2_1/services/access_control.idl
$(openbus-idl-path)/src/tecgraf/openbus/core/v2_1/services/offer_registry.idl
$(openbus-idl-path)/src/tecgraf/openbus/core/v2_1/data_export.idl
$(openbus-idl-path)/src/tecgraf/openbus/core/v2_1/core.idl
$(openbus-idl-path)/src/tecgraf/openbus/core/v2_1/credential.idl
$(scs-idl-path)/src/scs.idl
: idl2lua.compile
: <include>$(openbus-idl-path)/src
<include>$(openbus-legacy-idl-path)/src
<include>$(scs-idl-path)/src
;
make lua/openbus/core/legacy/parsed.lua
: $(openbus-legacy-idl-path)/src/access_control_service.idl
$(openbus-legacy-idl-path)/src/registry_service.idl
$(openbus-legacy-idl-path)/src/fault_tolerance.idl
: $(openbus-legacy-idl-path)/src/access_control.idl
$(openbus-legacy-idl-path)/src/offer_registry.idl
$(openbus-legacy-idl-path)/src/data_export.idl
$(openbus-legacy-idl-path)/src/core.idl
$(openbus-legacy-idl-path)/src/credential.idl
$(scs-idl-path)/src/scs.idl
$(openbus-idl-path)/src/tecgraf/openbus/core/v2_1/services/legacy_support.idl
$(openbus-idl-path)/src/tecgraf/openbus/core/v2_1/services/access_control.idl
$(openbus-idl-path)/src/tecgraf/openbus/core/v2_1/core.idl
$(openbus-idl-path)/src/tecgraf/openbus/core/v2_1/credential.idl
: idl2lua.compile
: <include>$(openbus-legacy-idl-path)/src
<include>$(openbus-idl-path)/src
<include>$(scs-idl-path)/src
;
lib luaopenbus
: luaopenbus.c
src/openbuslua.c
src/lthreadlib.c
src/lecholib.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
/luasec//luasec
: <include>src
<include>.
<target-os>windows,<link>shared:<linkflags>"/def:$(here)/luaopenbus.def"
:
: <include>.
<include>src
;
explicit luaopenbus ;
......
......@@ -24,3 +24,356 @@ 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) ;
local luasec-root-path = [ os.environ LUASEC_ROOT_PATH ] ;
if ! $(luasec-root-path)
{
luasec-root-path = "$(here)/../luasec" ;
}
use-project luasec : $(luasec-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