Merge branch 'master' of https://github.com/The-Mighty-Cat/Crafter.Build
This commit is contained in:
commit
3fa162c9dc
1 changed files with 12 additions and 1 deletions
13
README.md
13
README.md
|
|
@ -21,7 +21,7 @@ cd Crafter.Build
|
|||
|
||||
## Quickstart
|
||||
|
||||
create a ``project.json`` in an empty folder, open it in your preffered text editor.
|
||||
create a ``project.json`` in an empty folder, open it in your preferred text editor.
|
||||
Create a basic project file, with a base configuration and debug and release configuration
|
||||
```JSON
|
||||
{
|
||||
|
|
@ -84,6 +84,17 @@ Save and close, then run ``crafter-build -c debug``. Now you can run the ``hello
|
|||
|
||||
``optimization_level`` Please refer to the [relevant clang documentation](https://clang.llvm.org/docs/CommandGuide/clang.html#code-generation-options).
|
||||
|
||||
``dependencies`` An object array of the dependencies of this project, example:
|
||||
```json
|
||||
"dependencies": [
|
||||
{
|
||||
"path":"/home/Crafter.Build/project.json",
|
||||
"configuration":"debug-lib"
|
||||
}
|
||||
]
|
||||
```
|
||||
This will now link the library of Crafter.Build in the configuration you use this in.
|
||||
|
||||
``target`` Clang triplet this configuration uses, please refer to the [relevant clang documentation](https://clang.llvm.org/docs/CrossCompilation.html#target-triple).
|
||||
|
||||
Note: the WASI SDK needs to be installed to compile to webassmbly, and ``$WASI_SDK_PATH`` needs to be set, please refer to the [wasi-sdk installation guide](https://github.com/WebAssembly/wasi-sdk?tab=readme-ov-file#install).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue