Go to file
Alexander Larsson e779d3c485 Support using app-extensions during the build
This adds add-build-extensions which is similar to add-extensions
except the extension is added at build-init time, so can be
used during the build. It can also optionally be removed after
the build is done.

This depends on the flatpak work in:
  https://github.com/flatpak/flatpak/pull/1598

With this I was able to build the following app which runs 32bit binaries
in a 64bit build:

```
{
    "app-id": "org.example.Multilib",
    "runtime": "org.freedesktop.Platform",
    "sdk": "org.freedesktop.Sdk",
    "runtime-version": "1.6",
    "command": "/usr/bin/true",
    "add-build-extensions": {
        "org.freedesktop.Platform.Compat32": {
            "directory": "lib/32bit",
            "add-ld-path": "lib",
            "version": "1.6"
        }
    },
    "modules": [
        {
            "name": "test 32bit",
            "buildsystem": "simple",
            "build-commands": [
                "ln -s /app/lib/32bit/lib/ld-linux.so.2 /app/lib/ld-linux.so.2",
                "/app/lib/32bit/bin/echo echoing from 32bit world"
            ]
        }
    ]
}
```

Closes: #129
Approved by: alexlarsson
2018-04-23 07:06:07 +00:00
buildutil build: Add missing mkdir to glib-tap.mk 2017-11-24 12:39:51 +00:00
ci Add libyaml-devel to CI install set 2018-04-19 12:44:38 +00:00
doc Support using app-extensions during the build 2018-04-23 07:06:07 +00:00
libglnx@0c82203cd4 Update to latest libglnx with memfd_create build fix 2018-02-19 10:35:57 +01:00
m4 Import ostree's compiler warnings, fix up callers 2017-03-27 10:42:36 +02:00
src Support using app-extensions during the build 2018-04-23 07:06:07 +00:00
tests Add YAML support as an alternative to JSON (closes #2) 2018-04-19 12:44:38 +00:00
.gitignore Update .gitignore 2017-08-25 09:41:39 +02:00
.gitmodules Delete non-builder files 2017-08-25 09:27:42 +02:00
.papr.yml ci: bump tests to use F26 host & container 2017-08-14 16:05:59 +02:00
COPYING Add COPYING to reflect license headers 2015-03-31 15:36:29 +01:00
Makefile.am configure: Call LIBGLNX_CONFIGURE 2018-02-14 18:46:23 +01:00
NEWS Update NEWS 2018-02-19 10:37:08 +01:00
README.md README: Fix docs link 2018-02-14 23:11:58 -08:00
acinclude.m4 Add AX_COMPARE_VERSION to acinclude.m4 2016-09-09 10:03:27 +02:00
autogen.sh Delete non-builder files 2017-08-25 09:27:42 +02:00
configure.ac Add YAML support as an alternative to JSON (closes #2) 2018-04-19 12:44:38 +00:00
flatpak.png Add the logo to README.md 2016-06-02 18:05:22 -04:00
uncrustify.cfg Add uncrustify config 2016-05-06 15:27:19 +02:00
uncrustify.sh Add uncrustify config 2016-05-06 15:27:19 +02:00

README.md

Flatpak icon

Flatpak-builder is a tool for building flatpaks from sources.

See http://flatpak.org/ for more information.

Read documentation for the flatpak-builder commandline tools.

INSTALLATION

Flatpak-builder uses a traditional autoconf-style build mechanism. To build just do

 ./configure [args]
 make
 make install

Most configure arguments are documented in ./configure --help. However, there are some options that are a bit more complicated.

Flatpak-builder relies on flatpak, so it must be installed first.