mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 13:38:30 +00:00
- Updated build and run commands to accept a --target option for specifying target platforms. - Enhanced documentation to include cross-compilation usage and supported targets. - Modified configuration to allow target-specific settings and toolchains. - Introduced a new test command to run project tests with specified profiles and targets. - Improved handling of target directories and output structure for different platforms. - Added support for multiple targets in the configuration file. - Implemented inheritance for workspace and dependencies based on target and profile.
1.0 KiB
1.0 KiB
Build and run
Build
Debug (default):
dcr build
# or
dcr build --debug
dcr build --target linux --debug
dcr build --debug --clean
Release:
dcr build --release
dcr build --target windows --release
Run
dcr run
# or
dcr run --target macos
dcr run --release
dcr run --target linux --release
dcr run --release --force
dcr run first builds, then launches the produced binary.
Clean artifacts
dcr clean
Profile-only cleanup:
dcr clean --debug
dcr clean --release
dcr clean --all
dcr clean --release --all
Notes
runis unavailable forbuild.kind = "staticlib"andbuild.kind = "sharedlib".- Build profile flag (
--debug/--release) can be passed in any argument position. - Unknown profile flags produce an error.
- In workspace root,
clean --allcleans all member projects. --targetbuilds/runs for specified target (short names:linux,macos,windows).--cleanforbuild/runremovestarget/<target>/<profile>and paths frombuild.clean.