lubyk / dub

A Lua bindings generator that uses Doxygen to parse C/C++ headers.
doc.lubyk.org/dub.html
Other
82 stars 34 forks source link

Can't generate bindings for all files in a folder #13

Open leiradel opened 8 years ago

leiradel commented 8 years ago

Hi,

I'm opening an issue here because the forums at http://forum.lubyk.org/ seem to be inaccessible.

I'm trying to make dub generate bindings for classes and functions found in all files starting in a folder. In my tests I have:

My dub script is:

local lub = require 'lub'
local dub = require 'dub'

local inspector = dub.Inspector {
  INPUT    = {
    lub.path '|include/',
  },
  RECURSIVE = 'YES',
  GENERATE_HTML = 'YES',
  doc_dir = lub.path '|doc',
  keep_xml = true,
}

local binder = dub.LuaBinder()

binder:bind(inspector, {
  lib_name = '_',

  single_lib = 'miniclip',

  output_directory = lub.path '|src',

  header_base = lub.path '|include',

  luaopen    = 'cppbindings',
})

When I run the dub script only things in Test.h end up having Lua bindings. Examining doxygen's output, I can see that it's not catching the mc::Test4 class, which I believe is the reason why dub is not generating its binding.

dub's version is 2.2.4, and doxygen's is 1.8.11.

Am I doing something wrong?

Thanks in advance,

Andre

leiradel commented 8 years ago

Never mind, there was something wrong in my Test4.h file. Now my issue is that it works with the .h extension but not with .hpp.