@@ -0,0 +1,1618 @@
+#!/usr/bin/env python%0A# cerbero - a multi-platform build system for Open Source software%0A# Copyright (C) 2012 Andoni Morales Alastruey %3Cylatuya@gmail.com%3E%0A#%0A# This library is free software; you can redistribute it and/or%0A# modify it under the terms of the GNU Library General Public%0A# License as published by the Free Software Foundation; either%0A# version 2 of the License, or (at your option) any later version.%0A#%0A# This library is distributed in the hope that it will be useful,%0A# but WITHOUT ANY WARRANTY; without even the implied warranty of%0A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A# Library General Public License for more details.%0A#%0A# You should have received a copy of the GNU Library General Public%0A# License along with this library; if not, write to the%0A# Free Software Foundation, Inc., 59 Temple Place - Suite 330,%0A# Boston, MA 02111-1307, USA.%0A%0Aimport os%0Afrom cerbero.config import Platform%0Afrom cerbero.utils import shell%0A%0Aclass Strip(object):%0A    '''Wrapper for the strip tool'''%0A%0A    STRIP_CMD = 'strip'%0A%0A    def __init__(self, config):%0A        self.config = config%0A%0A    def strip_file(self, path):%0A        try:%0A            shell.call(%22%25s %25s%22. self._strip_cmd(), path)%0A        except:%0A            pass%0A%0A    def strip_dir(self, dir_path):%0A        for dirpath, dirnames, filenames in os.walk(dir_path):%0A            for f in filenames:%0A                self.strip_file(os.path.join(dirpath, f))%0A%0A    def _strip_cmd(self):%0A        if self.config.target_platform == Platform.DARWIN:%0A            return '%25s -x' %25 self.STRIP_CMD%0A        return '%25s --strip-unneeded' %25 self.STRIP_CMD%0A

add a wrapper for striping object files