scons

scons on windows その6(独自Toolの定義)

カスタムのツールを定義するには、pythonスクリプトを所定の位置に置いてexistsとgenerateの2つの関数を定義すればいい。$HOME/.scons/site_scons/site_tools/msvc10.py import os vs_path='C:\\Program Files (x86)\\Microsoft Visual Studio 10.0' vc_pat…

scons on windows その5(64bit build)

vc2010 express editionをwindows7(64bit)にインストールしている場合 import os vs_path='C:\\Program Files (x86)\\Microsoft Visual Studio 10.0' vc_path=vs_path+'\\VC' sdk_path='C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1' AddOption('--arc…

scons on windows その3(Tool)

sconsにはToolという概念があって、これがコンパイラやリンカのセットを表している。WindowsだとvcやMinGWなどがあり、Linuxだとgccだ。さらに32bitと64bitがあるのでWindowsのCは環境がいろいろあるぞと。 # 無指定 env = Environment() # Default。たぶん…

scons on windows その2(tolua++のSConstructを読む)

tolua++がSConstructを使っているので読んでみる。 とりあえずビルドしてみる。 「Visual studio コマンドプロンプト」で開始。 > cd \work\tolua++-1.0.93 > scons scons: Reading SConscript files ... scons: warning: The Options class is deprecated; …

scons on windows その1

blenderとかtolua++のビルドシステムに使われているsconsを調べているのでメモ。sconsはプロジェクトビルドのうち、makeの機能を代替するpython製のツールだ。依存性を解決してコンパイラを呼び出して、リンカを呼び出すというあれ。blenderだとsconsに加え…

scons on windows その4(Blender)

blenderのsconsをvc10対応させる --- build_files/scons/tools/mstoolkit.py (リビジョン 35779) +++ build_files/scons/tools/mstoolkit.py (作業コピー) @@ -67,6 +67,8 @@ # look for toolkit if os.environ.has_key('VCToolkitInstallDir'): MSToolkitDi…