diff --git a/ports/ms-ifc-sdk/portfile.cmake b/ports/ms-ifc-sdk/portfile.cmake new file mode 100644 index 00000000000000..682345cd7125d2 --- /dev/null +++ b/ports/ms-ifc-sdk/portfile.cmake @@ -0,0 +1,26 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO microsoft/ifc + REF 0.43.1 + SHA512 c7ce8570d776f875c1a1fed929734ebc73b2cf25106e2a5e80625269f4f91d8106d19da34525cc4d7a694d750788d124e8e1ef082c54a13c9b34fe3da7f9e82d + HEAD_REF main +) + +set(config_path share/cmake/Microsoft.IFC) +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + "-DIFC_INSTALL_CMAKEDIR:PATH=${config_path}" +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup( + PACKAGE_NAME Microsoft.IFC + CONFIG_PATH "${config_path}" +) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +file(INSTALL "${SOURCE_PATH}/LICENSE.TXT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/ms-ifc-sdk/usage b/ports/ms-ifc-sdk/usage new file mode 100644 index 00000000000000..f49a254b11a7bf --- /dev/null +++ b/ports/ms-ifc-sdk/usage @@ -0,0 +1,8 @@ +The package Microsoft.IFC provides CMake targets: + + find_package(Microsoft.IFC CONFIG REQUIRED) + target_link_libraries(main PRIVATE Microsoft.IFC::SDK) + + # Or use the individual components of Microsoft.IFC::SDK for advanced use + find_package(Microsoft.IFC CONFIG REQUIRED) + target_link_libraries(main PRIVATE Microsoft.IFC::Core Microsoft.IFC::DOM) diff --git a/ports/ms-ifc-sdk/vcpkg.json b/ports/ms-ifc-sdk/vcpkg.json new file mode 100644 index 00000000000000..e328d3d313df93 --- /dev/null +++ b/ports/ms-ifc-sdk/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "ms-ifc-sdk", + "version": "0.43.1", + "description": "SDK for the IFC specification at https://github.com/microsoft/ifc-spec", + "homepage": "https://github.com/microsoft/ifc", + "license": "Apache-2.0", + "dependencies": [ + "ms-gsl", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index d20ea4f53b468d..ddd286870cc133 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5764,6 +5764,10 @@ "baseline": "4.0.0", "port-version": 1 }, + "ms-ifc-sdk": { + "baseline": "0.43.1", + "port-version": 0 + }, "ms-quic": { "baseline": "1.2.0", "port-version": 0 diff --git a/versions/m-/ms-ifc-sdk.json b/versions/m-/ms-ifc-sdk.json new file mode 100644 index 00000000000000..01afa489cdcb42 --- /dev/null +++ b/versions/m-/ms-ifc-sdk.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "1bd2656232b49199a743ca913d28c5ab49861652", + "version": "0.43.1", + "port-version": 0 + } + ] +}