From d6d0b50e80a528830f5825e81e8397e8fcbad23f Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 2 Jul 2024 13:43:24 +0100 Subject: [PATCH] allow building without glfw headers --- raylib/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/raylib/build.py b/raylib/build.py index be3ac40..36aa112 100644 --- a/raylib/build.py +++ b/raylib/build.py @@ -147,7 +147,6 @@ def build_unix(): """ ffibuilder.cdef(pre_process_header(raylib_h)) - ffibuilder.cdef(pre_process_header(glfw3_h)) ffibuilder.cdef(pre_process_header(rlgl_h)) ffibuilder.cdef(pre_process_header(raymath_h, True)) @@ -155,6 +154,9 @@ def build_unix(): ffibuilder.cdef(pre_process_header(raygui_h)) if os.path.isfile(physac_h): ffibuilder.cdef(pre_process_header(physac_h)) + if os.path.isfile(glfw3_h): + ffibuilder.cdef(pre_process_header(glfw3_h)) + if platform.system() == "Darwin": print("BUILDING FOR MAC")