[openmama] Modify the output path of the common header file (#16725)

* [openmama] Modify the path of the common header file

* Update json files

* Remove file existence judgment

* Update git tree

Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
This commit is contained in:
Cheney Wang 2021-04-13 00:59:28 +08:00 committed by GitHub
parent d23aa4ad3f
commit 66e1e5c1df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 11 deletions

View File

@ -1,6 +0,0 @@
Source: openmama
Version: 6.3.1
Build-Depends: libevent, apr, qpid-proton
Supports: windows&(x64|x86)
Homepage: https://github.com/OpenMAMA/OpenMAMA
Description: OpenMAMA is a high performance vendor neutral lightweight wrapper that provides a common API interface to different middleware and messaging solutions across a variety of platforms and languages.

View File

@ -2,8 +2,8 @@ vcpkg_find_acquire_program(FLEX)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO OpenMAMA/OpenMAMA
REF c4925ee103add1a51c1d27be45b46d97af347f36 # https://github.com/OpenMAMA/OpenMAMA/tree/OpenMAMA-6.3.1-release
REPO finos/OpenMAMA
REF c4925ee103add1a51c1d27be45b46d97af347f36 # https://github.com/finos/OpenMAMA/releases/tag/OpenMAMA-6.3.1-release
SHA512 e2773d082dd28e073fe81223fc113b1a5db7cd0d95e150e9f3f02c8c9483b9219b5d10682a125dd792c3a7877e15b90fd908084a4c89af4ec8d8c0389c282de2
HEAD_REF next
)
@ -41,7 +41,14 @@ endif()
# Vcpkg does not expect include files to be in the debug directory
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Vcpkg does not like this header name and shouldn't be required anyway, so remove it
file(REMOVE "${CURRENT_PACKAGES_DIR}/include/platform.h")
foreach(OPENMAMA_ROOT_HEADER destroyhandle.h platform.h list.h lookup2.h property.h timers.h wlock.h windows)
if(EXISTS "${CURRENT_PACKAGES_DIR}/include/${OPENMAMA_ROOT_HEADER}")
file(RENAME "${CURRENT_PACKAGES_DIR}/include/${OPENMAMA_ROOT_HEADER}" "${CURRENT_PACKAGES_DIR}/include/wombat/${OPENMAMA_ROOT_HEADER}")
endif()
endforeach()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/mama/integration/transport.h" "list.h" "wombat/list.h")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/mama/integration/types.h" "list.h" "wombat/list.h")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/mama/integration/mama.h" "property.h" "wombat/property.h")
vcpkg_copy_pdbs()

13
ports/openmama/vcpkg.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "openmama",
"version-semver": "6.3.1",
"port-version": 1,
"description": "OpenMAMA is a high performance vendor neutral lightweight wrapper that provides a common API interface to different middleware and messaging solutions across a variety of platforms and languages",
"homepage": "https://github.com/finos/OpenMAMA",
"supports": "windows & (x64 | x86)",
"dependencies": [
"apr",
"libevent",
"qpid-proton"
]
}

View File

@ -4474,7 +4474,7 @@
},
"openmama": {
"baseline": "6.3.1",
"port-version": 0
"port-version": 1
},
"openmesh": {
"baseline": "8.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "74e126369c9ba45cf7105e1b72871738acd24de5",
"version-semver": "6.3.1",
"port-version": 1
},
{
"git-tree": "6945e436fdfc5307d58f84ff5c76f6a34e2a8031",
"version-string": "6.3.1",