Skip to content

Commit fd6233e

Browse files
mac build
1 parent 939c26b commit fd6233e

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

raylib.lib

-5.43 MB
Binary file not shown.

raylib/static/build.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,13 @@ def build_mac():
4040
ffibuilder.set_source("raylib.static._raylib_cffi",
4141
"""
4242
#include "../../raylib/raylib.h" // the C header of the library, supplied by us here
43-
"""
43+
""",
44+
extra_link_args=['raylib-c/src/libraylib.a', '-framework', 'OpenGL', '-framework', 'Cocoa', '-framework', 'IOKit', '-framework', 'CoreFoundation', '-framework', 'CoreVideo'],
4445
)
45-
# Hack to produce static linked lib using static librarylib.a supplied by us
46-
version = sys.implementation.cache_tag
47-
if version == 'cpython-36' or version == 'cpython-37':
48-
version += 'm'
49-
command = "clang -bundle -undefined dynamic_lookup ./_raylib_cffi.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib ../../libraylib_mac.a -F/System/Library/Frameworks -framework OpenGL -framework Cocoa -framework IOKit -framework CoreFoundation -framework CoreVideo -o ./_raylib_cffi."+version+"-darwin.so"
5046

5147
if __name__ == "__main__":
5248
ffibuilder.compile(verbose=True)
53-
if platform.system()=="Darwin":
54-
print(command)
55-
os.system(command)
49+
5650

5751
def build_rpi_nox():
5852
print("BUILDING FOR RASPBERRY PI")

windows_is_shit.bat

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)