File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ crate-type = ["staticlib"]
1111opt-level = 3
1212lto = true
1313codegen-units = 1
14+ panic = " abort"
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ runtime-version: "23.08"
44sdk : org.freedesktop.Sdk
55sdk-extensions :
66 - org.freedesktop.Sdk.Extension.golang
7+ - org.freedesktop.Sdk.Extension.rust-stable
78
89command : matcha
910finish-args :
@@ -80,13 +81,28 @@ modules:
8081 Cflags: -I${includedir}
8182 Libs: -L${libdir} -lpcsclite
8283
84+ - name : spelldict
85+ buildsystem : simple
86+ build-options :
87+ append-path : /usr/lib/sdk/rust-stable/bin
88+ env :
89+ CARGO_HOME : /run/build/spelldict/cargo
90+ build-commands :
91+ - cargo build --release --manifest-path clib/spelldict/Cargo.toml
92+ - install -Dm644 clib/spelldict/target/release/libspelldict.a /app/lib/libspelldict.a
93+ - install -Dm644 clib/spelldict/spelldict.h /app/include/spelldict.h
94+ sources :
95+ - type : dir
96+ path : .
97+
8398 - name : matcha
8499 buildsystem : simple
85100 build-options :
86101 append-path : /usr/lib/sdk/golang/bin
87102 env :
88103 GOCACHE : /app/.cache/go-build
89104 GOPATH : /app/.go
105+ CGO_LDFLAGS : -L/app/lib
90106 build-args :
91107 - --share=network
92108 build-commands :
You can’t perform that action at this time.
0 commit comments