From 3abe6d39c45b6d8569eeba736ee94f8d08bf3fc2 Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Thu, 26 Oct 2023 14:12:24 +0200 Subject: [PATCH] add envrc.sample --- envrc.sample | 2 ++ justfile | 19 ++++--------------- 2 files changed, 6 insertions(+), 15 deletions(-) create mode 100644 envrc.sample diff --git a/envrc.sample b/envrc.sample new file mode 100644 index 0000000..54c13ac --- /dev/null +++ b/envrc.sample @@ -0,0 +1,2 @@ +use flake . +export CMAKE_GENERATOR=Ninja diff --git a/justfile b/justfile index 140f128..ca2aa4c 100644 --- a/justfile +++ b/justfile @@ -21,13 +21,11 @@ deps: pre-build raylib raygui build: zig build -Doptimize=Debug - # zig build -Doptimize=Debug -Dtarget=x86_64-linux-gnu.2.30 - # zig build -Doptimize=Debug -Dtarget=native-native-musl #--search-prefix /nix/store/n12a68qch9s85k6ni4m4r4xxr8lwys1i-sqlite-3.41.2/lib -web-build: pre-build - # zig build-lib src/main.zig -target wasm32-freestanding -dynamic -rdynamic - zig build -Dtarget=wasm32-emscripten --sysroot /nix/store/lszbak7w3k1jmx3cm3qb2qzillsib71v-emscripten-3.1.24/bin/emcc - # zig build -Dtarget=wasm32-emscripten +# web-build: pre-build +# # zig build-lib src/main.zig -target wasm32-freestanding -dynamic -rdynamic +# zig build -Dtarget=wasm32-emscripten --sysroot /nix/store/lszbak7w3k1jmx3cm3qb2qzillsib71v-emscripten-3.1.24/bin/emcc +# # zig build -Dtarget=wasm32-emscripten run: nixGL zig build run @@ -38,12 +36,3 @@ test: format: fd -e zig -X zig fmt {} fd -e nix -X nix fmt {} - -# update-deps: -# # We cannot easily add header-only C library with package manager -# curl https://raw.githubusercontent.com/raysan5/raygui/master/src/raygui.h --remote-name --output-dir 3rd-party/ -# curl https://raw.githubusercontent.com/raysan5/raygui/master/examples/custom_file_dialog/gui_window_file_dialog.h --remote-name --output-dir 3rd-party/ - -envrc: - echo "use flake ." - echo "export CMAKE_GENERATOR=Ninja"