3 Star 1 Fork 0

Gitee 极速下载/apache-apr

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/apache/apr
克隆/下载
SConstruct 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env scons
#
from build import APREnv
EnsureSConsVersion(1, 1, 0)
vars = Variables('build.py')
vars.Add('prefix', 'Installation Prefix', '/usr/local')
vars.Add('maintainer_mode', 'Turn on debugging and compile time warnings', 0)
vars.Add('profile', 'Turn on profiling for the build (GCC)', 0)
vars.Add('lfs', 'Large file support on 32-bit platforms', 1)
vars.Add('ipv6', 'IPv6 support', 1)
vars.Add(EnumVariable('pool_debug', 'Turn on pools debugging', 'no',
allowed_values=('yes', 'no', 'verbose', 'verbose-alloc', 'lifetime', 'owner', 'all')))
env = APREnv(args=ARGUMENTS, variables=vars)
Help(vars.GenerateHelpText(env))
env.APRHints()
env = env.APRAutoconf()
if env['maintainer_mode']:
if env.is_gcc():
env.AppendUnique(CPPFLAGS = ['-g', '-Wall', '-Wmissing-prototypes', '-Wstrict-prototypes', '-Wmissing-declarations'])
if env['profile']:
env.Filter(CPPFLAGS = '-g')
env.AppendUnique(CPPFLAGS = ['-pg'])
if env['pool_debug'] != 'no':
flags = {'yes': 1,
'verbose': 2,
'lifetime': 4,
'owner': 8,
'verbose-alloc': 16,
'all': 31}
env.AppendUnique(CPPFLAGS = "-DAPR_POOL_DEBUG=%d" % flags[env['pool_debug']])
Export("env")
# TODO: Support debug/release builds
targets = SConscript("SConscript", variant_dir='builds/default', duplicate=0)
env.Default(targets)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/apache-apr.git
git@gitee.com:mirrors/apache-apr.git
mirrors
apache-apr
apache-apr
trunk

搜索帮助