-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[openvr] Added Linux support and updated to v1.10.30 #10629
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 all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
b70430a
[openvr] Added Linux support
makinori e319ea1
[openvr] Updated to v1.10.30
makinori 7b349bc
[openvr] Updated port file with modern variables and better platform …
makinori 06807d9
[openvr] Updated ci.baseline.txt as Linux is supported now
makinori 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 |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| Source: openvr | ||
| Version: 1.9.16 | ||
| Version: 1.10.30 | ||
| Homepage: https://github.com/ValveSoftware/openvr | ||
| Description: an API and runtime that allows access to VR hardware from multiple vendors without requiring that applications have specific knowledge of the hardware they are targeting. | ||
| Supports: !(arm|uwp|osx|android) | ||
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 |
|---|---|---|
| @@ -1,47 +1,41 @@ | ||
| include(vcpkg_common_functions) | ||
| vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "uwp" "osx") | ||
|
|
||
| vcpkg_from_github( | ||
|
makinori marked this conversation as resolved.
|
||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| REPO ValveSoftware/openvr | ||
| REF 39205f6b281a6131d1373d0217c1ab9ed19735ea # v1.9.16 | ||
| SHA512 f609a25aaae42e23d8c1b89e9f7d7f5e0e18e52cd3b3125044fdfa348c0f0e8b1e9c9d884a8014bb5dbc07c4d2635a9852d229ba95568b6c33f86b6afb27140f | ||
| REF 26fa19eb86ab3c589af2bdbc77449d61a8ff799b # v1.10.30 | ||
| SHA512 821e113c6a847a244cd138869b5c8192c67054e6b8d39c0764d4e88f7a839146e9d9ec1f189cd5566f8954ad07ee0c86cbf8d353806c9bceb0f0a45def1a0ca2 | ||
| HEAD_REF master | ||
| ) | ||
|
|
||
| set(VCPKG_LIBRARY_LINKAGE dynamic) | ||
|
|
||
| if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64") | ||
| set(ARCH_PATH "win64") | ||
| elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86") | ||
| set(ARCH_PATH "win32") | ||
| if(VCPKG_TARGET_IS_WINDOWS) | ||
| if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64") | ||
| set(ARCH_PATH "win64") | ||
| elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86") | ||
| set(ARCH_PATH "win32") | ||
| else() | ||
| message(FATAL_ERROR "Package only supports x64 and x86 Windows.") | ||
| endif() | ||
| elseif(VCPKG_TARGET_IS_LINUX) | ||
| if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64") | ||
| set(ARCH_PATH "linux64") | ||
| elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86") | ||
| set(ARCH_PATH "linux32") | ||
| else() | ||
| message(FATAL_ERROR "Package only supports x64 and x86 Linux.") | ||
| endif() | ||
| else() | ||
| message(FATAL_ERROR "Package only supports x64 and x86 windows.") | ||
| message(FATAL_ERROR "Package only supports Windows and Linux.") | ||
| endif() | ||
|
|
||
| if(VCPKG_CMAKE_SYSTEM_NAME) | ||
| message(FATAL_ERROR "Package only supports windows desktop.") | ||
| endif() | ||
| file(COPY ${SOURCE_PATH}/lib/${ARCH_PATH}/ DESTINATION ${CURRENT_PACKAGES_DIR}/lib) | ||
| file(COPY ${SOURCE_PATH}/lib/${ARCH_PATH}/ DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib) | ||
|
|
||
| file(MAKE_DIRECTORY | ||
| ${CURRENT_PACKAGES_DIR}/lib | ||
| ${CURRENT_PACKAGES_DIR}/bin | ||
| ${CURRENT_PACKAGES_DIR}/debug/lib | ||
| ${CURRENT_PACKAGES_DIR}/debug/bin | ||
| ) | ||
| file(COPY ${SOURCE_PATH}/lib/${ARCH_PATH}/openvr_api.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib) | ||
| file(COPY ${SOURCE_PATH}/lib/${ARCH_PATH}/openvr_api.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib) | ||
| file(COPY | ||
| ${SOURCE_PATH}/bin/${ARCH_PATH}/openvr_api.dll | ||
| ${SOURCE_PATH}/bin/${ARCH_PATH}/openvr_api.pdb | ||
| DESTINATION ${CURRENT_PACKAGES_DIR}/bin | ||
| ) | ||
| file(COPY | ||
| ${SOURCE_PATH}/bin/${ARCH_PATH}/openvr_api.dll | ||
| ${SOURCE_PATH}/bin/${ARCH_PATH}/openvr_api.pdb | ||
| DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin | ||
| ) | ||
| file(COPY ${SOURCE_PATH}/headers DESTINATION ${CURRENT_PACKAGES_DIR}) | ||
| file(RENAME ${CURRENT_PACKAGES_DIR}/headers ${CURRENT_PACKAGES_DIR}/include) | ||
| file(COPY ${SOURCE_PATH}/bin/${ARCH_PATH}/ DESTINATION ${CURRENT_PACKAGES_DIR}/bin) | ||
| file(COPY ${SOURCE_PATH}/bin/${ARCH_PATH}/ DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin) | ||
|
|
||
| file(INSTALL ${SOURCE_PATH}/headers DESTINATION ${CURRENT_PACKAGES_DIR} RENAME include) | ||
|
|
||
|
makinori marked this conversation as resolved.
|
||
| file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/openvr) | ||
| file(RENAME ${CURRENT_PACKAGES_DIR}/share/openvr/LICENSE ${CURRENT_PACKAGES_DIR}/share/openvr/copyright) | ||
| 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
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.