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:
@@ -747,10 +747,15 @@ Examples:
|
|||||||
help='Visual Studio version to use (default: auto - tries 2026 then 2022)'
|
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()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# Get project paths early for list-project
|
# Get project paths early for list-project
|
||||||
project_dir, project_file, plugins_dir = get_project_paths()
|
project_dir, project_file, plugins_dir = get_project_paths()
|
||||||
|
# --dist: redirect output root from <repo>/plugins to <repo>/dist.
|
||||||
|
if args.dist:
|
||||||
|
plugins_dir = plugins_dir.parent / 'dist'
|
||||||
|
|
||||||
# List project configurations
|
# List project configurations
|
||||||
if args.list_project:
|
if args.list_project:
|
||||||
|
|||||||
@@ -763,10 +763,15 @@ Examples:
|
|||||||
help='Visual Studio version to use (default: auto - tries 2026 then 2022)'
|
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()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# Get project paths early for list-project
|
# Get project paths early for list-project
|
||||||
project_dir, project_file, plugins_dir = get_project_paths()
|
project_dir, project_file, plugins_dir = get_project_paths()
|
||||||
|
# --dist: redirect output root from <repo>/plugins to <repo>/dist.
|
||||||
|
if args.dist:
|
||||||
|
plugins_dir = plugins_dir.parent / 'dist'
|
||||||
|
|
||||||
# List project configurations
|
# List project configurations
|
||||||
if args.list_project:
|
if args.list_project:
|
||||||
|
|||||||
@@ -766,6 +766,8 @@ Examples:
|
|||||||
help='Visual Studio version to use (default: auto - tries 2026 then 2022)'
|
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()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# Find MSBuild early (needed for project path selection)
|
# Find MSBuild early (needed for project path selection)
|
||||||
@@ -777,6 +779,9 @@ Examples:
|
|||||||
|
|
||||||
# Get project paths (project file depends on toolset)
|
# Get project paths (project file depends on toolset)
|
||||||
project_dir, project_file, plugins_dir = get_project_paths(platform_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
|
# List project configurations
|
||||||
if args.list_project:
|
if args.list_project:
|
||||||
|
|||||||
@@ -747,10 +747,15 @@ Examples:
|
|||||||
help='Visual Studio version to use (default: auto - tries 2026 then 2022)'
|
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()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# Get project paths early for list-project
|
# Get project paths early for list-project
|
||||||
project_dir, project_file, plugins_dir = get_project_paths()
|
project_dir, project_file, plugins_dir = get_project_paths()
|
||||||
|
# --dist: redirect output root from <repo>/plugins to <repo>/dist.
|
||||||
|
if args.dist:
|
||||||
|
plugins_dir = plugins_dir.parent / 'dist'
|
||||||
|
|
||||||
# List project configurations
|
# List project configurations
|
||||||
if args.list_project:
|
if args.list_project:
|
||||||
|
|||||||
@@ -763,10 +763,15 @@ Examples:
|
|||||||
help='Visual Studio version to use (default: auto - tries 2026 then 2022)'
|
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()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# Get project paths early for list-project
|
# Get project paths early for list-project
|
||||||
project_dir, project_file, plugins_dir = get_project_paths()
|
project_dir, project_file, plugins_dir = get_project_paths()
|
||||||
|
# --dist: redirect output root from <repo>/plugins to <repo>/dist.
|
||||||
|
if args.dist:
|
||||||
|
plugins_dir = plugins_dir.parent / 'dist'
|
||||||
|
|
||||||
# List project configurations
|
# List project configurations
|
||||||
if args.list_project:
|
if args.list_project:
|
||||||
|
|||||||
@@ -631,6 +631,8 @@ Examples:
|
|||||||
parser.add_argument('--vs-version', choices=['auto', '2026', '2022'], default='auto',
|
parser.add_argument('--vs-version', choices=['auto', '2026', '2022'], default='auto',
|
||||||
help='Visual Studio version to use (default: auto)')
|
help='Visual Studio version to use (default: auto)')
|
||||||
|
|
||||||
|
parser.add_argument('--dist', action='store_true',
|
||||||
|
help='Copy built DLLs to <repo>/dist/<config> instead of <repo>/plugins/<config>')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# Find MSBuild
|
# Find MSBuild
|
||||||
@@ -642,6 +644,9 @@ Examples:
|
|||||||
|
|
||||||
# Get project paths
|
# Get project paths
|
||||||
project_dir, project_file, plugins_dir = get_project_paths(platform_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'
|
||||||
|
|
||||||
if args.list_project:
|
if args.list_project:
|
||||||
if not project_file.exists():
|
if not project_file.exists():
|
||||||
|
|||||||
Reference in New Issue
Block a user