Jamroot 3.48 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
# -*- 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
61
    <toolset>msvc-12.0:<cxxflags>/FS
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
    <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
  ;