concat-git: build with skia, wgpu feature is gone
This commit is contained in:
1 parent
d22f987b20
commit
9d9a350947
2 files changed
+13
-17
No files matched your search
+6
-11
@@ -70,20 +70,15 @@ build() {
|
||||
# for kernels nobody measured. Off, it compiles to the portable baseline.
|
||||
export GGML_NATIVE=OFF
|
||||
|
||||
# --features wgpu: FemtoVG over wgpu instead of the default Skia renderer.
|
||||
# skia-bindings downloads prebuilt binaries from its build script, which a
|
||||
# package cannot do; the wgpu renderer is pure Rust. This is the same
|
||||
# choice, for the same reason, that upstream's flake.nix makes.
|
||||
#
|
||||
# --profile app: upstream's shipping profile - fat LTO, panic=abort,
|
||||
# stripped. See src/Cargo.toml for what each knob is for.
|
||||
#
|
||||
# sherpa-onnx-sys, the text-to-speech backend, ships no C++ build: its build
|
||||
# script downloads a prebuilt static-lib archive from its own release page.
|
||||
# concat pins that archive as a checksummed source; here the version moves
|
||||
# with main, so the build script fetches it - build() needs the network.
|
||||
cargo build --profile app -p concat --frozen \
|
||||
--no-default-features --features wgpu
|
||||
# Two build scripts download prebuilt static libraries from their own
|
||||
# release pages: sherpa-onnx-sys (text to speech) and skia-bindings (Skia,
|
||||
# the window's renderer; main dropped the FemtoVG-over-wgpu option after
|
||||
# 0.2.4). Their versions move with main, so they are not pinned as sources
|
||||
# here, and build() needs the network.
|
||||
cargo build --profile app -p concat --frozen
|
||||
}
|
||||
|
||||
package() {
|
||||
|
||||
+7
-6
@@ -1,12 +1,13 @@
|
||||
# concat-git - Concat (https://github.com/jub0t/Concat) built from the main
|
||||
# branch. Same build as concat, see that package for why the editor needs
|
||||
# cargo, cmake and clang and nothing else, and why the FemtoVG-over-wgpu
|
||||
# renderer is the one a distribution package can build.
|
||||
# cargo, cmake and clang.
|
||||
#
|
||||
# The one difference: concat pins the prebuilt sherpa-onnx static-lib archive
|
||||
# as a checksummed source, which it can because the version comes from a
|
||||
# tagged Cargo.lock. Here it moves with main, so sherpa-onnx-sys' build
|
||||
# script downloads it and build() needs the network.
|
||||
# The differences: main dropped the FemtoVG-over-wgpu renderer after 0.2.4,
|
||||
# so this builds upstream's default, Skia. And concat pins the prebuilt
|
||||
# sherpa-onnx static-lib archive as a checksummed source, which it can
|
||||
# because the version comes from a tagged Cargo.lock. Here the versions move
|
||||
# with main, so the build scripts of sherpa-onnx-sys and skia-bindings
|
||||
# download their archives and build() needs the network.
|
||||
#
|
||||
# VCS packages are not version-tracked here on purpose. The AUR copy of a -git
|
||||
# PKGBUILD carries only a snapshot of pkgver; the real version comes from
|
||||
|
||||
Reference in new issue
Block a user