From 67f345a1941494dbe058c3eea0a344fd578d696c Mon Sep 17 00:00:00 2001 From: Viper Date: Sun, 19 Jul 2026 11:58:38 +0800 Subject: [PATCH] Initial commit from StandardTemplateProject --- .gitignore | 12 ++++++++++++ App/main.py | 12 ++++++++++++ project.vpj | 28 ++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 .gitignore create mode 100644 App/main.py create mode 100644 project.vpj diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f87bfa9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +ViperTemplateProject/App/ +build/ +output/ +*.o +*.obj +*.exe +*.img +*.iso +__pycache__/ +.cache/ +*.pyc + diff --git a/App/main.py b/App/main.py new file mode 100644 index 0000000..0c59fe0 --- /dev/null +++ b/App/main.py @@ -0,0 +1,12 @@ +import w32.win32console as w32cmd +import t, c + + +pagecode: t.CDefine = 65001 + +@t.CExport +def main() -> int: + w32cmd.SetConsoleOutputCP(pagecode) + w32cmd.SetConsoleCP(pagecode) + print("你好,世界") + return 0 \ No newline at end of file diff --git a/project.vpj b/project.vpj new file mode 100644 index 0000000..307b7f9 --- /dev/null +++ b/project.vpj @@ -0,0 +1,28 @@ +{ + "name": "Standard Template Project", + "version": "1.0.0", + "source_dir": "./App", + "temp_dir": "./temp", + "output_dir": "./output", + "compiler": { + "cmd": "llc", + "flags": ["-filetype=obj", "-relocation-model=pic"] + }, + "linker": { + "cmd": "clang++", + "flags": ["-lmsvcrt", "-lucrt", "-lpthread", "-lmingwex", "-lkernel32", "-Wl,--allow-multiple-definition"], + "output": "app.exe" + }, + "includes": [ + "../includes" + ], + "target": { + "triple": "x86_64-pc-windows-gnu", + "datalayout": "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" + }, + "options": { + "slice_level": 3, + "target": "llvm", + "strict_mode": true + } +}