diff options
author | Loïc Le Page <llepage@fluendo.com> | 2019-07-10 09:52:00 +0200 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2019-07-22 13:12:25 +0000 |
commit | d31e08edb6dc83b051d7114a141dcd8499352abb (patch) | |
tree | 6f88baf7de2b957854e2fc818bb62736ca12f7ba | |
parent | 6edf9cd747b1fcb9dd9848a7b06174b6eb3a7326 (diff) |
Allows stripping files for any kind of package and not only apps.
Strip flags have been moved from package.App to package.BasePackage so
any kind of package can decide to automatically strip binaries even if
it is not an application package.
-rw-r--r-- | cerbero/packages/package.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cerbero/packages/package.py b/cerbero/packages/package.py index bc2d48e9..d9a7ba4e 100644 --- a/cerbero/packages/package.py +++ b/cerbero/packages/package.py @@ -72,7 +72,13 @@ class PackageBase(object): @cvar resources_postremove = filename for the post-remove script @type resources_postremove = str @cvar wix_use_fragment = uses fragments instead of merge modules - @type resources_postremove = bool + @type wix_use_fragment = bool + @cvar strip: strip binaries for this package + @type strip: bool + @cvar strip_dirs: directories to strip + @type strip: list + @cvar strip_excludes: files that won't be stripped + @type strip_excludes: list ''' name = 'default' shortdesc = 'default' @@ -96,6 +102,9 @@ class PackageBase(object): resources_postinstall = 'postinstall' resources_postremove = 'postremove' wix_use_fragment = False + strip = False + strip_dirs = ['bin'] + strip_excludes = [] def __init__(self, config, store): self.config = config @@ -516,12 +525,6 @@ class App(Package): @type command: list @cvar wrapper: suffix filename for the main executable wrapper @type wrapper: str - @cvar strip: strip binaries for this package - @type strip: bool - @cvar strip_dirs: directories to strip - @type strip: list - @cvar strip_excludes: files that won't be stripped - @type strip_excludes: list @cvar resources_info_plist: Info.plist template file @type resources_info_plist: string @cvar resources_distribution: Distribution XML template file @@ -539,9 +542,6 @@ class App(Package): commands = [] # list of tuples ('CommandName', path/to/binary') wrapper = 'app_wrapper.tpl' resources_wix_installer = None - strip = False - strip_dirs = ['bin'] - strip_excludes = [] resources_info_plist = 'Info.plist' resources_distribution = 'distribution.xml' osx_create_dmg = True |