Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions clib/spelldict/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ crate-type = ["staticlib"]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
16 changes: 16 additions & 0 deletions com.floatpane.matcha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ runtime-version: "23.08"
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.golang
- org.freedesktop.Sdk.Extension.rust-stable

command: matcha
finish-args:
Expand Down Expand Up @@ -80,13 +81,28 @@ modules:
Cflags: -I${includedir}
Libs: -L${libdir} -lpcsclite

- name: spelldict
buildsystem: simple
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
env:
CARGO_HOME: /run/build/spelldict/cargo
build-commands:
- cargo build --release --manifest-path clib/spelldict/Cargo.toml
- install -Dm644 clib/spelldict/target/release/libspelldict.a /app/lib/libspelldict.a
- install -Dm644 clib/spelldict/spelldict.h /app/include/spelldict.h
sources:
- type: dir
path: .

- name: matcha
buildsystem: simple
build-options:
append-path: /usr/lib/sdk/golang/bin
env:
GOCACHE: /app/.cache/go-build
GOPATH: /app/.go
CGO_LDFLAGS: -L/app/lib
build-args:
- --share=network
build-commands:
Expand Down
Loading