-
Notifications
You must be signed in to change notification settings - Fork 15
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
More than 1 swift file for the bidirectional scenario does not build #12
Comments
I am also wondering if it made sense to distinguish between swift files where we want to make the API available and others where we don't. |
It looks like I missed the
So normally what I do for C interop is have two libraries, one that does the actual work in Swift, and one that exposes the API that I want in C. Not unlike how folks tend to expose C++ libraries through a One of the goals was to make that less required with C++ interop so that you could implement parts of an existing codebase in Swift without needing to do a lot of bridging work. So the idea here is that What eventually ends up in the generated header is influenced by access level. |
This should be fixed as of #9. Please verify. |
When adding a swift file
solve.swift
here in theCmakeLists.txt
of the library, the generation of the bridge code fails.This also happens with the code of PR #9
Ideally I want the bridge code generator only getting applied on one of the swift files, and the other swift files are the backend code doing the real work. I think this might make a nice scenario for your repository.
The text was updated successfully, but these errors were encountered: