Loupe/build-aux/flatpak/org.gnome.Loupe.Devel.json

180 lines
5.9 KiB
JSON
Raw Normal View History

{
2023-12-25 21:34:18 +01:00
"id": "org.gnome.Loupe.Devel",
"runtime": "org.gnome.Platform",
"runtime-version": "master",
"sdk": "org.gnome.Sdk",
"sdk-extensions": [
2022-08-05 00:37:38 -04:00
"org.freedesktop.Sdk.Extension.rust-stable",
2024-07-02 23:51:16 +02:00
"org.freedesktop.Sdk.Extension.llvm18"
],
2023-12-25 21:34:18 +01:00
"command": "loupe",
"finish-args": [
"--share=ipc",
"--socket=fallback-x11",
"--socket=wayland",
"--device=dri",
"--filesystem=host",
"--env=RUST_BACKTRACE=1",
"--env=RUST_LOG=debug",
"--talk-name=org.gtk.vfs.*",
"--filesystem=xdg-run/gvfs",
"--filesystem=xdg-run/gvfsd"
],
2023-12-25 21:34:18 +01:00
"build-options": {
2024-07-02 23:55:43 +02:00
"append-path": "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm18/bin",
2023-12-25 21:34:18 +01:00
"build-args": [
2022-08-05 00:37:38 -04:00
"--share=network"
],
2023-12-25 21:34:18 +01:00
"env": {
"RUSTFLAGS": "-C force-frame-pointers=yes",
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER": "clang",
"CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER": "clang",
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS": "-C link-arg=-fuse-ld=/usr/lib/sdk/rust-stable/bin/mold",
"CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUSTFLAGS": "-C link-arg=-fuse-ld=/usr/lib/sdk/rust-stable/bin/mold"
2022-08-05 00:37:38 -04:00
}
},
2023-12-25 21:34:18 +01:00
"cleanup": [
"/include",
"/lib/pkgconfig",
"/man",
"/share/doc",
"/share/gtk-doc",
"/share/man",
"/share/pkgconfig",
"*.la",
"*.a"
],
"add-extensions": {
/* Exile HEIC (x265) codec into extension */
2023-12-25 21:34:18 +01:00
"org.gnome.Loupe.Devel.HEIC": {
/* Relative to app dir */
2023-12-25 21:34:18 +01:00
"directory": "lib/libheif-heic",
/* Relative to directory above */
2023-12-25 21:34:18 +01:00
"add-ld-path": "lib",
/* Remove extension data from main flatpak package */
2023-12-25 21:34:18 +01:00
"bundle": true,
/* Remove this extension when Loupe is deinstalled */
2023-12-25 21:34:18 +01:00
"autodelete": true
}
},
2023-12-25 21:34:18 +01:00
"modules": [
{
"name": "geocode-glib",
"buildsystem": "meson",
"config-opts": [
"-Denable-installed-tests=false",
"-Denable-introspection=false",
"-Denable-gtk-doc=false",
"-Dsoup2=false"
],
"sources": [
{
"type": "archive",
"url": "https://download.gnome.org/sources/geocode-glib/3.26/geocode-glib-3.26.4.tar.xz",
"sha256": "2d9a6826d158470449a173871221596da0f83ebdcff98b90c7049089056a37aa",
"x-checker-data": {
"type": "gnome",
"name": "geocode-glib"
}
}
]
},
{
"name": "libgweather",
"buildsystem": "meson",
"config-opts": [
"-Denable_vala=false",
"-Dgtk_doc=false",
"-Dintrospection=false",
"-Dtests=false"
],
"sources": [
{
"type": "archive",
2024-06-28 22:32:07 +02:00
"url": "https://download.gnome.org/sources/libgweather/4.4/libgweather-4.4.2.tar.xz",
"sha256": "a6e427b4770ada48945f3aa906af710fc833cff0d42df91f1828302740d794ec",
"x-checker-data": {
"type": "gnome",
"name": "libgweather",
"versions": {
"<": "40.0"
}
}
}
]
},
{
/* HEIC (x265) decoder */
2023-12-25 21:34:18 +01:00
"name": "libde265",
"buildsystem": "cmake",
"config-opts": [
/* Install into folder for extension */
"-DCMAKE_INSTALL_PREFIX=/app/lib/libheif-heic",
"-DENABLE_SDL=Off"
],
2023-12-25 21:34:18 +01:00
"sources": [
{
2023-12-25 21:34:18 +01:00
"type": "git",
"url": "https://github.com/strukturag/libde265.git",
2024-02-22 22:24:31 +01:00
"tag": "v1.0.15"
}
]
},
{
2023-12-25 21:34:18 +01:00
"name": "libheif",
"buildsystem": "cmake",
"config-opts": [
/* Build HEIC (x265) as plugin */
"-DWITH_LIBDE265_PLUGIN=On",
"-DPLUGIN_DIRECTORY=/app/lib/libheif-heic/lib",
"-DLIBDE265_INCLUDE_DIR=/app/lib/libheif-heic/include",
"-DLIBDE265_PKGCONF_LIBRARY_DIRS=/app/lib/libheif-heic/lib",
/* Turn all encoders off */
"-DWITH_X265=Off",
"-DWITH_SvtEnc=Off",
"-DWITH_SvtEnc_PLUGIN=Off",
"-DWITH_AOM_ENCODER=Off",
/* Turn off plugins for AV1 */
"-DWITH_RAV1E_PLUGIN=Off",
/* Turn off unused AV1 decoders */
"-DWITH_RAV1E=Off",
/* No need for examples */
"-DWITH_EXAMPLES=Off"
],
2023-12-25 21:34:18 +01:00
"sources": [
{
2023-12-25 21:34:18 +01:00
"type": "git",
"url": "https://github.com/strukturag/libheif.git",
2024-02-22 22:24:31 +01:00
"tag": "v1.17.6"
2024-01-23 12:37:50 +01:00
}
]
},
{
2023-12-25 21:34:18 +01:00
"name": "glycin",
"buildsystem": "meson",
2024-06-19 00:36:54 +02:00
"config-opts": [
"-Dlibglycin=false"
],
2023-12-25 21:34:18 +01:00
"sources": [
{
2023-12-25 21:34:18 +01:00
"type": "git",
"url": "https://gitlab.gnome.org/sophie-h/glycin.git",
2024-08-02 22:20:43 +02:00
"commit": "bb5bf87ed35d3cff5fe1f094c89762e96e60c44a"
}
]
},
{
2023-12-25 21:34:18 +01:00
"name": "loupe",
"buildsystem": "meson",
"config-opts": [
"-Dprofile=development"
],
2023-12-25 21:34:18 +01:00
"sources": [
{
2023-12-25 21:34:18 +01:00
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/loupe.git"
}
]
}
]
}