fuzzgen: add Windows (MSVC/Ninja) build support


Replace POSIX-only APIs with cross-platform equivalents:
- fuzz.cpp: guard sys/wait.h, unistd.h under #ifndef _WIN32; add
  CreateProcess/WaitForSingleObject/TerminateProcess runFuzzer() path
  for Windows; use _popen/_pclose, double-quote shellQuote, TEMP/TMP
  cacheRoot(), -G Ninja cmake generator, and .exe binary suffix.
  Replace SIGALRM/alarm() in the generated fuzzer template with
  std::chrono::steady_clock timing (portable).
  Add nativePath() for MinGW /c/... → C:/... path conversion.
  Add resolveQtPrefix() to find Qt6Config.cmake in both installed Qt
  and supermodule build layouts.
  Add findVcVarsAll() + batch file approach in buildFuzzer() to
  initialise the MSVC environment and force cl.exe over MinGW.
  Add custom CreateProcess environment block in runFuzzer() to
  prepend <qtPrefix>\bin to PATH so Qt DLLs can be loaded.
- qtdetect.cpp: use _popen/_pclose and 2>/dev/null on Windows.
- codegen.cpp: replace SIGALRM/alarm() with std::chrono in both
  generated-fuzzer templates.
- fix NOMINMAX for MSVC windows.h min/max macro clash

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Change-Id: Ie750b33aee0d2b9635f855bd81cd141e9ec2dcdb
Reviewed-by: Frederic Lefebvre <frederic.lefebvre@qt.io>
commit30448c4bfe0f6ff55c2a787991e93dd0c1592e0b
parent3b7dabee1c4469d746baf599e885194c21ab707c
authorAxel Spoerl <axel.spoerl@qt.io>
committerAxel Spoerl <axel.spoerl@qt.io>
commit timeTue, 23 Jun 2026 11:54:42 +0000