Improve justfile
This commit is contained in:
1 parent
27e5e253ae
commit
2425bee7ab
1 file changed
+25
-12
@@ -2,19 +2,32 @@ _default:
|
||||
@just --list
|
||||
|
||||
|
||||
[doc: "Build the sdl3 test app"]
|
||||
build:
|
||||
lake build test-app
|
||||
patchelf --set-interpreter /usr/lib/ld-linux-x86-64.so.2 .lake/build/bin/test-app
|
||||
patchelf --set-rpath '$ORIGIN:/usr/lib' .lake/build/bin/test-app
|
||||
[doc: "Build the general test app"]
|
||||
[group: "build"]
|
||||
build-test-app:
|
||||
@just _build test-app
|
||||
@just _perform_nix_patch test-app
|
||||
|
||||
[doc: "Run the sdl3 test app"]
|
||||
run: build
|
||||
[doc: "Build the general test app"]
|
||||
[group: "run"]
|
||||
run-test-app: build-test-app
|
||||
.lake/build/bin/test-app
|
||||
|
||||
[doc: "Build and run the webcam demo"]
|
||||
webcam:
|
||||
lake build webcam-app
|
||||
patchelf --set-interpreter /usr/lib/ld-linux-x86-64.so.2 .lake/build/bin/webcam-app
|
||||
patchelf --set-rpath '$ORIGIN:/usr/lib' .lake/build/bin/webcam-app
|
||||
[doc: "Build the webcam demo"]
|
||||
[group: "build"]
|
||||
build-webcam-demo:
|
||||
@just _build webcam-app
|
||||
@just _perform_nix_patch webcam-app
|
||||
|
||||
[doc: "Run the webcam demo"]
|
||||
[group: "run"]
|
||||
run-webcam-demo: build-webcam-demo
|
||||
.lake/build/bin/webcam-app
|
||||
|
||||
|
||||
_build binary-name:
|
||||
lake build {{binary-name}}
|
||||
|
||||
_perform_nix_patch binary-name:
|
||||
patchelf --set-interpreter /usr/lib/ld-linux-x86-64.so.2 .lake/build/bin/{{binary-name}}
|
||||
patchelf --set-rpath '$ORIGIN:/usr/lib' .lake/build/bin/{{binary-name}}
|
||||
Reference in new issue
Block a user