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

iOS Builds #1912

Open
Treata11 opened this issue Jan 1, 2025 · 3 comments
Open

iOS Builds #1912

Treata11 opened this issue Jan 1, 2025 · 3 comments

Comments

@Treata11
Copy link

Treata11 commented Jan 1, 2025

Greetings,

I noticed that the project's CMake version is set to 3.15, which should be sufficient for Apple platform builds.
But I took a look at the source & couldn't find Framework properties set in CMake configs.

I'm curious if builds for iOS derivatives are currently planned or being considered? If not, and if agreed upon, I'd be happy to submit a pull request to add the FRAMEWORK properties for appropriate targets.

Happy New Year to all!

Tasks

Preview Give feedback
No tasks being tracked yet.
@lgritz
Copy link
Collaborator

lgritz commented Jan 1, 2025

I don't think we have it specifically planned, but if anybody wanted to make the PRs to make it work, I think we would happily accept them as long as they didn't make the other platforms dramatically more complex somehow. If it's mostly a matter of putting the right CMake bits in, please do! (Not being an iOS programmer, I'm less certain about how we would test it in CI, but if you have ideas there, those are also very welcome.)

@Treata11
Copy link
Author

Treata11 commented Jan 2, 2025

@lgritz

I see that OSL has a rather complex dependency tree, and not all of them currently support iOS builds. The same goes for OpenImageIO.
Fortunately, most of the interdependencies are on my list to address. I'll get back to this issue once those are taken care of.

(Not being an iOS programmer, I'm less certain about how we would test it in CI, but if you have ideas there, those are also very welcome.)

Will do once everything's set up.

@lgritz
Copy link
Collaborator

lgritz commented Jan 2, 2025

Sounds great, @Treata11. On the OIIO side, as you note, it is an especially complex dependency situation. However, most of those dependencies are used to support particular image file formats, and most of those are optional dependencies -- meaning that if the dependency is not found at build time, OIIO will proceed to build, but disabling support for that particular file format. So you can be very strategic about prioritizing dependencies: only truly required dependencies at first, then adding optional dependencies in an order guided by the likelihood of encountering those particular file formats on an iOS device, and purposely leaving out support for formats you won't need on iOS or for the use cases you have in mind for your app.

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

2 participants