Commit 596336fb authored by Ricardo Cosme's avatar Ricardo Cosme

+ Artefatos de suporte a construcao atraves do Boost Build

 - Suporte incial para Windows.


git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/branches/02_00_01@162271 ae0415b3-e90b-0410-900d-d0be9363c56b
parent 6945f257
# -*- coding: iso-8859-1-unix -*-
import os ;
import modules ;
path-constant here : . ;
lua-install-path = [ os.environ LUA_INSTALL_PATH ] ;
if ! $(lua-install-path)
{
lua-install-path = "$(here)/../../install/lua" ;
}
loop-root-path = [ os.environ LOOP_ROOT_PATH ] ;
if ! $(loop-root-path)
{
loop-root-path = "$(here)/../loop" ;
}
oil-root-path = [ os.environ OIL_ROOT_PATH ] ;
if ! $(oil-root-path)
{
oil-root-path = "$(here)/../oil" ;
}
scs-idl-path = [ os.environ SCS_IDL_PATH ] ;
if ! $(scs-idl-path)
{
scs-idl-path = "$(here)/../scs-idl" ;
}
openbus-idl-path = [ os.environ OPENBUS_IDL_PATH ] ;
if ! $(openbus-idl-path)
{
openbus-idl-path = "$(here)/../openbus-idl" ;
}
openbus-legacy-idl-path = [ os.environ OPENBUS_LEGACY_IDL_PATH ] ;
if ! $(openbus-legacy-idl-path)
{
openbus-legacy-idl-path = "$(here)/../openbus-legacy-idl" ;
}
openbus-lib-idl-path = [ os.environ OPENBUS_LIB_IDL_PATH ] ;
if ! $(openbus-lib-idl-path)
{
openbus-lib-idl-path = "$(here)/../openbus-lib-idl" ;
}
modules.load preloader : : $(loop-root-path) ;
import preloader ;
using preloader ;
project luaopenbus
: requirements
<target-os>windows:<pch>off
<target-os>windows,<link>shared:<runtime-link>shared
<target-os>windows,<link>static:<runtime-link>static
<target-os>windows:<debug-store>database
<target-os>windows:<define>_CRT_SECURE_NO_WARNINGS
<target-os>windows:<cxxflags>/FS
<debug-symbols>on
;
make luaopenbus.c
: lua/openbus/assistant.lua
lua/openbus/assistant2.lua
lua/openbus/core/Access.lua
lua/openbus/core/idl/makeaux.lua
lua/openbus/core/idl/parsed.lua
lua/openbus/core/idl.lua
lua/openbus/core/legacy/idl.lua
lua/openbus/core/legacy/parsed.lua
lua/openbus/core/messages.lua
lua/openbus/idl/parsed.lua
lua/openbus/idl.lua
lua/openbus/util/argcheck.lua
lua/openbus/util/autotable.lua
lua/openbus/util/database.lua
lua/openbus/util/except.lua
lua/openbus/util/logger.lua
lua/openbus/util/messages.lua
lua/openbus/util/oo.lua
lua/openbus/util/sandbox.lua
lua/openbus/util/server.lua
lua/openbus/util/sysex.lua
lua/openbus/util/tickets.lua
lua/openbus.lua
: preloader.pre-compile
: <search>$(here)
;
modules.load idl2lua : : $(oil-root-path) ;
import idl2lua ;
using idl2lua ;
make lua/openbus/idl/parsed.lua
: $(openbus-lib-idl-path)/src/openbus.idl
: idl2lua.compile
: <include>$(openbus-lib-idl-path)/src
<include>$(openbus-idl-path)/src
<include>$(scs-idl-path)/src
;
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
$(scs-idl-path)/src/scs.idl
: idl2lua.compile
: <include>$(openbus-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/core.idl
$(scs-idl-path)/src/scs.idl
: idl2lua.compile
: <include>$(openbus-legacy-idl-path)/src
<include>$(scs-idl-path)/src
;
lib luaopenbus
: luaopenbus.c
/lua//lua
: <include>src
<target-os>windows,<link>shared:<linkflags>"/def:$(here)/luaopenbus.def"
:
: <include>.
;
explicit luaopenbus ;
install stage
: luaopenbus
: <location>install
;
\ No newline at end of file
# -*- coding: iso-8859-1-unix -*-
import os ;
path-constant here : . ;
local lua-install-path = [ os.environ LUA_INSTALL_PATH ] ;
if ! $(lua-install-path)
{
lua-install-path = "$(here)/../../install/lua" ;
}
project lua
: requirements <include>$(lua-install-path)/include ;
lib lua
:
: <search>$(lua-install-path)/lib
;
lib lua
:
: <name>lua52
<target-os>windows
<search>$(lua-install-path)/lib
;
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