summaryrefslogtreecommitdiff
path: root/packages/base-system-1.0.package
blob: d794a86e682ae3a4e3145e99808874fa6174d3ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# vi:si:et:sw=4:sts=4:ts=4:syntax=python
# -*- Mode: Python -*-


class Package(custom.GStreamer, package.Package):

    name = 'base-system-1.0'
    shortdesc = 'Base system dependencies'
    longdesc = 'Base system dependencies'
    uuid = 'fae6046d-5a39-4d54-93ee-3770d2f316f5'

    files = ['cairo:libs', 'expat:libs', 'fontconfig:libs:etc', 'libffi:libs',
             'freetype:libs', 'glib:libs:lang:bins:schemas', 'orc:libs',
             'pango:libs:modules', 'libpng:libs', 'libjpeg-turbo:libs',
             'tiff:libs', 'gdk-pixbuf:bins:libs:modules:lang', 'libcroco:libs',
             'librsvg:libs', 'libxml2:libs', 'pixman:libs', 'fribidi:libs',
             'zlib:libs', 'bzip2:libs', 'harfbuzz:libs', 'json-glib:bins:libs',
             'pcre2:libs']

    platform_files = {
        Platform.WINDOWS: ['proxy-libintl:libs:lang', 'mingw-runtime'],
        Platform.DARWIN: ['proxy-libintl:libs:lang'],
        Platform.LINUX: [],
        Platform.ANDROID: ['proxy-libintl:libs:lang', 'libiconv:libs:lang'],
        Platform.IOS: ['proxy-libintl:libs:lang']
        }

    def prepare(self):
        if self.config.variants.gi:
            self.files.append('gobject-introspection:libs:typelibs')

        if self.config.variants.uwp:
            self.platform_files[Platform.WINDOWS] = ['proxy-libintl:libs:lang']
            self.files = [
                'libffi:libs', 'zlib:libs', 'pcre2:libs',
                'glib:libs:lang:schemas', 'orc:libs', 'bzip2:libs',
                'json-glib:libs',
            ]