Skip to content

Instantly share code, notes, and snippets.

@alexlarsson
Created June 16, 2017 13:12
Show Gist options
  • Save alexlarsson/1c4a84efe6c3c3c63cbb30a7fbe91236 to your computer and use it in GitHub Desktop.
Save alexlarsson/1c4a84efe6c3c3c63cbb30a7fbe91236 to your computer and use it in GitHub Desktop.
{
"app-id": "org.test.MultiArch",
"runtime": "org.freedesktop.Platform",
"runtime-version": "1.6",
"sdk": "org.freedesktop.Sdk",
"command": "glxgears",
"finish-args": [
"--device=dri",
"--socket=x11",
"--allow=multiarch",
"--extension=org.freedesktop.Platform.Compat32=directory=lib/32bit",
"--extension=org.freedesktop.Platform.Compat32=version=1.6",
"--extension=org.freedesktop.Platform.GL32=directory=lib/32bit/lib/GL",
"--extension=org.freedesktop.Platform.GL32=version=1.4",
"--extension=org.freedesktop.Platform.GL32=versions=1.6;1.4",
"--extension=org.freedesktop.Platform.GL32=subdirectories=true",
"--extension=org.freedesktop.Platform.GL32=no-autodownload=true",
"--extension=org.freedesktop.Platform.GL32=autodelete=false",
"--extension=org.freedesktop.Platform.GL32=add-ld-path=lib",
"--extension=org.freedesktop.Platform.GL32=merge-dirs=vulkan/icd.d;glvnd/egl_vendor.d",
"--extension=org.freedesktop.Platform.GL32=download-if=active-gl-driver",
"--extension=org.freedesktop.Platform.GL32=enable-if=active-gl-driver",
"--env=LD_LIBRARY_PATH=/app/lib:/app/lib/32bit/lib"
],
"build-options" : {
"cflags": "-O2 -g",
"cxxflags": "-O2 -g",
"env": {
"V": "1"
}
},
"cleanup": ["/include", "/lib/pkgconfig",
"/share/pkgconfig", "/share/aclocal",
"/man", "/share/man", "*.la", "*.a"],
"modules": [
{
"name": "main",
"sources": [
{
"type": "file",
"path":"glxgears"
},
{
"type": "file",
"path":"libGLEW.so.2.0"
},
{
"type": "file",
"path":"libGLU.so.1"
}
],
"buildsystem": "simple",
"build-commands": [
"mkdir -p /app/bin",
"mkdir -p /app/lib",
"mkdir -p /app/lib/32bit",
"ln -s /app/lib/32bit/lib/ld-linux.so.2 /app/lib/ld-linux.so.2",
"cp glxgears /app/bin",
"cp lib*.so* /app/lib"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment