Skip to content

Commit

Permalink
cirrus ci macos arm64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
electronstudio committed Nov 5, 2023
1 parent df1a4e4 commit dbd330f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ task:
RAYLIB_PLATFORM: macosx-arm64
setup_script:
- brew update
- brew uninstall temurin8
- brew install java11
- sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk
- sudo ln -sfn /opt/homebrew/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk
- export CPPFLAGS="-I/opt/homebrew/opt/openjdk@11/include"
build_raylib_script:
- git submodule update --init --recursive
- cd raylib
Expand Down
1 change: 1 addition & 0 deletions build-native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
echo "STEP 1 - move compilation results from gen folder to natives folder"
rm -rf natives
mkdir -p natives/com/raylib/$RAYLIB_PLATFORM
ls gen/com/raylib
mv -f gen/com/raylib/$RAYLIB_PLATFORM/* natives/com/raylib/$RAYLIB_PLATFORM/

echo "STEP 2 - native jar archive"
Expand Down
9 changes: 8 additions & 1 deletion src/com/raylib/RaylibConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@
include = {"raylib.h", "rlgl.h", "raymath.h", "physac.h", "raygui.h"},
compiler = {"!default","foo"}
),

@Platform(
value = {"macosx-arm64"},
//linkpath = {"."},
link = {"raylib"},
//includepath = {"/Users/richard/IdeaProjects/jaylib"},
include = {"raylib.h", "rlgl.h", "raymath.h", "physac.h", "raygui.h"},
compiler = {"!default","foo"}
),
@Platform(
value = {"linux-x86_64"},
linkpath = {"/usr/lib/x86_64-linux-gnu"}, // "/home/richard/jaylib/lib/linux"
Expand Down

0 comments on commit dbd330f

Please sign in to comment.