Visual Studio はインストールせずに、Windows SDK 7.1 のみでビルドを行う方法
- Windows SDK 7.1 をインストールする
- インストールオプションはデフォルトのままで良い
- xyzzyのマルチフレーム版(multiframe)のmasterブランチの.zipファイル を拾ってきて、どこかに展開する
- 「スタート」>「プログラム」>「Microsoft Windows SDK v7.1」>「Windows SDK 7.1 Command Prompt」を起動
- 以下の作業はここで起動したコマンドプロンプト上で行うこと
- .batファイルの改行コードを修正するため、以下の fix-eol.cmd を xyzzy の build.bat と同じディレクトリに置き、実行する
@rem fix-eol.cmd
@echo off
for /F "usebackq" %%I IN (`dir /b /s *.bat`) DO (
echo %%I
copy %%I %%I.old>nul
type %%I.old | find "" /v > %%I
del %%I.old
)
- 以下の winsdk-build.cmd を xyzzy の build.bat と同じディレクトリに置き、実行する
@rem winsdk-build.cmd
@echo off
call "%VS100COMNTOOLS%\vsvars32.bat"
if "%1"=="" (set CONFIGURATION=Release) else (set CONFIGURATION=%1)
if "%2"=="" (set TARGET=Build) else (set TARGET=%2)
if "%3"=="" (set VERBOSITY=normal) else (set VERBOSITY=%3)
set CONFIGURATION=%CONFIGURATION%;PlatformToolset=Windows7.1SDK;PlatformToolsetVersion=100
echo Build xyzzy...
echo echo MY_TEST_BUILD>git.bat
msbuild xyzzy.sln /nologo /p:Configuration=%CONFIGURATION% /target:%TARGET% /verbosity:%VERBOSITY%
del git.bat
- 同じディレクトリに xyzzy.exe 等が作られる