parsed.luad 675 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
local _G = require "_G"
local assert = _G.assert
local io = require "io"
local stderr = io.stderr

local luaidl = require "luaidl"
local parse = luaidl.parse

local idlspec = [[
10
#include "openbus_legacy-2.1.idl"
11 12 13 14 15 16 17 18 19 20 21 22 23 24
#include "access_control.idl"
#include "offer_registry.idl"
#include "data_export.idl"
]]

local idlpath = os.getenv("OPENBUS_IDLPATH")
if idlpath == nil then
  stderr:write("OPENBUS_IDLPATH is not defined! Using '.' as default.\n")
  idlpath = "."
end

local Compiler = require "oil.corba.idl.Compiler"
local options = Compiler().defaults
options.incpath = {
25
  idlpath.."/core",
26 27 28 29
  idlpath.."/old",
  idlpath.."/scs",
}
return { assert(parse(idlspec, options)) }