111 Commits

Author SHA1 Message Date
dmex 6960ed0933 Add setup delta tooling and SIMD build options
This change adds setup delta/patch generation commands, rotation helpers for setup payloads, and native SIMD detection for AVX/AVX2/AVX512 builds. It also standardizes error reporting via Program.PrintErrorMessage, suppresses ANSI escape codes when output is redirected, and updates the HTTP client helpers and build paths required for the new tooling.
2026-10-08 16:41:29 +11:00
dmex 9fcc24e52d Add SBOM, VEX, and build tooling updates 2026-09-29 21:02:02 +10:00
dmex 9443791b1b Copy settings schema during build 2026-07-17 07:40:28 +10:00
dmex 9898e214d1 Add build commands for ports and copyright
CustomBuildTool now adds `-portsgen` to regenerate NetworkTools port mappings from the IANA CSV and `-update-copyright` to update existing author year ranges from git history. It also vendors the IANA CSV, rewrites the generated block in `plugins/NetworkTools/ports.c`, and updates CLI help text.

The build pipeline was tightened by fixing `settings.schema.json` copy handling (source path + filename-only destination), and header generation now includes `ntnsi.h`. Author year headers in affected tool sources were updated to 2026 to match the new copyright updater behavior.
2026-07-02 20:16:06 +10:00
dmex a571c6bc19 Build and bug fixes 2026-06-15 05:33:51 +10:00
dmex e6120caa36 Update CustomBuildTool 2026-05-31 14:13:33 +10:00
dmex 4c32374a63 Add msbuild graph support and update build commands 2026-05-28 04:17:48 +10:00
dmex ba067cca57 BuildTools: Cleanup 2026-05-18 09:44:24 +10:00
dmex 26b5034bb3 Fix msbuild arguments mangled by ArgumentList's quote-escaping 2026-05-12 13:07:26 +10:00
dmex ff5052e3f8 Add CMake builds x86/x64 and ARM64 2026-05-09 09:41:42 +10:00
dmex 2b7674bbdb Add PDB zip step and clean up pipeline formatting 2026-05-07 02:18:34 +10:00
dmex ef92b3f946 Use argument arrays for external tools
Convert command execution APIs to accept argument lists instead of single command strings . These changes improve argument separation/quoting safety and allow complex command invocations (including PowerShell-based CMake setup) to run in a single process session.
2026-05-06 12:01:45 +10:00
dmex 110b25394d CustomBuildTool: Modernize with Span/ArrayBufferWriter/Utf8JsonWriter for .NET 10 2026-05-06 10:47:26 +10:00
dmex 9c2fac0b5a CustomBuildTool: Optimize hashing, Add support for third-party update check
Major refactor and feature additions across CustomBuildTool:

- Replace synchronous JsonSerializer.Deserialize usages with JsonSerializer.DeserializeAsync (passing CancellationToken) for HTTP/KeyVault/NuGet/GitHub responses to avoid blocking and improve cancellation handling.
- Optimize ECDSA hashing: use ReadOnlySpan, static SHA{256,384,512}.HashData fast-paths and allocation-free IncrementalHash fallback; consolidate incremental helper.
- Add BuildThirdParty.cs: new utility to verify vendored third-party library versions against GitHub releases, with various helpers (version parsing, GitHub queries, regexes).
- Add CLI command -check-thirdparty and register it in Program.cs to run version checks.
- Harden BuildAzure.GetAzureADToken: build form body as bytes, zero secret memory, and send as ByteArrayContent.
- Revise Build logic and file handling: normalize Path.Join usage, normalize path separators in MSIX mapping, improve BuildChecksumsFile collection logic, validate exe presence before export checks, and dedupe file lists before checksum computation.
- Update BuildHttpClient.CreateHttpClient settings and use DeserializeAsync in SendMessage; adjust MaxAutomaticRedirections removal.
- Misc fixes: environment block parsing loop fix, safer registry value handling, reorder search-path logic, add Regex Using and GeneratedRegex helpers, add CA1416 platform-suppression, and small csproj cleanup.

These changes improve async/cancellation behavior, memory safety, hashing performance, and add a new third-party checking feature.
2026-04-26 13:57:20 +10:00
dmex fedc43b6a1 Fix typos and improve HTTP2 handling 2026-04-17 14:40:13 +10:00
dmex 05b46cfb6a Opt out dotnet telemetry; Add CLI aliases 2026-04-17 11:31:55 +10:00
Johnny Shaw b8fc422953 cbt fix dyndata command 2026-04-16 18:59:40 -06:00
dmex 8526c189d1 CustomBuildTool: Add System.CommandLine support and tab completion 2026-04-17 03:58:37 +10:00
dmex 0cc728c593 Update Program.cs 2026-04-04 16:47:56 +11:00
dmex bae2ca3b41 Update comments and tidy up 2026-03-22 11:31:16 +11:00
dmex 1b49e19ec4 BuildTools: Update to latest SDK 2026-03-14 15:37:27 +11:00
dmex 2521ec49d6 CustomBuildTool: Add CMake SDK linking, vcvars fix, and -cmake flag
CMake: set ARCHIVE_OUTPUT_DIRECTORY for targets and add SDK/thirdparty linking for plugin targets; expose SI_PLATFORM_SDK_LIB for platform-specific SDK lib paths. Tools: pass a -cmake flag from si_sdkbuild and handle -cmake in CustomBuildTool. CustomBuildTool: only show build stats when verbose and improve ExecuteCMakeCommand vcvarsall detection by preferring VCINSTALLDIR, falling back to a VS instance, and returning an error if vcvarsall is not found. Zip: simplify compression column output and mark the file parameter as unused.
2026-02-23 16:59:44 +11:00
dmex c94761de4f CustomBuildTool: Add EWDK support, Add cmake and clang support, Add full async support 2026-02-22 09:43:22 +11:00
dmex 9ea3286a3f CustomBuildTool: Add -check_msvc, -install_msvc, -cmake-bin 2026-02-01 11:35:19 +11:00
dmex 748b081acb CustomBuildTool: Add ESDK and CMake 2026-02-01 06:39:35 +11:00
dmex 19b6cb3d0e CustomBuildTool: Add build time 2026-01-13 23:24:43 +11:00
dmex 32d8d5458a CustomBuildTool: Add comments 2025-12-16 16:22:26 +11:00
dmex bd9effd7b0 Update documentation and types 2025-12-12 19:42:59 +11:00
Johnny Shaw 54d3699177 Revert "Visual Studio 2026"
This reverts commit 27efdef0a5.
2025-11-19 21:05:48 -07:00
dmex 27efdef0a5 Visual Studio 2026 2025-11-17 20:42:47 +11:00
Johnny Shaw a5b44056e8 CustomBuildTool disable BuildSymStoreZip 2025-10-01 17:57:39 -06:00
dmex 0dd90d20e1 BuildTools: Add github highlighting, Remove version properties 2025-09-29 01:19:28 +10:00
dmex 499aec0e79 Add build_header.cmd script for building PHNT single header 2025-09-22 20:33:10 +10:00
dmex 5423ff7cfb Merge dev branch fixes (#2680) 2025-09-07 05:06:34 +10:00
dmex 44b5e27c15 BuildTools: Add SimdOptions, Tidy up 2025-06-18 12:25:40 +10:00
dmex 9ccd5eda48 BuildTools: Updates for breaking .NET changes 2025-06-17 08:40:48 +10:00
dmex fa7f5b4d2b Disable 32bit msix 2025-06-06 23:12:44 +10:00
dmex 868d5ce2b6 Update to latest SDK 2025-05-23 13:23:34 +10:00
dmex 2869bf9bf3 BuildTools: Add build_msix.cmd and update scripts to latest MSIX format 2025-05-21 23:09:58 +10:00
dmex 429ce515f7 BuildTools: Fix arguments 2025-05-14 23:33:32 +10:00
Johnny Shaw c130e283f3 consolidate build products 2025-05-09 21:09:41 -06:00
dmex dd50d92718 Make strings CONST 2025-04-21 00:22:35 +10:00
dmex cffaa3b0b5 BuildTools: Add copyright and update commands 2025-04-19 19:50:48 +10:00
dmex 3d94cab89e SetupTool: Update build 2025-04-04 00:10:29 +11:00
dmex 7d8b1cdb85 BuildTools: Improve ToolsId hash, Add ValidateImageExports debug 2025-03-11 05:57:39 +11:00
dmex 4fc07d1e46 BuildTools: Disable export definitions 2025-02-13 15:49:46 +11:00
Johnny Shaw d25a2590d0 CustomBuildTool out of date tools detection 2025-01-26 09:36:50 -07:00
dmex 8c980ad0d0 Update Program.cs 2025-01-26 01:59:01 +11:00
dmex 41b3a2e016 BuildTools: Fix argument escape 2025-01-25 22:59:05 +11:00
Johnny Shaw af222318e5 CustomBuildTool do defgen in local release build 2025-01-20 19:46:57 -07:00