-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Do more setup work to compile dav1d on windows
- Loading branch information
1 parent
31363f6
commit 93c4116
Showing
7 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
clippy: | ||
cargo clippy --manifest-path {{justfile_directory() / 'Cargo.toml'}} --all-targets --all-features -- -D warnings | ||
cargo clippy --manifest-path {{ join(justfile_directory(), 'Cargo.toml') }} --all-targets --all-features -- -D warnings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,42 @@ | ||
dav1d: install | ||
|
||
clear: | ||
rm -rf {{justfile_directory() / 'target' / 'dav1d_build' }} | ||
dav1d: dirs | ||
|
||
install-meson: | ||
python --version | ||
pip install -U meson setuptools ninja | ||
|
||
clone: | ||
-git clone --branch 1.3.0 --depth 1 https://code.videolan.org/videolan/dav1d.git {{justfile_directory() / 'target' / 'dav1d'}} | ||
-git clone --branch 1.3.0 --depth 1 https://code.videolan.org/videolan/dav1d.git {{ join(justfile_directory(), 'target', 'dav1d') }} | ||
|
||
[unix] | ||
prepare: clone install-meson | ||
pwd | ||
meson setup -Denable_tools=false -Denable_examples=false --buildtype release {{ join(justfile_directory(), 'target', 'dav1d_build') }} {{ join(justfile_directory(), 'target', 'dav1d') }} | ||
|
||
[windows] | ||
prepare: clone install-meson | ||
pwd | ||
meson setup -Denable_tools=false -Denable_examples=false --buildtype release {{justfile_directory() / 'target' / 'dav1d_build' }} {{justfile_directory() / 'target' / 'dav1d' }} | ||
$LinkGlob = "VC\Tools\MSVC\*\bin\Hostx64\x64" | ||
$env:PATH = "$env:PATH;${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer" | ||
$LinkPath = vswhere -latest -products * -find "$LinkGlob" | Select-Object -Last 1 | ||
$env:PATH = "$env:PATH;$LinkPath" | ||
meson setup -Denable_tools=false -Denable_examples=false --buildtype release {{ join(justfile_directory(), 'target', 'dav1d_build') }} {{ join(justfile_directory(), 'target', 'dav1d') }} | ||
|
||
compile: prepare | ||
pwd | ||
ninja -C {{justfile_directory() / 'target' / 'dav1d_build' }} | ||
ninja -C {{ join(justfile_directory(), 'target', 'dav1d_build') }} | ||
|
||
install: compile | ||
ninja -C {{justfile_directory() / 'target' / 'dav1d_build' }} install | ||
ninja -C {{ join(justfile_directory(), 'target', 'dav1d_build') }} install | ||
|
||
dirs: | ||
@echo {{ just_executable() }} | ||
@echo {{ join(justfile_directory(), 'target', 'dav1d') }} | ||
@echo {{ join(justfile_directory(), 'target', 'dav1d_build') }} | ||
@echo 'After compiling dav1d set:' | ||
@echo PKG_CONFIG_PATH={{ join(justfile_directory(), 'target', 'dav1d_build', 'pkgconfig') }} | ||
@echo LD_LIBRARY_PATH={{ join(justfile_directory(), 'target', 'dav1d_build') }} | ||
|
||
[confirm("Are you sure you want to remove dav1d and dav1d_build?")] | ||
clear: | ||
rm -rf {{ join(justfile_directory(), 'target', 'dav1d') }} | ||
rm -rf {{ join(justfile_directory(), 'target', 'dav1d_build') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
deny: workspace | ||
|
||
workspace: install-cargo-deny | ||
cargo deny --log-level error --workspace --manifest-path {{justfile_directory() / 'Cargo.toml'}} check | ||
cargo deny --log-level error --workspace --manifest-path {{ join(justfile_directory(), 'Cargo.toml') }} check | ||
|
||
install-cargo-deny: | ||
cargo install cargo-deny |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
fmt: run | ||
|
||
run: | ||
cargo fmt --all --manifest-path {{ justfile_directory() / 'Cargo.toml'}} | ||
cargo fmt --all --manifest-path {{ join(justfile_directory(), 'Cargo.toml') }} | ||
|
||
check: | ||
cargo fmt --all --manifest-path {{ justfile_directory() / 'Cargo.toml'}} -- --check | ||
cargo fmt --all --manifest-path {{ join(justfile_directory(), 'Cargo.toml') }} -- --check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
msrv: verify | ||
|
||
run: install-cargo-msrv | ||
cargo msrv --manifest-path {{justfile_directory() / 'Cargo.toml'}} | ||
cargo msrv --manifest-path {{ join(justfile_directory(), 'Cargo.toml') }} | ||
|
||
verify: install-cargo-msrv | ||
cargo msrv verify --manifest-path {{justfile_directory() / 'Cargo.toml'}} | ||
cargo msrv verify --manifest-path {{ join(justfile_directory(), 'Cargo.toml') }} | ||
|
||
install-cargo-msrv: | ||
cargo install cargo-msrv --version 0.16.0-beta.20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
test: all no-default-features | ||
|
||
all: | ||
cargo test --all | ||
cargo test --all --manifest-path {{ join(justfile_directory(), 'Cargo.toml') }} | ||
|
||
no-default-features: | ||
cargo test --all --no-default-features | ||
cargo test --all --no-default-features --manifest-path {{ join(justfile_directory(), 'Cargo.toml') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters