-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[opensubdiv] New port #13695
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
[opensubdiv] New port #13695
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e1dfde4
new port opensubdiv
ousttrue 0652967
format-manifest
ousttrue 6a7b5a3
remove comment. use ${PORT}
ousttrue 694aaa8
limit targets
ousttrue 8b97256
add supports
ousttrue adb7f6e
NO_CUDA
ousttrue cd05228
Update ports/opensubdiv/vcpkg.json
ousttrue ed595ae
fix STATIC_CRT
ousttrue 5154f23
Merge remote-tracking branch 'origin/master' into HEAD
BillyONeal 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| index b69912ae..dcde4297 100644 | ||
| --- a/CMakeLists.txt | ||
| +++ b/CMakeLists.txt | ||
| @@ -218,7 +218,7 @@ elseif(MSVC) | ||
|
|
||
| list(APPEND OSD_COMPILER_FLAGS | ||
| /W3 # Use warning level recommended for production purposes. | ||
| - /WX # Treat all compiler warnings as errors. | ||
| + # /WX # Treat all compiler warnings as errors. | ||
|
|
||
| # warning C4005: macro redefinition | ||
| /wd4005 |
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 @@ | ||
| vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "linux" "osx" "uwp") | ||
|
|
||
| vcpkg_from_github( | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| REPO PixarAnimationStudios/OpenSubdiv | ||
| REF 82ab1b9f54c87fdd7e989a3470d53e137b8ca270 # 3.4.3 | ||
| SHA512 607cb9aa05d83a24bc2102bfd28abfec58f5723b1c56f6f431111ebf98f105ff7ca2a77610953acd21f73cb74d8d8ec68db3aeb11be1f9ca56d87c36c58dd095 | ||
| HEAD_REF master | ||
| PATCHES | ||
| fix_compile-option.patch | ||
| ) | ||
|
|
||
| vcpkg_find_acquire_program(PYTHON2) | ||
| get_filename_component(PYTHON2_DIR "${PYTHON2}" DIRECTORY) | ||
| vcpkg_add_to_path("${PYTHON2_DIR}") | ||
|
|
||
| if (VCPKG_CRT_LINKAGE STREQUAL static) | ||
| set(STATIC_CRT_LNK ON) | ||
| else() | ||
| set(STATIC_CRT_LNK OFF) | ||
| endif() | ||
|
|
||
| vcpkg_configure_cmake( | ||
| SOURCE_PATH ${SOURCE_PATH} | ||
| PREFER_NINJA # Disable this option if project cannot be built with Ninja | ||
| OPTIONS | ||
| -DNO_DX=ON | ||
| -DNO_CUDA=ON | ||
| -DNO_EXAMPLES=ON | ||
| -DNO_TUTORIALS=ON | ||
| -DNO_REGRESSION=ON | ||
| -DNO_TESTS=ON | ||
| -DMSVC_STATIC_CRT=${STATIC_CRT_LNK} | ||
| ) | ||
|
|
||
| vcpkg_install_cmake() | ||
|
|
||
| # # Moves all .cmake files from /debug/share/opensubdiv/ to /share/opensubdiv/ | ||
| # # See /docs/maintainers/vcpkg_fixup_cmake_targets.md for more details | ||
| # vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/opensubdiv) | ||
|
|
||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin") | ||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin") | ||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") | ||
|
|
||
| file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) | ||
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,7 @@ | ||
| { | ||
| "name": "opensubdiv", | ||
| "version-string": "3.4.3", | ||
| "description": "An Open-Source subdivision surface library.", | ||
| "homepage": "https://github.com/PixarAnimationStudios/OpenSubdiv", | ||
| "supports": "windows & !arm & !uwp" | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.