建议若非必要情况,不要使用blade作为构建工具。
官方的安装方法非常粗暴,就是执行一个脚本,它会污染~
和~/.bashrc
。
我们可以自行安装。假设我们安装在$MYWORK/library/libs/bin
:
cd $MYWORK/library
git clone https://github.com/chen3feng/blade-build.git
ln -s $MYWORK/library/blade-build/blade $MYWORK/library/libs/bin
ln -s $MYWORK/library/blade-build/tool/bladefunctions $MYWORK/library/libs/bin
ln -s $MYWORK/library/blade-build/tool/genlibbuild $MYWORK/library/libs/bin
ln -s $MYWORK/library/blade-build/tool/lsnobuild $MYWORK/library/libs/bin
ln -s $MYWORK/library/blade-build/tool/lsrc $MYWORK/library/libs/bin
ln -s $MYWORK/library/blade-build/tool/merge-static-libs $MYWORK/library/libs/bin
blade把二进制都放在仓库里了,所以直接软链就可以。注意执行完后仓库不可删除。
然后在~/.bashrc
里添加test -s $MYWORK/library/libs/bin/bladefunctions && . $MYWORK/library/libs/bin/bladefunctions || true
。
Comments
注:如果长时间无法加载,请针对 disq.us | disquscdn.com | disqus.com 启用代理。