2017-11-27 07:17:02 +08:00
|
|
|
vcpkg_find_acquire_program(FLEX)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2021-04-13 00:59:28 +08:00
|
|
|
REPO finos/OpenMAMA
|
|
|
|
REF c4925ee103add1a51c1d27be45b46d97af347f36 # https://github.com/finos/OpenMAMA/releases/tag/OpenMAMA-6.3.1-release
|
2020-10-16 03:44:52 +08:00
|
|
|
SHA512 e2773d082dd28e073fe81223fc113b1a5db7cd0d95e150e9f3f02c8c9483b9219b5d10682a125dd792c3a7877e15b90fd908084a4c89af4ec8d8c0389c282de2
|
2017-11-27 07:17:02 +08:00
|
|
|
HEAD_REF next
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-08-22 06:42:42 +08:00
|
|
|
OPTIONS
|
2023-03-02 02:39:14 +08:00
|
|
|
"-DPROTON_ROOT=${CURRENT_INSTALLED_DIR}"
|
|
|
|
"-DAPR_ROOT=${CURRENT_INSTALLED_DIR}"
|
2020-08-22 06:42:42 +08:00
|
|
|
-DINSTALL_RUNTIME_DEPENDENCIES=OFF
|
|
|
|
-DFLEX_EXECUTABLE=${FLEX}
|
|
|
|
-DWITH_EXAMPLES=OFF
|
|
|
|
-DWITH_TESTTOOLS=OFF
|
2017-11-27 07:17:02 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-11-27 07:17:02 +08:00
|
|
|
|
|
|
|
# Copy across license files and copyright
|
2023-03-02 02:39:14 +08:00
|
|
|
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
file(COPY "${SOURCE_PATH}/LICENSE-3RD-PARTY.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2017-11-27 07:17:02 +08:00
|
|
|
|
2020-08-22 06:42:42 +08:00
|
|
|
# Clean up LICENSE file - vcpkg doesn't expect it to be there
|
2023-03-02 02:39:14 +08:00
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/LICENSE.MD" "${CURRENT_PACKAGES_DIR}/debug/LICENSE.MD")
|
2020-08-22 06:42:42 +08:00
|
|
|
|
|
|
|
# Temporary workaround until upstream project puts dll in right place
|
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/libmamaplugindqstrategymd.dll")
|
2023-03-02 02:39:14 +08:00
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/libmamaplugindqstrategymd.dll" "${CURRENT_PACKAGES_DIR}/bin/libmamaplugindqstrategymd.dll")
|
2020-08-22 06:42:42 +08:00
|
|
|
endif()
|
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/libmamaplugindqstrategymd.dll")
|
2023-03-02 02:39:14 +08:00
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/libmamaplugindqstrategymd.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/libmamaplugindqstrategymd.dll")
|
2020-08-22 06:42:42 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
# Vcpkg does not expect include files to be in the debug directory
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2021-04-13 00:59:28 +08:00
|
|
|
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")
|
2020-08-22 06:42:42 +08:00
|
|
|
|
2017-11-27 07:17:02 +08:00
|
|
|
vcpkg_copy_pdbs()
|