2014-02-19 14:51:13 +00:00
|
|
|
""" Build Kvazaa
|
|
|
|
"""
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
2014-08-19 15:12:04 +00:00
|
|
|
Import('envs')
|
|
|
|
env = envs.env
|
2014-02-19 14:51:13 +00:00
|
|
|
|
|
|
|
sources = []
|
|
|
|
sources += env.Glob('*.c')
|
|
|
|
sources += env.Glob('extras/*.c')
|
2014-08-19 15:12:04 +00:00
|
|
|
|
2014-06-13 07:20:02 +00:00
|
|
|
sources += env.Glob('strategies/*.c')
|
2014-08-19 15:12:04 +00:00
|
|
|
sources += env.Glob('strategies/generic/*.c')
|
|
|
|
sources += envs.sse2.Object(env.Glob('strategies/sse2/*.c'))
|
|
|
|
sources += envs.sse41.Object(env.Glob('strategies/sse41/*.c'))
|
|
|
|
sources += envs.avx.Object(env.Glob('strategies/avx/*.c'))
|
|
|
|
sources += envs.avx2.Object(env.Glob('strategies/avx2/*.c'))
|
|
|
|
sources += envs.altivec.Object(env.Glob('strategies/altivec/*.c'))
|
|
|
|
|
|
|
|
sources += envs.asm.Object(env.Glob('strategies/x86_asm/*.c'))
|
|
|
|
if env['use_yasm']:
|
|
|
|
sources += envs.asm.Object(env.Glob('strategies/x86_asm/*.asm'))
|
|
|
|
sources += envs.asm.Object(env.Glob('extras/*.asm'))
|
2014-02-19 14:51:13 +00:00
|
|
|
|
|
|
|
prog = env.Program('kvazaar', sources)
|
|
|
|
|
|
|
|
env.Clean(prog, '.') # Remove variant_dir with 'scons -c'.
|
|
|
|
|
|
|
|
Return('prog')
|