Skip to content

Commit

Permalink
Add port ms-ifc-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlyanon committed Jan 1, 2024
1 parent 8397227 commit c06f1ce
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 0 deletions.
26 changes: 26 additions & 0 deletions ports/ms-ifc-sdk/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)
8 changes: 8 additions & 0 deletions ports/ms-ifc-sdk/usage
Original file line number Diff line number Diff line change
@@ -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)
18 changes: 18 additions & 0 deletions ports/ms-ifc-sdk/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions versions/m-/ms-ifc-sdk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "1bd2656232b49199a743ca913d28c5ab49861652",
"version": "0.43.1",
"port-version": 0
}
]
}

0 comments on commit c06f1ce

Please sign in to comment.