mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 01:59:00 +08:00
[open-dis-cpp] add new port (#29472)
* Initial open-dis-cpp port * Correct vcpkg file and versions file * Add open-dis-cpp version file * Remove unused variables * prefer ninja * use master for now * Tweak portfile for sha * Update sha512 * Remove debug include files * Use forked repo for testing * Update sha512 * Update version database * Update usage * Update version database * Update to 1.0.1 release * Correct repo path * Update sha512 * Update versions * Correct cmake options * Update version database
This commit is contained in:
parent
9d07914638
commit
928c150043
25
ports/open-dis-cpp/portfile.cmake
Normal file
25
ports/open-dis-cpp/portfile.cmake
Normal file
@ -0,0 +1,25 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO open-dis/open-dis-cpp
|
||||
REF "v${VERSION}"
|
||||
SHA512 e6d38f55beabf85d0319be21d9cec07f818b833dfa14dcb649cacbc8ea86779c29ac2717579239378ace1ae62054864851ecb55402e82fe4d083ab483218260e
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
-DBUILD_TESTS=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME OpenDIS CONFIG_PATH lib/cmake/OpenDIS)
|
||||
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
|
||||
# Handle copyright
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
5
ports/open-dis-cpp/usage
Normal file
5
ports/open-dis-cpp/usage
Normal file
@ -0,0 +1,5 @@
|
||||
The package open-dis-cpp provides CMake targets:
|
||||
|
||||
find_package(OpenDIS CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE OpenDIS::OpenDIS6)
|
||||
target_link_libraries(main PRIVATE OpenDIS::OpenDIS7)
|
20
ports/open-dis-cpp/vcpkg.json
Normal file
20
ports/open-dis-cpp/vcpkg.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "open-dis-cpp",
|
||||
"version": "1.0.1",
|
||||
"description": [
|
||||
"DIS v6/v7 Library",
|
||||
"C++ implementation of the IEEE-1278.1 Distributed Interactive Simulation (DIS) application protocol v6 and v7"
|
||||
],
|
||||
"homepage": "https://open-dis.org",
|
||||
"license": "BSD-2-Clause",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -5572,6 +5572,10 @@
|
||||
"baseline": "2021-11-23",
|
||||
"port-version": 0
|
||||
},
|
||||
"open-dis-cpp": {
|
||||
"baseline": "1.0.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"open62541": {
|
||||
"baseline": "1.2.3",
|
||||
"port-version": 1
|
||||
|
9
versions/o-/open-dis-cpp.json
Normal file
9
versions/o-/open-dis-cpp.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "044f953e62d00086021c231face998ce58ad2b05",
|
||||
"version": "1.0.1",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user