Compare commits
No commits in common. "7772ef634668c669addaa439e03ceb874d8f505b" and "e821fbafa3425202b83ff2dbc39963e4fb1a171a" have entirely different histories.
7772ef6346
...
e821fbafa3
13
.gitignore
vendored
13
.gitignore
vendored
@ -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
|
13
README.md
13
README.md
@ -4,17 +4,8 @@
|
||||
|
||||
# 如何安装
|
||||
|
||||
## 从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
|
||||
```
|
||||
用.pth文件自行定位到本项目的文件夹中
|
||||
|
||||
# 如何使用
|
||||
>生成一个用于GLFW编程的CMakeLists
|
||||
```python
|
||||
|
BIN
dist/pymake-0.1.0-py3-none-any.whl
vendored
Normal file
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
BIN
dist/pymake-0.1.0.tar.gz
vendored
Normal file
Binary file not shown.
@ -1,9 +0,0 @@
|
||||
from . import *
|
||||
|
||||
(
|
||||
cmake("3.5")
|
||||
.project("test")
|
||||
.file("SRC",glob_recurse,"*.cxx")
|
||||
.add_executable(var(project_name),var("SRC"))
|
||||
.write()
|
||||
)
|
@ -1,8 +1,7 @@
|
||||
from typing import *
|
||||
def var(name:str)->str:
|
||||
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