Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/cargo.mk
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | |||||
# Manage crate features. | # Manage crate features. | ||||
.if !empty(CARGO_FEATURES) | .if !empty(CARGO_FEATURES) | ||||
CARGO_BUILD_ARGS+= --features='${CARGO_FEATURES}' | CARGO_BUILD_ARGS+= --features='${CARGO_FEATURES}' | ||||
CARGO_INSTALL_ARGS+= --features='${CARGO_FEATURES}' | CARGO_INSTALL_ARGS+= --features='${CARGO_FEATURES}' | ||||
CARGO_TEST_ARGS+= --features='${CARGO_FEATURES}' | CARGO_TEST_ARGS+= --features='${CARGO_FEATURES}' | ||||
.endif | .endif | ||||
.if !defined(WITH_DEBUG) || defined(WITHOUT_DEBUG) | .if !defined(WITH_DEBUG) | ||||
CARGO_BUILD_ARGS+= --release | CARGO_BUILD_ARGS+= --release | ||||
CARGO_TEST_ARGS+= --release | CARGO_TEST_ARGS+= --release | ||||
.else | .else | ||||
CARGO_INSTALL_ARGS+= --debug | CARGO_INSTALL_ARGS+= --debug | ||||
.endif | .endif | ||||
.if ${CARGO_CRATES:Mlibgit2-sys-*} | .if ${CARGO_CRATES:Mlibgit2-sys-*} | ||||
# Use the system's libgit2 instead of building the bundled version | # Use the system's libgit2 instead of building the bundled version | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |