From 11f399b603161c96afca07b4400efe0e7b12096e Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 8 Oct 2021 17:57:00 +0100 Subject: [PATCH] try some build changes --- .github/workflows/build.yml | 6 ++++-- raylib/build.py | 7 ++++--- raylib/physac.h | 1 + raylib/raygui.h | 1 + 4 files changed, 10 insertions(+), 5 deletions(-) create mode 120000 raylib/physac.h create mode 120000 raylib/raygui.h diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 733b19e..b676e2e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/raylib/build.py b/raylib/build.py index c37caf2..1ce3149 100644 --- a/raylib/build.py +++ b/raylib/build.py @@ -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) diff --git a/raylib/physac.h b/raylib/physac.h new file mode 120000 index 0000000..56a4454 --- /dev/null +++ b/raylib/physac.h @@ -0,0 +1 @@ +../raylib-c/src/extras/physac.h \ No newline at end of file diff --git a/raylib/raygui.h b/raylib/raygui.h new file mode 120000 index 0000000..563bbc0 --- /dev/null +++ b/raylib/raygui.h @@ -0,0 +1 @@ +../raylib-c/src/extras/raygui.h \ No newline at end of file