march, flags, and git dependencies
This commit is contained in:
parent
914992cba9
commit
dc3865ba6d
8 changed files with 97 additions and 23 deletions
12
README.md
12
README.md
|
|
@ -67,10 +67,12 @@ Save and close, then run ``crafter-build -c debug``. Now you can run the ``hello
|
|||
|
||||
``-o`` Overrides the output folder.
|
||||
|
||||
``-r`` Runs the executable after building.
|
||||
|
||||
## configuration properties
|
||||
``name`` Name of the configuration.
|
||||
|
||||
``standard`` C++ standard that this configuration uses, please refer to the [relevant clang documentation](https://clang.llvm.org/cxx_status.html)
|
||||
``standard`` C++ standard that this configuration uses, please refer to the [relevant clang documentation](https://clang.llvm.org/cxx_status.html), defaults to ``c++26``.
|
||||
|
||||
``source_files`` All source files of the project ``.cpp`` extension is assumed.
|
||||
|
||||
|
|
@ -82,9 +84,11 @@ Save and close, then run ``crafter-build -c debug``. Now you can run the ``hello
|
|||
|
||||
``output_dir`` The directory where the output files will be placed.
|
||||
|
||||
``type`` The type of the project: ``executable``, ``library``, ``shared-library``.
|
||||
|
||||
``extends`` An array of configuration names that this configuration extends, later elements in the array take priority over previous ones.
|
||||
|
||||
``optimization_level`` Please refer to the [relevant clang documentation](https://clang.llvm.org/docs/CommandGuide/clang.html#code-generation-options).
|
||||
``optimization_level`` Please refer to the [relevant clang documentation](https://clang.llvm.org/docs/CommandGuide/clang.html#code-generation-options), defaults to ``0``.
|
||||
|
||||
``dependencies`` An object array of the dependencies of this project, example:
|
||||
```json
|
||||
|
|
@ -93,6 +97,10 @@ Save and close, then run ``crafter-build -c debug``. Now you can run the ``hello
|
|||
"path":"/home/Crafter.Build/project.json",
|
||||
"configuration":"debug-lib"
|
||||
}
|
||||
{
|
||||
"path":"https://github.com/Catcrafts/Crafter.Build.git",
|
||||
"configuration":"debug-lib"
|
||||
}
|
||||
]
|
||||
```
|
||||
This will now link the library of Crafter.Build in the configuration you use this in.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue