您的位置:首页 > 其它

SCons用户手册(序言 001)

2012-07-27 23:32 169 查看
SCons准则:
在设计与实现SCons时有一些重要的准则我们要遵守:

正确性:
首要并且最重要的,即使牺牲一点性能,我们也要确保构建的正确性。我们努力确保正确构建无论软件是如何组织,不论它是如何书写,或多么不平常工具构建它.

性能:
假定构建正确的前提下,我们尝试使SCons尽可能快的运行。特别的,无论何时我们必须减慢默认SCons的行为以确保正确的构建,同时,我们也尝试简化脚本来提高SCons

易用性:

一言以蔽之,我们努力以最少的困难使SCons做对的事情,正确的构建软件.

1. SCons Principles
There are a few overriding principles we try to live up to in designing and implementing SCons:
Correctness
  First and foremost, by default, SCons guarantees a correct build even if it means sacrificing
performance a little. We strive to guarantee the build is correct regardless of how the software being
built is structured, how it may have been written, or how unusual the tools are that build it.

Performance
  Given that the build is correct, we try to make SCons build software as quickly as possible. In
particular, wherever we may have needed to slow down the default SCons behavior to guarantee a
correct build, we also try to make it easy to speed up SCons through optimization options that let
you trade off guaranteed correctness in all end cases for a speedier build in the usual cases.

Convenience
  SCons tries to do as much for you out of the box as reasonable, including detecting the right tools
on your system and using them correctly to build the software.

In a nutshell, we try hard to make SCons just "do the right thing" and build software correctly, with a
minimum of hassles.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: