Compare commits

..

No commits in common. "7772ef634668c669addaa439e03ceb874d8f505b" and "e821fbafa3425202b83ff2dbc39963e4fb1a171a" have entirely different histories.

6 changed files with 4 additions and 36 deletions

13
.gitignore vendored
View File

@ -1,13 +0,0 @@
# 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

View File

@ -4,17 +4,8 @@
# 如何安装 # 如何安装
## 从release中安装 用.pth文件自行定位到本项目的文件夹中
```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 >生成一个用于GLFW编程的CMakeLists
```python ```python

BIN
dist/pymake-0.1.0-py3-none-any.whl vendored Normal file

Binary file not shown.

BIN
dist/pymake-0.1.0.tar.gz vendored Normal file

Binary file not shown.

View File

@ -1,9 +0,0 @@
from . import *
(
cmake("3.5")
.project("test")
.file("SRC",glob_recurse,"*.cxx")
.add_executable(var(project_name),var("SRC"))
.write()
)

View File

@ -1,8 +1,7 @@
from typing import * def var(name:"str")->"str":
def var(name:str)->str:
return f"${{{name}}}" return f"${{{name}}}"
def args_to_str(args:list[str])->str: def args_to_str(args:"list[str]")->str:
vars_str = "" vars_str = ""
for i in args: for i in args:
vars_str=f"{vars_str} {i}" vars_str=f"{vars_str} {i}"