diff --git a/ports/rmqcpp/portfile.cmake b/ports/rmqcpp/portfile.cmake new file mode 100644 index 0000000000..2e8b3e4c71 --- /dev/null +++ b/ports/rmqcpp/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO bloomberg/rmqcpp + REF 52e583c2eb3f06707ce5fde7f29089b17428f6b2 + SHA512 c4232f37e7bc61d0cc77c52a1283fefc1a7925b4ef8cfbe9b404393540c773feabdc2ad3adc263beb06fe079cbf22010bf1551e15eb2f55b1347f6d8c8f35f8b + HEAD_REF main +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBDE_BUILD_TARGET_CPP17=ON + -DCMAKE_CXX_STANDARD=17 + -DCMAKE_CXX_STANDARD_REQUIRED=ON + -DBDE_BUILD_TARGET_SAFE=ON + -DCMAKE_INSTALL_LIBDIR=lib64 +) + +vcpkg_cmake_build() + +vcpkg_cmake_install() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY) + +vcpkg_cmake_config_fixup() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") diff --git a/ports/rmqcpp/usage b/ports/rmqcpp/usage new file mode 100644 index 0000000000..23f17565a0 --- /dev/null +++ b/ports/rmqcpp/usage @@ -0,0 +1,4 @@ +rmqcpp provides CMake targets: + + find_package(rmqcpp REQUIRED) + target_link_libraries(main PRIVATE rmqcpp::rmq) diff --git a/ports/rmqcpp/vcpkg.json b/ports/rmqcpp/vcpkg.json new file mode 100644 index 0000000000..3cf1f4f184 --- /dev/null +++ b/ports/rmqcpp/vcpkg.json @@ -0,0 +1,36 @@ +{ + "name": "rmqcpp", + "version": "1.0.0", + "description": "rmqcpp - A C++ library for RabbitMQ.", + "dependencies": [ + { + "name": "bde", + "host": true, + "version>=": "3.123.0.0" + }, + { + "name": "boost-asio", + "host": true + }, + { + "name": "boost-iostreams", + "host": true + }, + { + "name": "gtest", + "host": true + }, + { + "name": "openssl", + "host": true + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 7b7e42d73b..b53b807594 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -7456,6 +7456,10 @@ "baseline": "5.1", "port-version": 0 }, + "rmqcpp": { + "baseline": "1.0.0", + "port-version": 0 + }, "roaring": { "baseline": "0.9.6", "port-version": 0 diff --git a/versions/r-/rmqcpp.json b/versions/r-/rmqcpp.json new file mode 100644 index 0000000000..8b38d63717 --- /dev/null +++ b/versions/r-/rmqcpp.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "version": "1.0.0", + "port-version": 0, + "git-tree": "3ad0bdbdcfd0050a646feb6586d8c13931f8e602" + } + ] +}