-
Notifications
You must be signed in to change notification settings - Fork 47
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
Support for dynamic loading ? #38
Comments
Click the post process button and click the help. I added a PP command to do just that. I hope to submit a PR at some point with all my fixes and enhancements since the last update. Sorting through some corner cases. |
@jarroddavis68 yes, that's one way I was looking at it (but doing it directly in small Delphi executable) |
Thanks! FWIW use case is for webgpu.h (https://github.com/EricGrange/Delphi-WebGPU) where you have several implementations, and each implementation regularly churns out builds, so plenty of "compatible" dlls to choose from :) |
Hmm, the "CreateDynamicImport(0)" in Post process doesn't seem to have any effect ? |
post processing will effect this output: here is a build with all the PP changes I've made since the release that you have: So, the script processing is basic, enough to get the job done. If the script command is mispelled and/or not in the correct format, it will just be silently ignored. For example, if you add a |
@jarroddavis68 with your build this worked, thanks. As a small side-request, maybe the post-processing should appear in the translate log ? Currently it's not mentioned, and if the PP script contains invalid commands, there is no error reported either. |
Current headers are converted to static bindings (with optional "delayed").
Would it be possible to have an option to generate dynamic bindings instead ? (with GetProcAddress, etc)
The use case would not be just to survive a dll not being present, but also allow the dll name and path to be specified.
The text was updated successfully, but these errors were encountered: