commit
7ea1786880
2 changed files with 17 additions and 0 deletions
BIN
raylib/_raylib_cffi.cp37-win_amd64.pyd
Normal file
BIN
raylib/_raylib_cffi.cp37-win_amd64.pyd
Normal file
Binary file not shown.
17
raylib/build_win32.py
Normal file
17
raylib/build_win32.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Windows build assumes raylib, OpenGL32, etc are all already installed as system libraries. We dont distribute them.
|
||||
|
||||
from cffi import FFI
|
||||
|
||||
ffibuilder = FFI()
|
||||
ffibuilder.cdef(open("raylib_modified.h").read().replace('RLAPI ', ''))
|
||||
ffibuilder.set_source("_raylib_cffi",
|
||||
"""
|
||||
#include "raylib.h" // the C header of the library
|
||||
""",
|
||||
extra_link_args=['/NODEFAULTLIB:MSVCRTD'],
|
||||
libraries=['raylib', 'gdi32', 'shell32', 'user32','OpenGL32', 'winmm'],
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
ffibuilder.compile(verbose=True)
|
Reference in a new issue