3
# Thomas Nagy, 2006-2008 (ita)
4
# Ralf Habacker, 2006 (rh)
10
from Configure import conftest
12
ar_str = '${AR} ${ARFLAGS} ${AR_TGT_F}${TGT} ${AR_SRC_F}${SRC}'
13
cls = Task.simple_task_type('static_link', ar_str, color='YELLOW', ext_in='.o', ext_out='.bin', shell=False)
15
cls.install = Utils.nada
17
# remove the output in case it already exists
20
try: os.remove(self.outputs[0].abspath(self.env))
23
setattr(cls, 'run', wrap)
26
conf.find_program('ar', var='AR')
27
conf.find_program('ranlib', var='RANLIB')
28
conf.env.ARFLAGS = 'rcs'
34
if not v['AR']: conf.fatal('ar is required for static libraries - not found')