-
Notifications
You must be signed in to change notification settings - Fork 619
deps: Add build recipe for WebP #4422
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
fbe2171
deps: Add build recipe for WebP
zachlewis f03d380
cleanup: Remove unnecessary THIRD-PARTY attribution for WebP
zachlewis 5bf1fe1
api: Adjust IBA::perpixel_op function signature (#4409)
lgritz b992a6e
api: IOProxy const method adjustments (#4415)
lgritz be69456
build: No need for OCIO search to use PREFER_CONFIG (#4425)
lgritz 6e09a38
ci: Adjust ABI standard
lgritz 0d17669
docs: minor docs fixups to help with sphinx warnings and errors (#4427)
lgritz a8e99c4
Merge branch 'master' into build_WebP
zachlewis f1d002f
deps(WebP): force build recipe to only build static libraries
zachlewis b9c758e
Merge branch 'main' into build_WebP
zachlewis a0ed81a
cleanup: build_WebP recipe
zachlewis c87602e
Update THIRD-PARTY.md
zachlewis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Copyright Contributors to the OpenImageIO project. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# https://github.com/AcademySoftwareFoundation/OpenImageIO | ||
|
||
###################################################################### | ||
# WebP by hand! | ||
###################################################################### | ||
|
||
set_cache (WebP_BUILD_VERSION 1.4.0 "WebP version for local builds") | ||
set (WebP_GIT_REPOSITORY "https://github.com/webmproject/libwebp.git") | ||
set (WebP_GIT_TAG "v${WebP_BUILD_VERSION}") | ||
|
||
set_cache (WebP_BUILD_SHARED_LIBS OFF | ||
DOC "Should execute a local WebP build; if necessary, build shared libraries" ADVANCED) | ||
|
||
string (MAKE_C_IDENTIFIER ${WebP_BUILD_VERSION} WebP_VERSION_IDENT) | ||
|
||
build_dependency_with_cmake(WebP | ||
VERSION ${WebP_BUILD_VERSION} | ||
GIT_REPOSITORY ${WebP_GIT_REPOSITORY} | ||
GIT_TAG ${WebP_GIT_TAG} | ||
CMAKE_ARGS | ||
-D BUILD_SHARED_LIBS=${WebP_BUILD_SHARED_LIBS} | ||
-D WEBP_BUILD_ANIM_UTILS=OFF | ||
-D WEBP_BUILD_CWEBP=OFF | ||
-D WEBP_BUILD_DWEBP=OFF | ||
-D WEBP_BUILD_GIF2WEBP=OFF | ||
-D WEBP_BUILD_IMG2WEBP=OFF | ||
-D WEBP_BUILD_VWEBP=OFF | ||
-D WEBP_BUILD_WEBPINFO=OFF | ||
-D WEBP_BUILD_WEBPMUX=OFF | ||
-D WEBP_BUILD_EXTRAS=OFF | ||
-D CMAKE_INSTALL_LIBDIR=lib | ||
) | ||
|
||
# Set some things up that we'll need for a subsequent find_package to work | ||
set (WebP_ROOT ${WebP_LOCAL_INSTALL_DIR}) | ||
|
||
# Signal to caller that we need to find again at the installed location | ||
set (WebP_REFIND TRUE) | ||
set (WebP_REFIND_VERSION ${WebP_BUILD_VERSION}) | ||
set (WebP_REFIND_ARGS CONFIG) | ||
|
||
if (WebP_BUILD_SHARED_LIBS) | ||
install_local_dependency_libs (WebP WebP) | ||
endif () |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kinda wish PRs would not make unrelated formatting changes to other parts of the codebase, but whatever, this is harmless.