Skip to content

Commit 11f399b

Browse files
try some build changes
1 parent 5f28d01 commit 11f399b

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ jobs:
3838
- name: Build raylib
3939
run: |
4040
cd raylib-c
41-
cd src
41+
mkdir build
42+
cd build
43+
cmake -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
4244
make -j2
43-
sudo cp libraylib.a /usr/local/lib/libraylib.a
45+
sudo make install
4446
- name: Build raylib-python-cffi
4547
run: |
4648
python -m pip install --upgrade pip

raylib/build.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ def build_linux():
3434
#include "raylib.h"
3535
#define RAYGUI_IMPLEMENTATION
3636
#define RAYGUI_SUPPORT_RICONS
37-
#include "../raylib-c/src/extras/raygui.h"
37+
#include "raygui.h"
3838
#define PHYSAC_IMPLEMENTATION
39-
#include "../raylib-c/src/extras/physac.h"
39+
#include "physac.h"
4040
""",
4141
extra_link_args=['/usr/local/lib/libraylib.a','-lm', '-lpthread', '-lGLU', '-lGL', '-lrt', '-lm', '-ldl', '-lX11', '-lpthread'],
42-
libraries=['GL','m','pthread', 'dl', 'rt', 'X11']
42+
libraries=['GL','m','pthread', 'dl', 'rt', 'X11'],
43+
include_dirs=['raylib']
4344
)
4445
if __name__ == "__main__":
4546
ffibuilder.compile(verbose=True)

raylib/physac.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../raylib-c/src/extras/physac.h

raylib/raygui.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../raylib-c/src/extras/raygui.h

0 commit comments

Comments
 (0)