update mac to 2.6
This commit is contained in:
parent
92dcc91b82
commit
ba8b1760df
17 changed files with 3178 additions and 2338 deletions
File diff suppressed because it is too large
Load diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,6 +1,7 @@
|
|||
from cffi import FFI
|
||||
import os
|
||||
import platform
|
||||
import sys
|
||||
ffibuilder = FFI()
|
||||
|
||||
|
||||
|
@ -14,7 +15,10 @@ ffibuilder.set_source("_raylib_cffi",
|
|||
)
|
||||
|
||||
# Hack to produce static linked lib using static librarylib.a supplied by us
|
||||
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.cpython-35m-darwin.so"
|
||||
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)
|
||||
|
|
11
raylib/static/build_mac_multi.sh
Executable file
11
raylib/static/build_mac_multi.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
rm *darwin.so
|
||||
pyenv global 3.8.1
|
||||
pip3 install cffi
|
||||
python build_mac.py
|
||||
pyenv global 3.7.5
|
||||
pip3 install cffi
|
||||
python build_mac.py
|
||||
pyenv global 3.6.9
|
||||
pip3 install cffi
|
||||
python build_mac.py
|
Reference in a new issue