Compare commits

...

3 Commits

Author SHA1 Message Date
Matthias Clasen
baf4740cbb wip: Add spirv dependencies for shaderc
This doesn't build, because spirv-tools wants the source location
for spirv-headers. Roll eyes
2024-01-14 09:38:47 -05:00
Matthias Clasen
d824ef3f5a ci: MAke the flatpak build script executable
Things are better if we can test them locally without hassle.
2024-01-14 08:17:50 -05:00
Emmanuele Bassi
0fa41887f1 Snapshot/WIP: Add shaderc to the manifest 2024-01-12 23:19:10 +00:00
2 changed files with 64 additions and 0 deletions

0
.gitlab-ci/flatpak-build.sh Normal file → Executable file
View File

View File

@@ -63,6 +63,70 @@
}
]
},
{
"name": "spirv-headers",
"buildsystem": "cmake-ninja",
"builddir": true,
"cleanup": [ "/bin", "/lib/cmake", "/lib/pkgconfig", "/include" ],
"sources": [
{
"type": "git",
"url": "https://github.com/KhronosGroup/SPIRV-Headers.git",
"branch": "main"
}
]
},
{
"name": "spirv-tools",
"buildsystem": "cmake-ninja",
"builddir": true,
"config-opts": [
"-DCMAKE_SKIP_RPATH:BOOL=yes",
"-DSPIRV_WERROR=Off",
"-DSPIRV-Headers_SOURCE_DIR=\"/app/include\"",
"-DSPIRV_TOOLS_BUILD_STATIC:BOOL=ON"
],
"cleanup": [ "/bin", "/lib/cmake", "/lib/pkgconfig", "/include" ],
"sources": [
{
"type": "git",
"url": "https://github.com/KhronosGroup/SPIRV-Tools.git",
"branch": "main"
}
]
},
{
"name": "shaderc",
"buildsystem": "cmake-ninja",
"builddir": true,
"config-opts": [
"-DSHADERC_SKIP_COPYRIGHT_CHECK=ON",
"-DSHADERC_SKIP_EXAMPLES=ON",
"-DSHADERC_SKIP_TESTS=ON"
],
"cleanup": [ "/bin", "/lib/cmake", "/lib/pkgconfig", "/include" ],
"post-install": [
"install -D /lib/$(gcc --print-multiarch)/libSPIRV*.so /app/lib"
],
"sources": [
{
"type": "archive",
"archive-type": "tar",
"url": "https://api.github.com/repos/google/shaderc/tarball/refs/tags/v2021.3",
"sha256": "b7e54b23a83343d5e2da836d8833ae0db11926141955edf845e35d4dc1eb88d1"
},
{
"type": "shell",
"commands": [
"sed -i 's|SPIRV/GlslangToSpv.h|glslang/SPIRV/GlslangToSpv.h|' libshaderc_util/src/compiler.cc",
"sed -i 's|add_subdirectory(third_party)||' CMakeLists.txt",
"sed -i 's|add_custom_target(build-version|set(NOT_USE|' CMakeLists.txt",
"LIB=/lib/$(gcc --print-multiarch)\nVER_MATCH=\"[0-9]+\\.[^\\. ]+\"\nSHADERC=$(grep -m1 -oP \"^v$VER_MATCH\" CHANGES)\nSPIRV=v$(grep -oP \"(?<=Version:.)$VER_MATCH\" $LIB/pkgconfig/SPIRV-Tools-shared.pc)\nGLSLANG=v$(realpath $LIB/libglslang.so | grep -oP \"(?<=so.)$VER_MATCH\")\ncat <<- EOF > glslc/src/build-version.inc\n \"shaderc $SHADERC\"\n \"spirv-tools $SPIRV\"\n \"glslang $GLSLANG\"\nEOF",
"cat glslc/src/build-version.inc"
]
}
]
},
{
"name" : "libsass",
"buildsystem" : "meson",