.PHONY: fix-lint install-debug-render-process setup-windows setup-linux
BIN := bevy_cef_debug_render_process
CEF_LIB := $(HOME)/.local/share/cef/Chromium Embedded Framework.framework/Libraries
CARGO_BIN := $(HOME)/.cargo/bin
fix-lint:
cargo clippy --fix --allow-dirty --allow-staged --workspace --all --all-features
cargo fmt --all
install-debug-render-process:
CARGO_PROFILE_RELEASE_STRIP=false cargo install --locked --path ./crates/bevy_cef_debug_render_process --force
cp "$(CARGO_BIN)/$(BIN)" "$(CEF_LIB)/$(BIN)"
setup-macos:
brew install cmake ninja
cargo install --locked export-cef-dir@154.5.0+154.0.34 --force
export-cef-dir --force "$(HOME)/.local/share/cef"
CARGO_PROFILE_RELEASE_STRIP=false cargo install --locked --path crates/bevy_cef_debug_render_process
cp "$(CARGO_BIN)/$(BIN)" "$(CEF_LIB)/$(BIN)"
setup-windows:
cargo install --locked export-cef-dir@154.5.0+154.0.34 --force
export-cef-dir --force "$(USERPROFILE)/.local/share/cef"
cargo install --locked --path ./crates/bevy_cef_render_process --root "$(USERPROFILE)/.local/share/cef" --force
setup-linux:
cargo install --locked export-cef-dir@154.5.0+154.0.34 --force
"$(CARGO_BIN)/export-cef-dir" --force "$(HOME)/.local/share/cef"
cargo install --locked --path ./crates/bevy_cef_render_process --root "$(HOME)/.local/share/cef" --force