17 lines
451 B
Python
17 lines
451 B
Python
import os
|
|
Import('env', 'build_type', 'prefix', 'version_info')
|
|
|
|
ucore_env = env.Clone()
|
|
|
|
#substitute @version_xx@ strings
|
|
subst_version_info = dict(('@' + key + '@', version_info[key]) for key in version_info)
|
|
ucore_env.Substfile('ucore_version.c.in', SUBST_DICT = subst_version_info)
|
|
|
|
headers = ucore_env.Glob('*.h')
|
|
|
|
#install targets
|
|
|
|
ucore_env.Alias('install',
|
|
ucore_env.InstallPerm(os.path.join(prefix, 'include', 'ucore'), headers, 0644))
|
|
|