-
Notifications
You must be signed in to change notification settings - Fork 511
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
Generator.OutputMode.FilePerModule
mode not working?
#1863
Comments
Seems like we never considered this edge case, a PR with a fix is welcome, and preferably with a test. Btw I see that you are trying to bind Qt. Are you aware of https://gitlab.com/ddobrev/QtSharp? |
Yes, I'm aware of it but considering the last update date, I decided only to take influence. |
Unfortunately Dimitar passed away before fully completing the work on QtSharp, but a lot of it should still be applicable. |
I have been working on this. The trouble I have right now is that current unit tests can't find C++ test header files. They should be under a subdirectory of the Executing Assembly's folder. For my case they should be under "bin/Release_x64" but they aren't. Project files don't copy them to the bin folder because the project does not find them. What is your setup @tritao? Did I forget to do something? Test header files are in the repo but not in the folder the project tries to look for. |
If you check the We prefered that approach to copying the files since it should lead to less duplication and potential troubles. I wonder why it's not picking it up on your setup though, do you have a custom output folder setup that is outside the main CppSharp checkout? |
The problem was that I had a test folder in the release_x64 folder for some reason. Since the check only checks that folder structure exists not that files exist it selected it before going to the parent folder. Thanks @tritao I missed the loop part of the |
The current version of CppSharp generates only one file with
Generator.OutputMode.FilePerModule
mode if header files are in the same include directory. ILibrary Setup method:I think this is caused by
CleanUnitPass
associating unit passes with the first module with the same include path.In the
CleanUnitPass
module is determined by this method:Line
return Options.Modules.FirstOrDefault
seem to cause the issue. I would removeCleanUnitPass
class and move the module unit association to be done at the parser rather than later.The text was updated successfully, but these errors were encountered: