更新构建脚本

This commit is contained in:
XIAOYI12 2024-09-01 14:59:32 +08:00
parent fcecb41165
commit fb7818c44f
1 changed files with 8 additions and 31 deletions

View File

@ -1,19 +1,6 @@
import os
import sys
def check_os():
if sys.platform.startswith('darwin'):
return "Mac OS X"
elif sys.platform.startswith('win'):
return "Windows"
elif sys.platform.startswith('linux'):
return "Linux"
else:
return "Unknown"
if check_os() == "Windows":
gcc = '/i686_elf_tools/bin/i686-elf-gcc.exe -w -std=gnu99 -I include/ -std=gnu99 -ffreestanding -c -Wincompatible-pointer-types '
asm = '/i686_elf_tools/bin/i686-elf-as.exe'
nasm = "nasm -f elf32"
@ -22,16 +9,6 @@ if check_os() == "Windows":
out = "target"
dir_ = "\\"
src = "src\\"
elif check_os() == "Linux":
gcc = 'gcc.exe -w -std=gnu99 -I include/ -std=gnu99 -ffreestanding -c -Wincompatible-pointer-types '
asm = 'gcc.exe'
nasm = "nasm -f elf32"
ld = 'g++.exe'
cd = os.getcwd() # 获取当前执行目录 '\mnt\d\CrashPowerDOS-main\'
out = "target"
dir_ = "/"
src = "./src/"
def clean():
print("Clean target folder")