summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cerbero/packages/osx/packager.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/cerbero/packages/osx/packager.py b/cerbero/packages/osx/packager.py
index cda7dbe..1489a35 100644
--- a/cerbero/packages/osx/packager.py
+++ b/cerbero/packages/osx/packager.py
@@ -32,6 +32,7 @@ from cerbero.packages.osx.bundles import FrameworkBundlePackager,\
from cerbero.packages.osx.packagemaker import PackageMaker
from cerbero.tools.osxrelocator import OSXRelocator
from cerbero.utils import shell, _
+from cerbero.tools import strip
from cerbero.utils import messages as m
@@ -372,7 +373,12 @@ class ApplicationPackage(PackagerBase):
return packager.create_bundle(self.appdir)
def _strip_binaries(self):
- pass
+ if self.package.strip:
+ bin_dir = os.path.join(self.appdir, 'Contents', 'Home', 'bin')
+ lib_dir = os.path.join(self.appdir, 'Contents', 'Home', 'lib')
+ s = strip.Strip(self.config)
+ s.strip_dir(bin_dir)
+ s.strip_dir(lib_dir)
def _relocate_binaries(self):
prefix = self.config.prefix