BuildXL/Examples/NinjaHelloWorld
Marcelo Lynch 🧉 3b54737b0b Merged PR 770069: Disable InBoxSdkSourceResolver for Ninja builds
The inbox sdk source resolver fails for Ninja builds. Disable it explicitly in this case, to not require this configuration explicitly in the resolver settings.

Related work items: #2154307
2024-03-18 23:09:16 +00:00
..
src Merged PR 684203: Add NinjaHelloWorld example 2022-10-18 22:08:02 +00:00
README.md Merged PR 770093: Add minimal documentation for the CMake/Ninja front-end and update examples 2024-03-06 21:04:27 +00:00
build.bat Merged PR 770093: Add minimal documentation for the CMake/Ninja front-end and update examples 2024-03-06 21:04:27 +00:00
build.ps1 Merged PR 684203: Add NinjaHelloWorld example 2022-10-18 22:08:02 +00:00
config.dsc Merged PR 770069: Disable InBoxSdkSourceResolver for Ninja builds 2024-03-18 23:09:16 +00:00

README.md

Instructions

  1. Set the environment variable BUILDXL_BIN to the BuildXL binary folder containing bxl.exe. For example, if your BuildXL repo is in D:\BuildXL, then building BuildXL itself using bxl.cmd -Minimal will put the bxl.exe in D:\BuildXL\Out\Bin\debug\win-x64.
  2. Point the environment variable BUILDXL_BIN to the BuildXL binary folder path. For example, if you set up BuildXL in D:\BuildXL, then D:\BuildXL\Out\Bin\debug\win-x64 should be the value.
  3. Be aware that BuildXL requires the Ninja executable to evaluate the build specification. This means that ninja.exe should be in your PATH.
  4. Run .\build.ps1 from PowerShell, or equivalently build.bat from the command line prompt

The build outputs (hello_copy.txt, hello_world.txt) will be located in Out. For further configuration options, see the NinjaResolverSettings in https://github.com/microsoft/BuildXL/blob/main/Public/Sdk/Public/Prelude/Prelude.Configuration.Resolvers.dsc