This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load environment in a separate file, support parallel builds.
- Loading branch information
Showing
3 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
@echo off | ||
set BUILD_DIR=%CD%\build | ||
set CTEST_OUTPUT_ON_FAILURE=1 | ||
call env.bat | ||
|
||
setlocal ENABLEDELAYEDEXPANSION | ||
set NEWGOPATH=%BUILD_DIR%\heka | ||
if NOT "%GOBIN%"=="" (set p=!PATH:%GOBIN%;=!) else (set p=!PATH!) | ||
endlocal & set GOPATH=%NEWGOPATH%& set GOBIN=%NEWGOPATH%\bin& set PATH=%p%;%NEWGOPATH%\bin; | ||
if "%NUM_JOBS%"=="" (set NUM_JOBS=1) | ||
|
||
if NOT exist %BUILD_DIR% mkdir %BUILD_DIR% | ||
cd %BUILD_DIR% | ||
cmake -DINCLUDE_MOZSVC=false -DCMAKE_BUILD_TYPE=release -G"MinGW Makefiles" .. | ||
mingw32-make | ||
mingw32-make -j %NUM_JOBS% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@echo off | ||
set BUILD_DIR=%CD%\build | ||
set CTEST_OUTPUT_ON_FAILURE=1 | ||
|
||
setlocal ENABLEDELAYEDEXPANSION | ||
set NEWGOPATH=%BUILD_DIR%\heka | ||
if NOT "%GOBIN%"=="" (set p=!PATH:%GOBIN%;=!) else (set p=!PATH!) | ||
endlocal & set GOPATH=%NEWGOPATH%& set GOBIN=%NEWGOPATH%\bin& set PATH=%p%;%NEWGOPATH%\bin; |