Initial commit from StandardTemplateProject
This commit is contained in:
12
.gitignore
vendored
Normal file
12
.gitignore
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
ViperTemplateProject/App/
|
||||
build/
|
||||
output/
|
||||
*.o
|
||||
*.obj
|
||||
*.exe
|
||||
*.img
|
||||
*.iso
|
||||
__pycache__/
|
||||
.cache/
|
||||
*.pyc
|
||||
|
||||
12
App/main.py
Normal file
12
App/main.py
Normal file
@@ -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
|
||||
28
project.vpj
Normal file
28
project.vpj
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user