Compare commits
3 Commits
e821fbafa3
...
7772ef6346
Author | SHA1 | Date | |
---|---|---|---|
7772ef6346 | |||
9fbb0b8d29 | |||
8d97e53419 |
13
.gitignore
vendored
Normal file
13
.gitignore
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
# Ignore the 'dist' directory at the root of the project
|
||||
/dist/
|
||||
|
||||
# Ignore all __pycache__ directories in the project
|
||||
__pycache__/
|
||||
|
||||
/.vscode
|
||||
|
||||
/CMakeLists.txt
|
||||
|
||||
/main.cxx
|
||||
|
||||
/build
|
13
README.md
13
README.md
@ -4,8 +4,17 @@
|
||||
|
||||
# 如何安装
|
||||
|
||||
用.pth文件自行定位到本项目的文件夹中
|
||||
|
||||
## 从release中安装
|
||||
```bash
|
||||
pip install <file name>
|
||||
```
|
||||
## 自行编译
|
||||
```bash
|
||||
pip install poetry
|
||||
poetry install
|
||||
poetry build
|
||||
pip install ./dist/pymake-0.1.0-py3-none-any.whl
|
||||
```
|
||||
# 如何使用
|
||||
>生成一个用于GLFW编程的CMakeLists
|
||||
```python
|
||||
|
BIN
dist/pymake-0.1.0-py3-none-any.whl
vendored
BIN
dist/pymake-0.1.0-py3-none-any.whl
vendored
Binary file not shown.
BIN
dist/pymake-0.1.0.tar.gz
vendored
BIN
dist/pymake-0.1.0.tar.gz
vendored
Binary file not shown.
9
pymake/__main__.py
Normal file
9
pymake/__main__.py
Normal file
@ -0,0 +1,9 @@
|
||||
from . import *
|
||||
|
||||
(
|
||||
cmake("3.5")
|
||||
.project("test")
|
||||
.file("SRC",glob_recurse,"*.cxx")
|
||||
.add_executable(var(project_name),var("SRC"))
|
||||
.write()
|
||||
)
|
@ -1,7 +1,8 @@
|
||||
def var(name:"str")->"str":
|
||||
from typing import *
|
||||
def var(name:str)->str:
|
||||
return f"${{{name}}}"
|
||||
|
||||
def args_to_str(args:"list[str]")->str:
|
||||
def args_to_str(args:list[str])->str:
|
||||
vars_str = ""
|
||||
for i in args:
|
||||
vars_str=f"{vars_str} {i}"
|
||||
|
Loading…
Reference in New Issue
Block a user