Skip to content

Commit

Permalink
Merge pull request #329 from kobake/bregonig-dll-extract
Browse files Browse the repository at this point in the history
bregonig.dll を sakura.exe と同じ場所に自動配置
  • Loading branch information
kobake authored Aug 12, 2018
2 parents e904d43 + 8657ffd commit a91b918
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 23 deletions.
17 changes: 17 additions & 0 deletions installer/externals/bregonig/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 正規表現ライブラリ bregonig.dll
## Website
- http://k-takata.o.oo7.jp/mysoft/bregonig.html

## バイナリ入手先
- https://bitbucket.org/k_takata/bregonig/downloads/bron412.zip

## ソースコード
- http://github.com/k-takata/bregonig

## ライセンス
- http://k-takata.o.oo7.jp/mysoft/bregonig.html#SCT-9.

## 展開ファイル
- bron412.zip … 上述サイトから入手したZIPアーカイブ
- Win32/bregonig.dll … bron412.zip から取り出した 32bit版 bregonig.dll
- x64/bregonig.dll … bron412.zip から取り出した 64bit版 bregonig.dll
Binary file added installer/externals/bregonig/Win32/bregonig.dll
Binary file not shown.
19 changes: 0 additions & 19 deletions installer/externals/bregonig/readme.txt

This file was deleted.

Binary file added installer/externals/bregonig/x64/bregonig.dll
Binary file not shown.
22 changes: 22 additions & 0 deletions sakura/postBuild.bat
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
@echo off

SETLOCAL

@echo =======================
@echo postBuild
@echo =======================

: ---- arguments ---- :
: "Win32" or "x64"
set PLATFORM=%1
@echo PLATFORM=%PLATFORM%

: "Debug" or "Release"
set CONFIGURATION=%2
@echo CONFIGURATION=%CONFIGURATION%

: ---- copy bregonig.dll ---- :
@echo Copy bregonig.dll to destination directory.
copy /B ..\installer\externals\bregonig\%PLATFORM%\bregonig.dll ..\%PLATFORM%\%CONFIGURATION%\bregonig.dll


ENDLOCAL
8 changes: 4 additions & 4 deletions sakura/sakura.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Command>call postBuild.bat "$(TargetPath).manifest"</Command>
<Command>call postBuild.bat $(Platform) $(Configuration)</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>call preBuild.bat $(SolutionDir)Win32\$(Configuration)</Command>
Expand Down Expand Up @@ -156,7 +156,7 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
</Link>
<PostBuildEvent>
<Command>call postBuild.bat "$(TargetPath).manifest"</Command>
<Command>call postBuild.bat $(Platform) $(Configuration)</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>call preBuild.bat $(SolutionDir)Win32\$(Configuration)</Command>
Expand Down Expand Up @@ -193,7 +193,7 @@
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
</Link>
<PostBuildEvent>
<Command>call postBuild.bat "$(TargetPath).manifest"</Command>
<Command>call postBuild.bat $(Platform) $(Configuration)</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>call preBuild.bat $(SolutionDir)Win32\$(Configuration)</Command>
Expand Down Expand Up @@ -229,7 +229,7 @@
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
</Link>
<PostBuildEvent>
<Command>call postBuild.bat "$(TargetPath).manifest"</Command>
<Command>call postBuild.bat $(Platform) $(Configuration)</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>call preBuild.bat $(SolutionDir)Win32\$(Configuration)</Command>
Expand Down

0 comments on commit a91b918

Please sign in to comment.