From 86eecec6b313ba97776c137dab3766a96d9a8ae1 Mon Sep 17 00:00:00 2001 From: richard Date: Sat, 16 Oct 2021 20:58:24 +0100 Subject: [PATCH] build fixes --- raylib/build.py | 4 ++-- raylib/rlgl.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 120000 raylib/rlgl.h diff --git a/raylib/build.py b/raylib/build.py index cdf917f..36668c7 100644 --- a/raylib/build.py +++ b/raylib/build.py @@ -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.") diff --git a/raylib/rlgl.h b/raylib/rlgl.h new file mode 120000 index 0000000..5017870 --- /dev/null +++ b/raylib/rlgl.h @@ -0,0 +1 @@ +../raylib-c/src/rlgl.h \ No newline at end of file