diff options
Diffstat (limited to 'make')
-rw-r--r-- | make/configure.py | 4 | ||||
-rw-r--r-- | make/include/main.defs | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/make/configure.py b/make/configure.py index 3efb6848b..5952b22ac 100644 --- a/make/configure.py +++ b/make/configure.py @@ -1346,8 +1346,11 @@ def createCLI(): h = IfHost( 'Build and use local pkg-config', '*-*-darwin*', none=optparse.SUPPRESS_HELP ).value grp.add_option( '--enable-local-pkgconfig', default=False, action='store_true', help=h ) + if host.match( '*-*-linux*' ): + grp.add_option( '--flatpak', default=False, action='store_true', help='Build extra contribs for flatpak' ) cli.add_option_group( grp ) + ## add Xcode options if host.match( '*-*-darwin*' ): grp = OptionGroup( cli, 'Xcode Options' ) @@ -1838,6 +1841,7 @@ int main() doc.add( 'FEATURE.local_cmake', int( options.enable_local_cmake )) doc.add( 'FEATURE.local_pkgconfig', int( options.enable_local_pkgconfig )) doc.add( 'FEATURE.asm', 'disabled' ) + doc.add( 'FEATURE.flatpak', int( options.flatpak )) doc.add( 'FEATURE.gtk', int( not options.disable_gtk )) doc.add( 'FEATURE.gtk.update.checks', int( not options.disable_gtk_update_checks )) doc.add( 'FEATURE.gtk.mingw', int( options.enable_gtk_mingw )) diff --git a/make/include/main.defs b/make/include/main.defs index 8253f002a..b95227908 100644 --- a/make/include/main.defs +++ b/make/include/main.defs @@ -57,6 +57,17 @@ ifneq (,$(filter $(BUILD.system),darwin cygwin mingw)) MODULES += contrib/jansson endif +ifeq (1,$(FEATURE.flatpak)) + MODULES += contrib/lame + MODULES += contrib/jansson + MODULES += contrib/x264 + MODULES += contrib/harfbuzz + MODULES += contrib/fribidi + MODULES += contrib/freetype + MODULES += contrib/libass + MODULES += contrib/yasm +endif + ifeq (1,$(FEATURE.fdk_aac)) MODULES += contrib/fdk-aac endif |