allow building without glfw headers

This commit is contained in:
Richard Smith 2024-07-02 13:43:24 +01:00
parent 43630d8b5a
commit d6d0b50e80

View file

@ -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")