C++/WinRT
Перейти к файлу
Jon Wiswall 9b453cfc51
Enable faster dev cycle in Visual Studio (#1340)
* Enable faster dev cycle in Visual Studio

* Oops, remove one more run

* Fix linux build temporarily - see also #1341

---------

Co-authored-by: Jon Wiswall <jonwis@ntdev.microsoft.com>
2023-08-17 15:51:08 -07:00
.github Enable faster dev cycle in Visual Studio (#1340) 2023-08-17 15:51:08 -07:00
.pipelines Remove ARM OneBranch build workaround (#1303) 2023-05-11 03:55:38 -07:00
cppwinrt Hide protected and overridable members from public projections (#1319) 2023-07-11 21:38:42 -05:00
docs Clarify contributing guide (#1324) 2023-06-21 15:16:35 -05:00
fast_fwd
mingw-support Add CMake build and a limited subset of tests for llvm-mingw (#1216) 2022-11-09 10:26:19 -06:00
natvis Compliance and test cleanup (#1291) 2023-03-27 18:34:35 -07:00
nuget Increase foldability of various templates (#1338) 2023-08-09 23:40:40 -07:00
prebuild Add Linux native build (#1239) 2022-12-06 11:13:30 -06:00
scratch
strings Increase foldability of various templates (#1338) 2023-08-09 23:40:40 -07:00
test Enable faster dev cycle in Visual Studio (#1340) 2023-08-17 15:51:08 -07:00
vsix Add fields to filter out templates appearing in the add new item dialog for non UAP projects (#1227) 2022-11-11 20:18:34 -06:00
.gitattributes
.gitignore
CMakeLists.txt cmake: Allow using external winmd headers to bypass download (#1256) 2023-01-03 11:33:25 -06:00
Directory.Build.Props
Directory.Build.Targets
LICENSE
README.md Enable faster dev cycle in Visual Studio (#1340) 2023-08-17 15:51:08 -07:00
build_nuget.cmd Increase foldability of various templates (#1338) 2023-08-09 23:40:40 -07:00
build_prior_projection.cmd Hide protected and overridable members from public projections (#1319) 2023-07-11 21:38:42 -05:00
build_projection.cmd Hide protected and overridable members from public projections (#1319) 2023-07-11 21:38:42 -05:00
build_test_all.cmd Enable faster dev cycle in Visual Studio (#1340) 2023-08-17 15:51:08 -07:00
build_vsix.cmd
compile_tests.cmd
cppwinrt.sln Enable faster dev cycle in Visual Studio (#1340) 2023-08-17 15:51:08 -07:00
cross-mingw-toolchain.cmake Support Linux cross-compilation with mingw-w64 (#1238) 2022-11-28 09:06:56 -06:00
prepare_versionless_diffs.cmd Hide protected and overridable members from public projections (#1319) 2023-07-11 21:38:42 -05:00
run_tests.cmd Add a mechanism to suppress `std::source_location` (#1260) 2023-01-09 16:52:54 -06:00

README.md

The C++/WinRT language projection

C++/WinRT is an entirely standard C++ language projection for Windows Runtime (WinRT) APIs, implemented as a header-file-based library, and designed to provide you with first-class access to the modern Windows API. With C++/WinRT, you can author and consume Windows Runtime APIs using any standards-compliant C++17 compiler.

Building C++/WinRT

Don't build C++/WinRT yourself - just download the latest version here: https://aka.ms/cppwinrt/nuget

Working on the compiler

If you really want to build it yourself, the simplest way to do so is to run the build_test_all.cmd script in the root directory. Developers needing to work on the C++/WinRT compiler itself should go through the following steps to arrive at an efficient inner loop:

  • Open a dev command prompt pointing at the root of the repo.
  • Open the cppwinrt.sln solution.
  • Choose a configuration (x64, x86, Release, Debug) and build projects as needed.

If you are working on an ARM64 or ARM specific issue from an x64 or x86 host, you will need to instead:

  • Open the cppwinrt.sln solution
  • Build the x86 version of the "cppwinrt" project first
  • Switch to your preferred configuration and build the test binaries and run them in your test environment

Comparing Outputs

Comparing the output of the prior release and your current changes will help show the impact of any updates. Starting from a dev command prompt at the root of the repo after following the above build instructions:

  • Run build_projection.cmd in the dev command prompt
  • Run build_prior_projection.cmd in the dev command prompt as well
  • Run prepare_versionless_diffs.cmd which removes version stamps on both current and prior projection
  • Use a directory-level differencing tool to compare _build\$(arch)\$(flavor)\winrt and _reference\$(arch)\$(flavor)\winrt