Skip to content

cppwinrtv3.0.260818.1

Updated

C++/WinRT is a standard C++ language projection for the Windows Runtime.

#Usage

The C++/WinRT package provides CMake targets:

find_package(cppwinrt CONFIG REQUIRED)
target_link_libraries(main PRIVATE Microsoft::CppWinRT)

In addition, three variables are also exported: CPPWINRT_TOOL points to cppwinrt.exe; CPPWINRT_MODULE_FILES lists of paths to all module files; CPPWINRT_MODULE_BASE_DIR points to the directory of the module files.

When installed with the "modules" feature, CPPWINRT_MODULE_FILES lists the generated C++20 module interface files (.ixx). Add them to your target:

target_sources(main
    PRIVATE
        FILE_SET cxx_modules
        TYPE CXX_MODULES
        BASE_DIRS ${CPPWINRT_MODULE_BASE_DIR}
        FILES ${CPPWINRT_MODULE_FILES}
)

#License

MIT

#Supported Platforms

windows

  • ✅windows
  • ❌linux
  • ❌osx
  • ❌uwp

#Features

No default features.

#fastabi

Enables Fast ABI feature for both consuming and producing projections.

Dependencies:

No dependencies.

Host Dependencies:

No dependencies.

#modules

Provides C++ modules for C++/WinRT. The modules are named winrt.Ns.X.

Dependencies:

No dependencies.

Host Dependencies:

No dependencies.

#windowsapp

Links the WindowsApp.lib umbrella library for Windows Runtime.

Dependencies:

No dependencies.

Host Dependencies:

No dependencies.

#Dependencies

No dependencies.

#Host Dependencies

No dependencies.

#Contributors

  • Scott Greenlay's avatarScott Greenlay
  • Scott Greenlay's avatarScott Greenlay
  • Alexander Karatarakis's avatarAlexander Karatarakis
  • Robert Schumacher's avatarRobert Schumacher
  • juandent's avatarjuandent
  • Roelf-Jilling's avatarRoelf-Jilling
  • pravic's avatarpravic
  • Jared Irwin's avatarJared Irwin
  • Chuck Walbourn's avatarChuck Walbourn
  • Frank's avatarFrank
  • Cheney Wang's avatarCheney Wang
  • David Machaj's avatarDavid Machaj
  • Nathan White's avatarNathan White
  • SunBlack's avatarSunBlack
  • Yexuan Xiao's avatarYexuan Xiao

#Changelog

  • 8e89ad1[cppwinrt] Add modules support and other fixes (#54034)
  • bea9a48[cppwinrt] Update to 3.0.260818.1 (#54002)
  • 8e6be00[cppwinrt] Guard add_library to avoid "another target with the same name already exists" CMake error (#49767)
  • 93779cf[cppwinrt] Update to 2.0.250303.1 (#45865)
  • a56c065[cppwinrt] update to 2.0.240405.15 (#40702)
  • 3a7cb34[cppwinrt] Update port for January 2024 release (#37452)
  • eac0f2e[cppwinrt] Update version to 2.0.230207.1 (#29522)
  • acafd21[cppwinrt] update to 2.0.221121.5 (#28635)
  • 0a098ee[cppwinrt] Update port for 2.0.220929.3 release (#27057)
  • 904a51f[cppwinrt] port rewrite to use cppwint.exe tool from NuGet Gallery (#24967)
Show 10 earlier changes