feat(build): add --dist to all remaining legacy Windows build scripts

Same --dist redirect (output to <repo>/dist/<config> instead of
plugins/<config>) applied to every per-version Windows script so the
flag works regardless of --7zip-version/--toolset the dispatcher
selects. Mirrors build_plugin_2601_vs2026.py + the Linux path.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-17 20:35:47 +02:00
parent 57133b71ee
commit a9643c78e7
6 changed files with 30 additions and 0 deletions
+5
View File
@@ -766,6 +766,8 @@ Examples:
help='Visual Studio version to use (default: auto - tries 2026 then 2022)'
)
parser.add_argument('--dist', action='store_true',
help='Copy built DLLs to <repo>/dist/<config> instead of <repo>/plugins/<config>')
args = parser.parse_args()
# Find MSBuild early (needed for project path selection)
@@ -777,6 +779,9 @@ Examples:
# Get project paths (project file depends on toolset)
project_dir, project_file, plugins_dir = get_project_paths(platform_toolset)
# --dist: redirect output root from <repo>/plugins to <repo>/dist.
if args.dist:
plugins_dir = plugins_dir.parent / 'dist'
# List project configurations
if args.list_project: