« 要件
ビルドの検証 »

コンパイルおよびビルド

WinCache を Windows OS 上でコンパイル・ビルドする手順は次のとおりです。

  1. PHP のビルドに使うコマンドプロンプトを開く

  2. PHP ソースのルートフォルダに移動する

  3. 次のコマンドを実行する

    cscript.exe win32\build\buildconf.js

  4. 次のコマンドを実行する

    configure.bat --help
    この出力には新しいフラグ --enable-wincache が含まれています。

  5. 次のコマンドを実行する

    configure.js [all options used to build PHP] --enable-wincache
    --enable-wincache は、WinCache 拡張モジュールを正しくビルドするために必要な唯一の追加オプションです。 このオプションは、WinCache をビルドして PHP の dll にスタティックリンクします。 WinCache 拡張モジュールを単体の DLL とhしてビルドするには、オプション --enable-wincache=shared を指定します。

  6. 次のコマンドを実行する

    nmake

関連キーワード:
ビルド   コンパイル   WinCache   enable   wincache   Windows   build   configure   拡張   要件   検証   コマンドプロンプト   ソース   ルートフォルダ   cscript   buildconf   help   フラグ   options   used   唯一   単体   shared   nmake
関連する関数・ページ:
wincache.win32build.verify   wincache.win32build   wincache.win32build.prereq   migration85.windows-support   pthreads.requirements   install.windows.building