2012-04-05 4 views
21

私は、ブーストC++ライブラリのコンパイルを開始しました。私が発行した次のコマンドでは、時間のかかる、ブーストライブラリの全体を構築しているので、必要がない。どのようにブースト必要なモジュールのみをビルドするのですか?

ちょうどboost_1_49_0.7zアーカイブを展開し、Visual Studio 2010 command line toolから私はbootstrap.batを実行し、それがb2実行可能ファイルを作成しました。

この実行ファイルを使用して、b2 --toolset=msvc-10.0 --build-type=complete architecture=x86 address-model=64 stageを実行してライブラリを構築しました。

私が必要とするのは、 "信号"モジュールを構築することだけです。

これらの特定のライブラリのみをコンパイルしてビルドするために、作成されたブートストラップにはどのスイッチコマンドを指定する必要がありますか?

+1

[bcp](http://www.boost.org/doc/libs/1_49_0/tools/bcp/doc/html/index.html)が役立ちます。 –

+0

@JerryCoffin bcpツールはどこにありますか?私はtool \ directoryにソースを持つbcpフォルダを見つけることができました。または.. bcpツールを構築する方法は? –

答えて

27

b2.exe --helpは、以下を出力します。

--show-libraries Displays the list of Boost libraries that require build and installation steps, then exit.

--with-<library> Build and install the specified <library> If this option is used, only libraries specified using this option will be built.

並列にXプロセスでBOOSTをコンパイルする-jXオプションを使用することが可能です。

関連する問題