mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
e1a784ae3f
Invoking msbuild with runInShell makes handling path escaping more error-prone, and substantially increases the chances of running into maximum path limits. This replaces the direct call with a .bat wrapper that calls vsvars64.bat then msbuild, and uses relative paths within the script to keep command lengths short. Fixes https://github.com/flutter/flutter/issues/32792
17 lines
438 B
Batchfile
17 lines
438 B
Batchfile
:: Copyright 2018 The Chromium Authors. All rights reserved.
|
|
:: Use of this source code is governed by a BSD-style license that can be
|
|
:: found in the LICENSE file.
|
|
|
|
:: Calls vcvars64.bat to configure a command-line build environment, then builds
|
|
:: a project with msbuild.
|
|
@echo off
|
|
|
|
set VCVARS=%~1
|
|
set PROJECT=%~2
|
|
set CONFIG=%~3
|
|
|
|
call "%VCVARS%"
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
|
msbuild "%PROJECT%" /p:Configuration=%CONFIG%
|