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
14 changes: 6 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# ── Build ─────────────────────────────────────────────────────────────────────
# Build

build_arm:
RUSTFLAGS="-C target-cpu=native" cargo build --release

build_x86:
RUSTFLAGS="-C target-cpu=x86-64-v3" cargo build --release --target x86_64-apple-darwin

# ── Run ───────────────────────────────────────────────────────────────────────
# Run

run: view

Expand All @@ -19,7 +19,7 @@ view-vsync:
view-1m:
RUSTFLAGS="-C target-cpu=native" cargo run --release

# ── Config ────────────────────────────────────────────────────────────────────
# Config

CONFIG_FILE := $(HOME)/Library/Application\ Support/dem_renderer/config.toml

Expand All @@ -28,7 +28,7 @@ config:
@touch "$(HOME)/Library/Application Support/dem_renderer/config.toml"
vim "$(HOME)/Library/Application Support/dem_renderer/config.toml"

# ── Data ──────────────────────────────────────────────────────────────────────
# Data

download-tiles:
bash download_copernicus_tiles_30m.sh
Expand Down Expand Up @@ -60,8 +60,7 @@ generate_windows_icon:
# brew install imagemagick
magick assets/icon_source.png -define icon:auto-resize=256,128,64,48,32,16 assets/icon.ico

# ── Coverage ──────────────────────────────────────────────────────────────────

# Coverage
# One-time local setup: the LLVM instrumentation tools, the coverage driver,
# and jq (used to derive the workspace package list below). cargo-llvm-cov is
# compiled from crates.io; rustup ships llvm-tools as a component.
Expand Down Expand Up @@ -96,8 +95,7 @@ test-generate-report:
open-report:
open coverage-html/html/index.html

# ── Release ───────────────────────────────────────────────────────────────────

# Release
release:
git tag $(VERSION)
git push origin $(VERSION)
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl ApplicationHandler for App {
}

impl App {
/// Called after every launcher window_event. If the launcher has set an outcome,
/// Called after every launcher window_event. If the launcher has set an outcome,
/// handle it: exit the loop (Exit) or switch to Viewer phase without restarting
/// the loop (Start) — the window stays on-screen the whole time.
fn try_transition(&mut self, el: &ActiveEventLoop) {
Expand Down
Loading