{
    "app-id": "org.equeim.Tremotesf",
    "runtime": "org.kde.Platform",
    "runtime-version": "6.10",
    "sdk": "org.kde.Sdk",
    "command": "tremotesf",
    "finish-args": [
        "--socket=fallback-x11",
        "--socket=wayland",
        "--share=ipc",
        "--share=network",
        "--device=dri",
        "--filesystem=host:ro",
        "--talk-name=org.kde.StatusNotifierWatcher",
        "--talk-name=org.freedesktop.FileManager1"
    ],
    "cleanup": [
        "/include",
        "/lib/cmake",
        "/lib/pkgconfig"
    ],
    "modules": [
        {
            "name": "cxxopts",
            "buildsystem": "cmake-ninja",
            "builddir": true,
            "config-opts": [
                "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
                "-DCXXOPTS_BUILD_EXAMPLES=OFF",
                "-DCXXOPTS_BUILD_TESTS=OFF"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://github.com/jarro2783/cxxopts/archive/refs/tags/v3.3.1.tar.gz",
                    "sha256": "3bfc70542c521d4b55a46429d808178916a579b28d048bd8c727ee76c39e2072"
                }
            ]
        },
        {
            "name": "cpp-httplib",
            "buildsystem": "cmake-ninja",
            "builddir": true,
            "config-opts": [
                "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
                "-DHTTPLIB_REQUIRE_OPENSSL=ON"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://github.com/yhirose/cpp-httplib/archive/refs/tags/v0.28.0.tar.gz",
                    "sha256": "ccb32f9832c906d571f61794f453223dbb724ba738265551e3cd28ca325b529d"
                }
            ]
        },
        {
            "name": "tremotesf",
            "buildsystem": "cmake-ninja",
            "builddir": true,
            "build-options": {
                "env": {
                    "CTEST_OUTPUT_ON_FAILURE": "1",
                    "ASAN_OPTIONS": "detect_leaks=0"
                }
            },
            "config-opts": [
                "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
                "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON",
                "-DTREMOTESF_WITH_HTTPLIB=system",
                "-DTREMOTESF_ASAN=ON"
            ],
            "run-tests": true,
            "sources": [
                {
                    "type": "dir",
                    "path": "."
                }
            ]
        }
    ]
}
