SConscript (13675:afeab32b3655) SConscript (13706:4c1d26d1766e)
1# -*- mode:python -*-
2
3# Copyright (c) 2018 ARM Limited
4#
5# The license below extends only to copyright in the software and shall
6# not be construed as granting a license to any other intellectual
7# property including but not limited to intellectual property relating
8# to a hardware implementation of the functionality of the software

--- 435 unchanged lines hidden (view full) ---

444 @classmethod
445 def declare_all(cls, env):
446 return list([ instance.declare(env) for instance in cls.all ])
447
448 def declare(self, env, objs=None):
449 if objs is None:
450 objs = self.srcs_to_objs(env, self.sources)
451
1# -*- mode:python -*-
2
3# Copyright (c) 2018 ARM Limited
4#
5# The license below extends only to copyright in the software and shall
6# not be construed as granting a license to any other intellectual
7# property including but not limited to intellectual property relating
8# to a hardware implementation of the functionality of the software

--- 435 unchanged lines hidden (view full) ---

444 @classmethod
445 def declare_all(cls, env):
446 return list([ instance.declare(env) for instance in cls.all ])
447
448 def declare(self, env, objs=None):
449 if objs is None:
450 objs = self.srcs_to_objs(env, self.sources)
451
452 env = env.Clone()
453 env['BIN_RPATH_PREFIX'] = os.path.relpath(
454 env['BUILDDIR'], self.path(env).dir.abspath)
455
452 if env['STRIP_EXES']:
453 stripped = self.path(env)
454 unstripped = env.File(str(stripped) + '.unstripped')
455 if sys.platform == 'sunos5':
456 cmd = 'cp $SOURCE $TARGET; strip $TARGET'
457 else:
458 cmd = 'strip $SOURCE -o $TARGET'
459 env.Program(unstripped, objs)

--- 943 unchanged lines hidden ---
456 if env['STRIP_EXES']:
457 stripped = self.path(env)
458 unstripped = env.File(str(stripped) + '.unstripped')
459 if sys.platform == 'sunos5':
460 cmd = 'cp $SOURCE $TARGET; strip $TARGET'
461 else:
462 cmd = 'strip $SOURCE -o $TARGET'
463 env.Program(unstripped, objs)

--- 943 unchanged lines hidden ---