Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
leiradel opened this issue Aug 24, 2016 · 1 comment
Open

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

leiradel opened this issue Aug 24, 2016 · 1 comment

Comments

@leiradel
Copy link

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:

  • include
    • subdir
      • Test4.h: Contains the mc2::Test4 class
    • Test.h: Contains the mc::Test2 and the mc::Test3 classes, and the mc::doStuffWithTest function

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant