这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@zeriyoshi
Copy link

Description

This PR modifies the CMake build configuration to improve jpegli integration for mobile (iOS/Android) and web (Emscripten) platforms.

Changes:

  • Restructured CMake targets to expose object libraries for easier static linking
  • Enabled cross-platform usage of jpegli as a fully static library
  • Maintained compatibility as a drop-in replacement for libjpeg

Usage Example:

Projects can now integrate jpegli by including the object libraries in their build:

list(APPEND SOURCES
  $<TARGET_OBJECTS:brotlicommon>
  $<TARGET_OBJECTS:brotlidec>
  $<TARGET_OBJECTS:brotlienc>
  $<TARGET_OBJECTS:hwy>
  $<TARGET_OBJECTS:jxl_dec-obj>
  $<TARGET_OBJECTS:jxl_enc-obj>
  $<TARGET_OBJECTS:jxl_cms>
  $<TARGET_OBJECTS:jpegli-static-obj>
  $<TARGET_OBJECTS:jpegli-libjpeg-obj>
)

This allows seamless integration across platforms while maintaining the ability to use jpegli as a libjpeg replacement.

Pull Request Checklist

  • CLA Signed: Have you signed the Contributor License Agreement (individual or corporate, as appropriate)? Only contributions from signed contributors can be accepted.
  • Authors: Have you considered adding your name to the AUTHORS file?
  • Code Style: Have you ensured your code adheres to the project's coding style guidelines? You can use ./ci.sh lint for automatic code formatting.

Please review the full contributing guidelines for more details.

@jonnyawsom3
Copy link
Collaborator

Is this a replacement of google/jpegli#116?

@zeriyoshi
Copy link
Author

Is this a replacement of google/jpegli#116?

Yes. I forgot this PR. sorry

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.

2 participants