chore(just): add library and Rust version checks
This commit is contained in:
parent
b65cb1a038
commit
f0603d648f
4 changed files with 63 additions and 18 deletions
31
justfile
31
justfile
|
|
@ -1,12 +1,15 @@
|
|||
import 'scripts/cargo.just'
|
||||
import 'scripts/cosmic.just'
|
||||
|
||||
# Project metadata
|
||||
name := 'cosmic-settings'
|
||||
appid := 'com.system76.CosmicSettings'
|
||||
|
||||
# File paths
|
||||
rootdir := ''
|
||||
prefix := '/usr'
|
||||
|
||||
default-schema-target := clean(rootdir / prefix) / 'share' / 'cosmic'
|
||||
|
||||
# File paths
|
||||
bin-src := cargo-target-dir / 'release' / name
|
||||
bin-dest := clean(rootdir / prefix) / 'bin' / name
|
||||
|
||||
|
|
@ -20,6 +23,7 @@ metainfo := appid + '.metainfo.xml'
|
|||
metainfo-src := 'resources' / metainfo
|
||||
metainfo-dst := clean(rootdir / prefix) / 'share' / 'metainfo' / metainfo
|
||||
|
||||
# Build recipes
|
||||
[private]
|
||||
default: build-release
|
||||
|
||||
|
|
@ -34,11 +38,18 @@ uninstall:
|
|||
find 'resources'/'default_schema' -type f -exec echo {} \; | rev | cut -d'/' -f-3 | rev | xargs -d '\n' -I {} rm -rf {{default-schema-target}}/{}
|
||||
find 'resources'/'icons' -type f -exec echo {} \; | rev | cut -d'/' -f-3 | rev | xargs -d '\n' -I {} rm {{iconsdir}}/{}
|
||||
|
||||
# Vendor Cargo dependencies locally
|
||||
vendor:
|
||||
mkdir -p .cargo
|
||||
cargo vendor --sync Cargo.toml \
|
||||
| head -n -1 > .cargo/config
|
||||
echo 'directory = "vendor"' >> .cargo/config
|
||||
tar pcf vendor.tar vendor
|
||||
rm -rf vendor
|
||||
# Dependencies
|
||||
cmd-depends := "
|
||||
cargo
|
||||
cmake
|
||||
"
|
||||
|
||||
lib-depends := "
|
||||
expat
|
||||
fontconfig
|
||||
freetype2
|
||||
libinput
|
||||
libudev
|
||||
wayland-client
|
||||
xkbcommon
|
||||
"
|
||||
Loading…
Add table
Add a link
Reference in a new issue