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

Add support for Apple framework builds #1444

Merged
merged 4 commits into from
Jan 23, 2025
Merged

Conversation

Treata11
Copy link
Contributor

Greetings,

Similar to the PR in libde265, I added the essential properties to the heif target to enable cross-compilation for iOS derived platforms.
Since libheif depends on libde265, the framework artifacts of libde265 must exist on local machine in order to cross compile libheif for a desired Apple platform.

The following commands could be used to generate the frameworks for an iOS target:

cmake -S. -B build -DBUILD_FRAMEWORK=TRUE -DCMAKE_SYSTEM_NAME=iOS -DWITH_EXAMPLES=OFF

sudo cmake --build build --target install --config Release

Note that WITH_EXAMPLES=OFF has to be off since I didn't find it necessary to modify the properties of Examples.

.gitignore Outdated Show resolved Hide resolved
libheif/CMakeLists.txt Outdated Show resolved Hide resolved
@farindk
Copy link
Contributor

farindk commented Jan 23, 2025

Thanks @Treata11 for the PR and @kmilos for the review.

@farindk farindk merged commit 1a131f9 into strukturag:master Jan 23, 2025
35 checks passed
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

Successfully merging this pull request may close these issues.

3 participants