Open leiradel opened 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:
include
subdir
Test4.h
mc2::Test4
Test.h
mc::Test2
mc::Test3
mc::doStuffWithTest
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.
mc::Test4
dub's version is 2.2.4, and doxygen's is 1.8.11.
Am I doing something wrong?
Thanks in advance,
Andre
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.
.h
.hpp
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 themc2::Test4
classTest.h
: Contains themc::Test2
and themc::Test3
classes, and themc::doStuffWithTest
functionMy dub script is:
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 themc::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