mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 18:59:41 +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.
24 lines
587 B
Markdown
24 lines
587 B
Markdown
# Target directory
|
|
|
|
By default, DCR writes final artifacts to `target/<target>/<profile>/` (where `<target>` is `native` or target triple).
|
|
|
|
You can override this with `build.target`:
|
|
|
|
```toml
|
|
[build]
|
|
target = "./dist"
|
|
```
|
|
|
|
## Behavior
|
|
|
|
- Binary mode:
|
|
- Linux/macOS: `<target>/<name>`
|
|
- Windows: `<target>/<name>.exe`
|
|
- Static library mode:
|
|
- Linux/macOS: `<target>/lib<name>.a`
|
|
- Windows: `<target>/<name>.lib`
|
|
|
|
## Important detail
|
|
|
|
`build.target` changes only the final artifact location. Object cache and dependency sync directories still use `target/<target>/<profile>/...`.
|