-
Notifications
You must be signed in to change notification settings - Fork 7.7k
[opennurbs] add new port #21521
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
Closed
Closed
[opennurbs] add new port #21521
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7738c00
[opennurbs] add opennurbs
aminya ae7bff8
[opennurbs] Update ci.baseline.txt and add version
aminya 7d796e0
[opennurbs] add support for shared libraries on windows
aminya cc5171c
[opennurbs] fix macos build
aminya 745df6e
[opennurbs] clean-up the port and vcpkg.json
aminya a55534a
[opennurbs] specify c++ standard - fix build on c++ 20
aminya e7c779c
[opennurbs] add dirent dependency + fix osx uuid finding
aminya 827f991
[opennurbs] exclude android_uuid on macos
aminya 305312b
[opennurbs] set -DCMAKE_FIND_FRAMEWORK=LAST
aminya 64ad744
[opennurbs] fix build on windows arm64
aminya 6b517a2
[opennurbs] add !uwp to the supports entry
aminya 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,34 @@ | ||
| set(VERSION v7.11.21285.13001) | ||
|
|
||
| vcpkg_from_github( | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| REPO aminya/opennurbs | ||
| REF tags/${VERSION}_cmake | ||
| SHA512 0f2c336463b4b7ba41ea480e964be47f7927ff93b97bdd4f241bab21e5bc99b893c4d24fd64cc768f056ce29076bb7a19ceccf7c3ffb8b84d370fc8186047249 | ||
| HEAD_REF master | ||
| ) | ||
|
|
||
| if (NOT CMAKE_SYSTEM_NAME STREQUAL "Windows") | ||
| # shared libraries are only supported on Windows | ||
| vcpkg_check_linkage(ONLY_STATIC_LIBRARY) | ||
| endif() | ||
|
|
||
| string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" OPENNURBS_SHARED) | ||
|
|
||
| vcpkg_cmake_configure( | ||
| SOURCE_PATH ${SOURCE_PATH} | ||
| PREFER_NINJA | ||
| OPTIONS | ||
| -DOPENNURBS_SHARED=${OPENNURBS_SHARED} | ||
| -DCMAKE_FIND_FRAMEWORK=LAST | ||
| ) | ||
|
|
||
| vcpkg_cmake_build(TARGET opennurbs) | ||
|
|
||
| # copy header files | ||
| file(GLOB HEADER_FILES "${SOURCE_PATH}/*.h") | ||
| foreach(HEADER_FILE ${HEADER_FILES}) | ||
| file(INSTALL "${HEADER_FILE}" DESTINATION "${CURRENT_PACKAGES_DIR}/include") | ||
| endforeach() | ||
|
|
||
| file(INSTALL ${SOURCE_PATH}/LICENSE 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,4 @@ | ||
| The package opennurbs provides CMake targets: | ||
|
|
||
| find_package(opennurbs REQUIRED) | ||
| target_link_libraries(main PRIVATE opennurbs::opennurbs) |
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 @@ | ||
| { | ||
| "name": "opennurbs", | ||
| "version-string": "v7.11.21285.13001", | ||
| "description": "The openNURBS Initiative provides CAD, CAM, CAE, and computer graphics software developers the tools to accurately transfer 3D geometry between applications.", | ||
| "supports": "!uwp", | ||
| "dependencies": [ | ||
| "dirent", | ||
| { | ||
| "name": "vcpkg-cmake", | ||
| "host": true | ||
| } | ||
| ] | ||
| } |
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,9 @@ | ||
| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "4f9bfd1fccd54ec29d3060ed22259c9bc7a96fa9", | ||
| "version-string": "v7.11.21285.13001", | ||
| "port-version": 0 | ||
| } | ||
| ] | ||
| } |
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.