PyMakeCli
所属分类:C/C++基础
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2023-10-22 16:03:38
上 传 者:
sh-1993
说明: 一个易于使用的C++编译器链接器和标记器。
(An easy to use C C++ compiler linker and flagger.)
文件列表:
build.bat (33, 2023-12-03)
example/ (0, 2023-12-03)
example/config.yaml (1024, 2023-12-03)
example/src/ (0, 2023-12-03)
example/src/include/ (0, 2023-12-03)
example/src/include/utils.h (59, 2023-12-03)
example/src/main.cpp (160, 2023-12-03)
example/src/utils.cpp (123, 2023-12-03)
pymake_cli/ (0, 2023-12-03)
pymake_cli/__init__.py (60, 2023-12-03)
pymake_cli/build_file.py (1866, 2023-12-03)
pymake_cli/pymake.py (3972, 2023-12-03)
pymake_cli/pymake_cli.py (2733, 2023-12-03)
pymake_cli/utils.py (175, 2023-12-03)
redo.bat (277, 2023-12-03)
requirements.txt (12, 2023-12-03)
setup.py (595, 2023-12-03)
upload.bat (55, 2023-12-03)
# PyMakeCli
This is made to build C/C++ projects easily using YAML. It is not a replacement for CMake.
Rather it is an automation to be used instead of CMake but if you know CMake then you should use it in conjection.
**Note:** This is still in development and may not work as expected.
## Installation
```bash
pip install pymake-cli
```
## Usage
```bash
pymake-cli --help
```
## Example
To use this you need to create a `.yaml` file in the root of your project.
**hint**: You can also specify the path of the `.yaml` file in each command.
**hint**: The `config_file_path` is optional and will default to `config.yaml` in the current directory.
### Init
```bash
pymake-cli init [-d]
```
### Build
```bash
pymake-cli build [-d] [-s]
```
### Run
```bash
pymake-cli run
```
### Update
This command will update the `.yaml` file with the current config structure.
```bash
pymake-cli update
```
### Options
On each command you can specify the following options:
- ``: The path to the `.yaml` file.
- `-d` or `--debug`: This will print debug information.
The `-s` or `--shell` option allows you to run shell commands as defined in the config file.
### Try it out
You can try it out by cloning this repo and running the following commands:
```bash
# Clone repo
git clone https://github.com/james-garfield/PyMakeCli.git
# Change directory
cd PyMakeCli
# Install package
pip install -e .
# Change into example directory
cd example
# Run commands
pymake-cli build
pymake-cli run
```
### Things I am working on
- [ ] Update command. The current command leaves the new config file disorganized.
- [ ] Add tests.
近期下载者:
相关文件:
收藏者: