mac build
This commit is contained in:
parent
939c26be6f
commit
fd6233e0d1
3 changed files with 3 additions and 11 deletions
|
@ -40,19 +40,13 @@ def build_mac():
|
|||
ffibuilder.set_source("raylib.static._raylib_cffi",
|
||||
"""
|
||||
#include "../../raylib/raylib.h" // the C header of the library, supplied by us here
|
||||
"""
|
||||
""",
|
||||
extra_link_args=['raylib-c/src/libraylib.a', '-framework', 'OpenGL', '-framework', 'Cocoa', '-framework', 'IOKit', '-framework', 'CoreFoundation', '-framework', 'CoreVideo'],
|
||||
)
|
||||
# Hack to produce static linked lib using static librarylib.a supplied by us
|
||||
version = sys.implementation.cache_tag
|
||||
if version == 'cpython-36' or version == 'cpython-37':
|
||||
version += 'm'
|
||||
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"
|
||||
|
||||
if __name__ == "__main__":
|
||||
ffibuilder.compile(verbose=True)
|
||||
if platform.system()=="Darwin":
|
||||
print(command)
|
||||
os.system(command)
|
||||
|
||||
|
||||
def build_rpi_nox():
|
||||
print("BUILDING FOR RASPBERRY PI")
|
||||
|
|
Reference in a new issue