Difficult-Rocket/try/c/dll_builder.py
shenjack 2bc9da9408 update pyglet
fix fpslogger gone bug
start using \viztracer/

modfied git ignore

啊啊啊
2022-06-20 21:12:13 +08:00

21 lines
628 B
Python

# -------------------------------
# Difficult Rocket
# Copyright © 2021-2022 by shenjackyuanjie
# All rights reserved
# -------------------------------
import os
import sys
import getopt
# input_args = sys.argv
# print(input_args)
filename = "./data_types.c"
dllname = "./data_types.dll"
python_include_path = "C:/Users/shenjack.SHENJACK-5600X/AppData/Local/Programs/Python/Python38/include/"
os.system("gcc -O3 -I {} -shared {} -o {}".format(python_include_path, filename, dllname))
# gcc -I C:/Users/shenjack.SHENJACK-5600X/AppData/Local/Programs/Python/Python38/include/ -shared .\data_types.c -o .\data_types.dll