updated linux build to 2.6

This commit is contained in:
Electron Studio 2020-02-14 17:33:37 +00:00
parent ba8b1760df
commit d0ef18b489
17 changed files with 15 additions and 3 deletions

Binary file not shown.

Binary file not shown.

View file

@ -538,7 +538,7 @@ static void (*_cffi_call_python_org)(struct _cffi_externpy_s *, char *);
/************************************************************/
#include "../raylib.h" // the C header of the library, supplied by us here
#include "../raylib.h" // the C header, installed in the system include dir we assume
/************************************************************/

Binary file not shown.

View file

@ -1,4 +1,5 @@
# Linux build assumes raylib, GL, etc are all already installed as system libraries. We dont distribute them.
# Raylib must be installed the compiled with: cmake -DWITH_PIC=ON -DSHARED=ON -DSTATIC=ON ..
from cffi import FFI
import os
@ -11,9 +12,9 @@ ffibuilder.cdef(open("../raylib_modified.h").read().replace('RLAPI ', ''))
ffibuilder.set_source("_raylib_cffi",
"""
#include "../raylib.h" // the C header, installed in the system include dir we assume
#include "../raylib.h"
""",
extra_link_args=['../../linux_libs/core.o', '../../linux_libs/models.o', '../../linux_libs/raudio.o', '../../linux_libs/rglfw.o','../../linux_libs/shapes.o','../../linux_libs/text.o','../../linux_libs/textures.o','../../linux_libs/utils.o','-lm', '-lpthread', '-lGLU', '-lGL', '-lrt', '-lm', '-ldl', '-lX11', '-lpthread'],
extra_link_args=['/usr/local/lib/libraylib.a','-lm', '-lpthread', '-lGLU', '-lGL', '-lrt', '-lm', '-ldl', '-lX11', '-lpthread'],
libraries=['GL','m','pthread', 'dl', 'rt', 'X11']
)

View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
rm *linux-gnu.so
pyenv global 3.8.1
pip3 install cffi
python build_linux.py
pyenv global 3.7.6
pip3 install cffi
python build_linux.py
pyenv global 3.6.10
pip3 install cffi
python build_linux.py