Commit d4c43016 authored by Marco Bubke's avatar Marco Bubke
Browse files

Add flatpaks for QtCreator

parents
.flatpak-builder
_flatpak_build
creator_master
repo
# Build
flatpak-builder --default-branch=master --gpg-homedir=gpg --gpg-sign=55F2A7F477BB0AC59B64592B55AE89AEBAB94AA0 --ccache --repo=flatpaks-repo --subject="Build of Qt Creator `date`" creator_master org.qtproject.qtcreator.json
# Test
flatpak-builder --run creator_master/ org.qtproject.qtcreator.json qtcreator.sh
{
"app-id": "org.qtproject.QtCreator46Snapshot",
"runtime": "org.kde.Sdk",
"platform-extensions": ["org.kde.Sdk.debug"],
"runtime-version": "5.9",
"sdk": "org.kde.Sdk",
"command": "qtcreator",
"finish-args": [
"--require-version=0.8.0",
"--allow=devel",
"--share=ipc",
"--socket=x11",
"--socket=wayland",
"--device=dri",
"--filesystem=host",
"--nofilesystem=~/.config",
"--share=network",
"--env=CCACHE_PREFIX=icecc",
"--env=PATH=/app/libexec/ccache:/app/bin:/usr/bin"
],
"build-options" : {
"append-ld-library-path": "/app/lib",
"no-debuginfo": true
},
"modules": [
{
"name": "liblzo2",
"buildsystem": "autotools",
"builddir": true,
"sources": [
{
"type": "archive",
"url": "http://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz",
"sha256": "c0f892943208266f9b6543b3ae308fab6284c5c90e627931446fb49b4221a072"
}
]
},
{
"name": "libcap-ng",
"buildsystem": "autotools",
"builddir": true,
"sources": [
{
"type": "archive",
"url": "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-0.7.8.tar.gz",
"sha256": "c21af997445cd4107a55d386f955c5ea6f6e96ead693e9151277c0ab5f97d05f"
}
]
},
{
"name": "icecc",
"buildsystem": "autotools",
"builddir": true,
"config-opts": ["--without-man"],
"sources": [
{
"type": "archive",
"url": "https://github.com/icecc/icecream/archive/1.1.tar.gz",
"sha256": "92532791221d7ec041b7c5cf9998d9c3ee8f57cbd2da1819c203a4c6799ffc18"
}
]
},
{
"name": "gtest",
"buildsystem": "cmake-ninja",
"builddir": true,
"sources": [
{
"type": "archive",
"url": "https://github.com/google/googletest/archive/release-1.8.0.tar.gz",
"sha256": "58a6f4277ca2bc8565222b3bbd58a177609e9c488e8a72649359ba51450db7d8"
}
]
},
{
"name": "llvm",
"buildsystem": "cmake-ninja",
"builddir": true,
"config-opts": [
"-DBUILD_SHARED_LIBS:BOOL=OFF",
"-DCMAKE_BUILD_TYPE=Release",
"-DLLVM_LIBDIR_SUFFIX=",
"-DLLVM_ENABLE_LIBCXX:BOOL=OFF",
"-DLLVM_ENABLE_ZLIB:BOOL=ON",
"-DLLVM_ENABLE_FFI:BOOL=ON",
"-DLLVM_ENABLE_RTTI:BOOL=ON",
"-DLLVM_BUILD_RUNTIME:BOOL=ON",
"-DLLVM_INCLUDE_TOOLS:BOOL=ON",
"-DLLVM_BUILD_TOOLS:BOOL=ON",
"-DLLVM_INCLUDE_TESTS:BOOL=OFF",
"-DLLVM_INCLUDE_EXAMPLES:BOOL=OFF",
"-DLLVM_INCLUDE_UTILS:BOOL=ON",
"-DLLVM_INSTALL_UTILS:BOOL=OFF",
"-DLLVM_INCLUDE_DOCS:BOOL=OFF",
"-DLLVM_ENABLE_DOXYGEN:BOOL=OFF",
"-DLLVM_BUILD_LLVM_DYLIB:BOOL=OFF",
"-DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=OFF",
"-DFFI_INCLUDE_DIR=/usr/lib/libffi-3.2.1/include",
"-DLLVM_INSTALL_TOOLCHAIN_ONLY:BOOL=OFF"],
"sources": [
{
"type": "archive",
"url": "https://releases.llvm.org/5.0.0/llvm-5.0.0.src.tar.xz",
"sha256": "e35dcbae6084adcf4abb32514127c5eabd7d63b733852ccdb31e06f1373136da"
}
]
},
{
"name": "clang",
"buildsystem": "cmake-ninja",
"builddir": true,
"config-opts": [
"-DBUILD_SHARED_LIBS:BOOL=OFF",
"-DCMAKE_BUILD_TYPE=Release",
"-DLLVM_CONFIG:FILEPATH=/app/bin/llvm-config",
"-DCLANG_ENABLE_ARCMT:BOOL=ON",
"-DCLANG_ENABLE_STATIC_ANALYZER:BOOL=ON",
"-DCLANG_INCLUDE_DOCS:BOOL=OFF",
"-DCLANG_INCLUDE_TESTS:BOOL=OFF",
"-DLLVM_ENABLE_RTTI:BOOL=ON",
"-DCLANG_PLUGIN_SUPPORT:BOOL=ON",
"-DCLANG_BUILD_EXAMPLES:BOOL=OFF"],
"sources": [
{
"type": "archive",
"url": "https://releases.llvm.org/5.0.0/cfe-5.0.0.src.tar.xz",
"sha256": "019f23c2192df793ac746595e94a403908749f8e0c484b403476d2611dd20970"
},
{
"type": "patch",
"path": "patches/D37435_Dont-show-deleted-function-constructor-candidates-for-code-completion.patch",
"strip-components": 3
},
{
"type": "patch",
"path": "patches/rL310905_Avoid-PointerIntPair-of-constexpr-EvalInfo-structs.patch",
"strip-components": 3
}
]
},
{
"name": "clazy",
"buildsystem": "cmake-ninja",
"builddir": true,
"config-opts": [
"-DBUILD_SHARED_LIBS:BOOL=OFF",
"-DCLAZY_STATIC_PLUGIN_LIB:BOOL=ON",
"-DCMAKE_BUILD_TYPE=Release"],
"sources": [
{
"type": "archive",
"url": "https://github.com/KDE/clazy/archive/v1.3.tar.gz",
"sha256": "c441224cf9e0e8ecc3b2f591e255073ae79a1d0fcf77bceca4493aa286cc2899"
}
]
},
{
"name": "rename_clazy_lib",
"buildsystem": "simple",
"build-commands": ["cp /app/lib64/ClangLazy.a /app/lib/libClangLazy.a"]
},
{
"name": "clang-clazy",
"buildsystem": "cmake-ninja",
"builddir": true,
"config-opts": [
"-DBUILD_SHARED_LIBS:BOOL=OFF",
"-DCMAKE_BUILD_TYPE=Release",
"-DLLVM_CONFIG:FILEPATH=/app/bin/llvm-config",
"-DCLANG_ENABLE_ARCMT:BOOL=ON",
"-DCLANG_ENABLE_STATIC_ANALYZER:BOOL=ON",
"-DCLANG_INCLUDE_DOCS:BOOL=OFF",
"-DCLANG_INCLUDE_TESTS:BOOL=OFF",
"-DLLVM_ENABLE_RTTI:BOOL=ON",
"-DCLANG_PLUGIN_SUPPORT:BOOL=ON",
"-DCLANG_BUILD_EXAMPLES:BOOL=OFF",
"-DCLANG_ENABLE_CLAZY:BOOL=ON"],
"sources": [
{
"type": "archive",
"url": "https://releases.llvm.org/5.0.0/cfe-5.0.0.src.tar.xz",
"sha256": "019f23c2192df793ac746595e94a403908749f8e0c484b403476d2611dd20970"
},
{
"type": "patch",
"path": "patches/D37435_Dont-show-deleted-function-constructor-candidates-for-code-completion.patch",
"strip-components": 3
},
{
"type": "patch",
"path": "patches/rL310905_Avoid-PointerIntPair-of-constexpr-EvalInfo-structs.patch",
"strip-components": 3
},
{
"type": "patch",
"path": "patches/QTCREATORBUG-15157_Link-with-clazy.patch",
"strip-components": 3
}
]
},
{
"name": "qtcreator",
"buildsystem": "qmake",
"branch": "4.6",
"builddir": true,
"config-opts": [
"CONFIG+=release",
"LLVM_INSTALL_DIR=/app",
"QTC_PREFIX=/app"],
"sources": [
{
"type": "git",
"url": "https://code.qt.io/qt-creator/qt-creator.git"
},
{
"type": "patch",
"path": "patches/dont-use-native-filedialogs.patch"
},
{
"type": "patch",
"path": "patches/disable-qmake-path-changes.patch"
}
]
}
],
"cleanup": [
"/bin/pscap",
"/bin/pkgconfig",
"/lib/libLTO*",
"/lib/BugpointPasses.so",
"/lib/LLVMHello.so",
"/lib/debug",
"/lib/*.a",
"/lib/*.la",
"/lib/clang",
"/lib/cmake",
"/lib/pkgconfig",
"/lib64",
"/bin/llvm-ar",
"/bin/llvm-as",
"/bin/llvm-bcanalyzer",
"/bin/llvm-cat",
"/bin/llvm-cov",
"/bin/llvm-c-test",
"/bin/llvm-cvtres",
"/bin/llvm-cxxdump",
"/bin/llvm-cxxfilt",
"/bin/llvm-diff",
"/bin/llvm-dis",
"/bin/llvm-dlltool",
"/bin/llvm-dsymutil",
"/bin/llvm-dwarfdump",
"/bin/llvm-dwp",
"/bin/llvm-extract",
"/bin/llvm-lib",
"/bin/llvm-link",
"/bin/llvm-lto",
"/bin/llvm-lto2",
"/bin/llvm-mc",
"/bin/llvm-mcmarkup",
"/bin/llvm-modextract",
"/bin/llvm-mt",
"/bin/llvm-nm",
"/bin/llvm-objdump",
"/bin/llvm-opt-report",
"/bin/llvm-pdbutil",
"/bin/llvm-profdata",
"/bin/llvm-ranlib",
"/bin/llvm-readelf",
"/bin/llvm-readobj",
"/bin/llvm-rtdyld",
"/bin/llvm-size",
"/bin/llvm-split",
"/bin/llvm-stress",
"/bin/llvm-strings",
"/bin/llvm-symbolizer",
"/bin/llvm-tblgen",
"/bin/llvm-xray",
"/bin/san*",
"/bin/obj*",
"/bin/c-index*",
"/bin/opt",
"/bin/clazy",
"/bin/clang-rename",
"/bin/clang-import-test",
"/bin/clang-offload-bundler",
"/bin/verify-uselistorder",
"/bin/yaml2obj",
"/bin/bugpoint",
"/bin/clang",
"/bin/clang++",
"/bin/clang-5.0",
"/bin/clang-cl",
"/bin/clang-cpp",
"/bin/scan-*",
"/bin/netcap",
"/bin/pscap",
"/bin/filecap",
"/bin/captest",
"/include",
"/man",
"/share/aclocal",
"/share/clang",
"/share/clazy",
"/share/doc",
"/share/man",
"/share/opt-viewer",
"/share/scan-*"
],
"cleanup-commands": [
"mkdir /app/libexec/ccache && ln -s /usr/bin/ccache /app/libexec/ccache/gcc && ln -s /usr/bin/ccache /app/libexec/ccache/g++ && ln -s /usr/bin/ccache /app/libexec/ccache/clang && ln -s /usr/bin/ccache /app/libexec/ccache/clang++"
],
"rename-desktop-file":"org.qt-project.qtcreator.desktop",
"rename-appdata-file":"org.qt-project.qtcreator.appdata.xml",
"rename-icon":"QtProject-qtcreator"
}
{
"app-id": "org.qtproject.QtCreatorMasterSnapshot",
"runtime": "org.kde.Sdk",
"platform-extensions": ["org.kde.Sdk.debug"],
"runtime-version": "5.9",
"sdk": "org.kde.Sdk",
"command": "qtcreator",
"finish-args": [
"--require-version=0.8.0",
"--allow=devel",
"--share=ipc",
"--socket=x11",
"--socket=wayland",
"--device=dri",
"--filesystem=host",
"--nofilesystem=~/.config",
"--share=network",
"--env=CCACHE_PREFIX=icecc",
"--env=PATH=/app/libexec/ccache:/app/bin:/usr/bin"
],
"build-options" : {
"append-ld-library-path": "/app/lib",
"no-debuginfo": true
},
"modules": [
{
"name": "liblzo2",
"buildsystem": "autotools",
"builddir": true,
"sources": [
{
"type": "archive",
"url": "http://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz",
"sha256": "c0f892943208266f9b6543b3ae308fab6284c5c90e627931446fb49b4221a072"
}
]
},
{
"name": "libcap-ng",
"buildsystem": "autotools",
"builddir": true,
"sources": [
{
"type": "archive",
"url": "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-0.7.8.tar.gz",
"sha256": "c21af997445cd4107a55d386f955c5ea6f6e96ead693e9151277c0ab5f97d05f"
}
]
},
{
"name": "icecc",
"buildsystem": "autotools",
"builddir": true,
"config-opts": ["--without-man"],
"sources": [
{
"type": "archive",
"url": "https://github.com/icecc/icecream/archive/1.1.tar.gz",
"sha256": "92532791221d7ec041b7c5cf9998d9c3ee8f57cbd2da1819c203a4c6799ffc18"
}
]
},
{
"name": "gtest",
"buildsystem": "cmake-ninja",
"builddir": true,
"sources": [
{
"type": "archive",
"url": "https://github.com/google/googletest/archive/release-1.8.0.tar.gz",
"sha256": "58a6f4277ca2bc8565222b3bbd58a177609e9c488e8a72649359ba51450db7d8"
}
]
},
{
"name": "llvm",
"buildsystem": "cmake-ninja",
"builddir": true,
"config-opts": [
"-DBUILD_SHARED_LIBS:BOOL=OFF",
"-DCMAKE_BUILD_TYPE=Release",
"-DLLVM_LIBDIR_SUFFIX=",
"-DLLVM_ENABLE_LIBCXX:BOOL=OFF",
"-DLLVM_ENABLE_ZLIB:BOOL=ON",
"-DLLVM_ENABLE_FFI:BOOL=ON",
"-DLLVM_ENABLE_RTTI:BOOL=ON",
"-DLLVM_BUILD_RUNTIME:BOOL=ON",
"-DLLVM_INCLUDE_TOOLS:BOOL=ON",
"-DLLVM_BUILD_TOOLS:BOOL=ON",
"-DLLVM_INCLUDE_TESTS:BOOL=OFF",
"-DLLVM_INCLUDE_EXAMPLES:BOOL=OFF",
"-DLLVM_INCLUDE_UTILS:BOOL=ON",
"-DLLVM_INSTALL_UTILS:BOOL=OFF",
"-DLLVM_INCLUDE_DOCS:BOOL=OFF",
"-DLLVM_ENABLE_DOXYGEN:BOOL=OFF",
"-DLLVM_BUILD_LLVM_DYLIB:BOOL=OFF",
"-DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=OFF",
"-DFFI_INCLUDE_DIR=/usr/lib/libffi-3.2.1/include",
"-DLLVM_INSTALL_TOOLCHAIN_ONLY:BOOL=OFF"],
"sources": [
{
"type": "archive",
"url": "https://releases.llvm.org/5.0.0/llvm-5.0.0.src.tar.xz",
"sha256": "e35dcbae6084adcf4abb32514127c5eabd7d63b733852ccdb31e06f1373136da"
}
]
},
{
"name": "clang",
"buildsystem": "cmake-ninja",
"builddir": true,
"config-opts": [
"-DBUILD_SHARED_LIBS:BOOL=OFF",
"-DCMAKE_BUILD_TYPE=Release",
"-DLLVM_CONFIG:FILEPATH=/app/bin/llvm-config",
"-DCLANG_ENABLE_ARCMT:BOOL=ON",
"-DCLANG_ENABLE_STATIC_ANALYZER:BOOL=ON",
"-DCLANG_INCLUDE_DOCS:BOOL=OFF",
"-DCLANG_INCLUDE_TESTS:BOOL=OFF",
"-DLLVM_ENABLE_RTTI:BOOL=ON",
"-DCLANG_PLUGIN_SUPPORT:BOOL=ON",
"-DCLANG_BUILD_EXAMPLES:BOOL=OFF"],
"sources": [
{
"type": "archive",
"url": "https://releases.llvm.org/5.0.0/cfe-5.0.0.src.tar.xz",
"sha256": "019f23c2192df793ac746595e94a403908749f8e0c484b403476d2611dd20970"
},
{
"type": "patch",
"path": "patches/D37435_Dont-show-deleted-function-constructor-candidates-for-code-completion.patch",
"strip-components": 3
},
{
"type": "patch",
"path": "patches/rL310905_Avoid-PointerIntPair-of-constexpr-EvalInfo-structs.patch",
"strip-components": 3
}
]
},
{
"name": "clazy",
"buildsystem": "cmake-ninja",
"builddir": true,
"config-opts": [
"-DBUILD_SHARED_LIBS:BOOL=OFF",
"-DCLAZY_STATIC_PLUGIN_LIB:BOOL=ON",
"-DCMAKE_BUILD_TYPE=Release"],
"sources": [
{
"type": "archive",
"url": "https://github.com/KDE/clazy/archive/v1.3.tar.gz",
"sha256": "c441224cf9e0e8ecc3b2f591e255073ae79a1d0fcf77bceca4493aa286cc2899"
}
]
},
{
"name": "rename_clazy_lib",
"buildsystem": "simple",
"build-commands": ["cp /app/lib64/ClangLazy.a /app/lib/libClangLazy.a"]
},
{
"name": "clang-clazy",
"buildsystem": "cmake-ninja",
"builddir": true,
"config-opts": [
"-DBUILD_SHARED_LIBS:BOOL=OFF",
"-DCMAKE_BUILD_TYPE=Release",
"-DLLVM_CONFIG:FILEPATH=/app/bin/llvm-config",
"-DCLANG_ENABLE_ARCMT:BOOL=ON",
"-DCLANG_ENABLE_STATIC_ANALYZER:BOOL=ON",
"-DCLANG_INCLUDE_DOCS:BOOL=OFF",
"-DCLANG_INCLUDE_TESTS:BOOL=OFF",
"-DLLVM_ENABLE_RTTI:BOOL=ON",
"-DCLANG_PLUGIN_SUPPORT:BOOL=ON",
"-DCLANG_BUILD_EXAMPLES:BOOL=OFF",
"-DCLANG_ENABLE_CLAZY:BOOL=ON"],
"sources": [
{
"type": "archive",
"url": "https://releases.llvm.org/5.0.0/cfe-5.0.0.src.tar.xz",
"sha256": "019f23c2192df793ac746595e94a403908749f8e0c484b403476d2611dd20970"
},
{
"type": "patch",
"path": "patches/D37435_Dont-show-deleted-function-constructor-candidates-for-code-completion.patch",
"strip-components": 3
},
{
"type": "patch",
"path": "patches/rL310905_Avoid-PointerIntPair-of-constexpr-EvalInfo-structs.patch",
"strip-components": 3
},
{
"type": "patch",
"path": "patches/QTCREATORBUG-15157_Link-with-clazy.patch",
"strip-components": 3
}
]
},
{
"name": "qtcreator",
"buildsystem": "qmake",
"branch": "master",
"builddir": true,
"config-opts": [
"CONFIG+=release",
"LLVM_INSTALL_DIR=/app",
"QTC_PREFIX=/app"],
"sources": [
{
"type": "git",
"url": "https://code.qt.io/qt-creator/qt-creator.git"
},
{
"type": "patch",
"path": "patches/dont-use-native-filedialogs.patch"
},
{
"type": "patch",
"path": "patches/disable-qmake-path-changes.patch"
}
]
}
],
"cleanup": [
"/bin/pscap",
"/bin/pkgconfig",
"/lib/libLTO*",
"/lib/BugpointPasses.so",
"/lib/LLVMHello.so",
"/lib/debug",
"/lib/*.a",
"/lib/*.la",
"/lib/clang",
"/lib/cmake",
"/lib/pkgconfig",
"/lib64",
"/bin/llvm-ar",
"/bin/llvm-as",
"/bin/llvm-bcanalyzer",
"/bin/llvm-cat",
"/bin/llvm-cov",
"/bin/llvm-c-test",
"/bin/llvm-cvtres",
"/bin/llvm-cxxdump",
"/bin/llvm-cxxfilt",
"/bin/llvm-diff",
"/bin/llvm-dis",
"/bin/llvm-dlltool",
"/bin/llvm-dsymutil",
"/bin/llvm-dwarfdump",
"/bin/llvm-dwp",
"/bin/llvm-extract",
"/bin/llvm-lib",
"/bin/llvm-link",
"/bin/llvm-lto",
"/bin/llvm-lto2",
"/bin/llvm-mc",
"/bin/llvm-mcmarkup",
"/bin/llvm-modextract",
"/bin/llvm-mt",
"/bin/llvm-nm",
"/bin/llvm-objdump",
"/bin/llvm-opt-report",
"/bin/llvm-pdbutil",
"/bin/llvm-profdata",
"/bin/llvm-ranlib",
"/bin/llvm-readelf",
"/bin/llvm-readobj",