forked from sakura-editor/sakura
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request sakura-editor#494 from berryzplus/feature/build_mi…
…ngw_in_appveyor MinGWビルドをappveyorに組み込む
- Loading branch information
Showing
7 changed files
with
89 additions
and
10 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 |
---|---|---|
|
@@ -8,6 +8,7 @@ configuration: | |
platform: | ||
- Win32 | ||
- x64 | ||
- MinGW | ||
|
||
build_script: | ||
- cmd: >- | ||
|
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
@echo off | ||
set platform=%1 | ||
set configuration=%2 | ||
|
||
if "%platform%" == "MinGW" ( | ||
@rem OK | ||
) else ( | ||
call :showhelp %0 | ||
exit /b 1 | ||
) | ||
|
||
if "%configuration%" == "Release" ( | ||
@rem OK | ||
set MYDEFINES=-DNDEBUG | ||
set MYCFLAGS=-O2 | ||
set MYLIBS=-s | ||
) else if "%configuration%" == "Debug" ( | ||
@rem OK | ||
set MYDEFINES=-D_DEBUG | ||
set MYCFLAGS=-g -O0 | ||
set MYLIBS= | ||
) else ( | ||
call :showhelp %0 | ||
exit /b 1 | ||
) | ||
|
||
@rem https://www.appveyor.com/docs/environment-variables/ | ||
@rem path=C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;%path% | ||
path=C:\msys64\mingw64\bin;%path% | ||
|
||
@echo mingw32-make -C sakura_core MYDEFINES="%MYDEFINES%" MYCFLAGS="%MYCFLAGS%" MYLIBS="%MYLIBS%" | ||
mingw32-make -C sakura_core MYDEFINES="%MYDEFINES%" MYCFLAGS="%MYCFLAGS%" MYLIBS="%MYLIBS%" githash stdafx Funccode_enum.h Funccode_define.h | ||
if %errorlevel% neq 0 (popd && exit /b 1) | ||
|
||
mingw32-make -C sakura_core MYDEFINES="%MYDEFINES%" MYCFLAGS="%MYCFLAGS%" MYLIBS="%MYLIBS%" -j4 | ||
if %errorlevel% neq 0 (popd && exit /b 1) | ||
|
||
exit /b 0 | ||
|
||
|
||
@rem ------------------------------------------------------------------------------ | ||
@rem show help | ||
@rem see http://orangeclover.hatenablog.com/entry/20101004/1286120668 | ||
@rem ------------------------------------------------------------------------------ | ||
:showhelp | ||
@echo off | ||
@echo usage | ||
@echo %~nx1 platform configuration | ||
@echo. | ||
@echo parameter | ||
@echo platform : MinGW | ||
@echo configuration : Release or Debug | ||
@echo. | ||
@echo example | ||
@echo %~nx1 MinGW Release | ||
@echo %~nx1 MinGW Debug | ||
exit /b 0 |
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
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