build fixes

This commit is contained in:
richard 2021-10-16 20:58:24 +01:00
parent ab38148125
commit 86eecec6b3
2 changed files with 3 additions and 2 deletions

View file

@ -46,7 +46,7 @@ def pre_process_header(filename):
file = open(filename, "r")
filetext = "".join([line for line in file if '#include' not in line])
command = ['gcc', '-CC', '-P', '-undef', '-nostdinc', '-DRL_MATRIX_TYPE',
#'-DRL_QUATERNION_TYPE','-DRL_VECTOR4_TYPE','-DRL_VECTOR3_TYPE','-DRL_VECTOR2_TYPE'
'-DRL_QUATERNION_TYPE','-DRL_VECTOR4_TYPE','-DRL_VECTOR3_TYPE','-DRL_VECTOR2_TYPE'
'-DRLAPI=', '-DPHYSACDEF=', '-DRAYGUIDEF=',
'-dDI', '-E', '-']
filetext2 = subprocess.run(command, text=True, input=filetext, stdout=subprocess.PIPE).stdout
@ -108,7 +108,7 @@ def build_unix():
raise Exception("ERROR: " + raylib_h + " not found. Please install Raylib.")
if not os.path.isfile(rlgl_h):
raise Exception("ERROR: " + raylib_h + " not found. Please install Raylib.")
raise Exception("ERROR: " + rlgl_h + " not found. Please install Raylib.")
#if not os.path.isfile(raymath_h):
# raise Exception("ERROR: " + raylib_h + " not found. Please install Raylib.")

1
raylib/rlgl.h Symbolic link
View file

@ -0,0 +1 @@
../raylib-c/src/rlgl.h