/win-build-scripts

Dirty old-fashioned cook batch scripts for Windows MSVC building

Primary LanguageShell

Dirty old-fashioned cook batch scripts for Windows MSVC building

  • Apache httpd and its deps
  • Apache subversion and its deps
  • PHP and most of its deps (others come from php-sdk prebuild deps)
  • memcached
  • other stuff or tools...

This tool-chain is the result of... many years of “evolution” ^^

I've done some job to make them readable, quite usable and contextualized but this is more for offering ideas to those who want to self-made some of these stuffs.

I'll answer if detail needed and all feedback that may improve them will be appreciate

Note, that the goal is to have quick pseudo-automated build for testing use I voluntary disable testing, man & co. in the “pipeline” to speed up it, but always launch manual testing build for new version before start cooking ;)

HOW-TO

  1. Install requirements

  2. copy env_sample.bat to env.bat and fill your paths according to requirements install path

  3. launch simple command prompt in check-outed directory

  4. init

    1. Choose your toolset version: vs16.bat (v142) or vs17.bat (v143)

    2. Choose your architecture: x64.bat

    3. Choose your CPU instruction level: avx.bat 0 (SSE2) or avx.bat 1 (AVX) or avx.bat 2 (AVX2)

    4. Disable or Enable QUIC (HTTP3) support: quic.bat 0 or quic.bat 1

      shortcut example: C:\Windows\System32\cmd.exe /k vs16 && x64 && avx 1 && quic 1

    5. go srccreate to clone and checkout all src

  5. go help for usage and... Enjoy!

REQUIREMENTS

soft arch version /config
Visual Studio 2022 Community 17.11.0p2.0 (14.40, 14.29) .vsconfig
Cygwin x64 3.5.3 cyg64.packagelist
Python x64 3.12.4
OpenJDK x64 22.0.1
Strawberry Perl x64 5.39.10.1
NASM x64 2.16.03
YASM mpir x64 1.3.0
Git x64 2.45.2
verpatch x64 1.0.15.1
7z x64 24.06
sigcheck64 x64 2.90
ChkMatch x86 1.0.3
Gradle [java] 8.8
CMake x64 3.29.5
Ninja x64 1.12.1
Meson [python] 1.4.1
NuGet x86 6.10.0