Skip to content

Commit d6d0b50

Browse files
allow building without glfw headers
1 parent 43630d8 commit d6d0b50

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

raylib/build.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,16 @@ def build_unix():
147147
"""
148148

149149
ffibuilder.cdef(pre_process_header(raylib_h))
150-
ffibuilder.cdef(pre_process_header(glfw3_h))
151150
ffibuilder.cdef(pre_process_header(rlgl_h))
152151
ffibuilder.cdef(pre_process_header(raymath_h, True))
153152

154153
if os.path.isfile(raygui_h):
155154
ffibuilder.cdef(pre_process_header(raygui_h))
156155
if os.path.isfile(physac_h):
157156
ffibuilder.cdef(pre_process_header(physac_h))
157+
if os.path.isfile(glfw3_h):
158+
ffibuilder.cdef(pre_process_header(glfw3_h))
159+
158160

159161
if platform.system() == "Darwin":
160162
print("BUILDING FOR MAC")

0 commit comments

Comments
 (0)