try some build changes
This commit is contained in:
parent
5f28d0101a
commit
11f399b603
4 changed files with 10 additions and 5 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -38,9 +38,11 @@ jobs:
|
|||
- name: Build raylib
|
||||
run: |
|
||||
cd raylib-c
|
||||
cd src
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
|
||||
make -j2
|
||||
sudo cp libraylib.a /usr/local/lib/libraylib.a
|
||||
sudo make install
|
||||
- name: Build raylib-python-cffi
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
|
|
|
@ -34,12 +34,13 @@ def build_linux():
|
|||
#include "raylib.h"
|
||||
#define RAYGUI_IMPLEMENTATION
|
||||
#define RAYGUI_SUPPORT_RICONS
|
||||
#include "../raylib-c/src/extras/raygui.h"
|
||||
#include "raygui.h"
|
||||
#define PHYSAC_IMPLEMENTATION
|
||||
#include "../raylib-c/src/extras/physac.h"
|
||||
#include "physac.h"
|
||||
""",
|
||||
extra_link_args=['/usr/local/lib/libraylib.a','-lm', '-lpthread', '-lGLU', '-lGL', '-lrt', '-lm', '-ldl', '-lX11', '-lpthread'],
|
||||
libraries=['GL','m','pthread', 'dl', 'rt', 'X11']
|
||||
libraries=['GL','m','pthread', 'dl', 'rt', 'X11'],
|
||||
include_dirs=['raylib']
|
||||
)
|
||||
if __name__ == "__main__":
|
||||
ffibuilder.compile(verbose=True)
|
||||
|
|
1
raylib/physac.h
Symbolic link
1
raylib/physac.h
Symbolic link
|
@ -0,0 +1 @@
|
|||
../raylib-c/src/extras/physac.h
|
1
raylib/raygui.h
Symbolic link
1
raylib/raygui.h
Symbolic link
|
@ -0,0 +1 @@
|
|||
../raylib-c/src/extras/raygui.h
|
Reference in a new issue