Build Bullet for Linux ARM (Raspberry Pi)

fix-openal-soft-deadlink
MeFisto94 5 years ago committed by Riccardo Balbo
parent b1db497a00
commit 88385ba647
  1. 22
      .travis.yml
  2. 44
      jme3-bullet-native/build.gradle

@ -6,20 +6,26 @@ branches:
- /^v3.3.*$/ - /^v3.3.*$/
- v3.2 - v3.2
- /^v3.2.*$/ - /^v3.2.*$/
- feature/bullet-arm
matrix: matrix:
include: include:
- os: linux - os: linux
dist: trusty
jdk: oraclejdk8 jdk: oraclejdk8
dist: precise
env: UPLOAD=true env: UPLOAD=true
- os: linux - os: linux
jdk: openjdk11 jdk: openjdk11
dist: xenial dist: bionic
- os: linux env: UPLOAD=true UPLOAD_NATIVE=true
dist: xenial sudo: true
jdk: openjdk8 addons:
env: UPLOAD_NATIVE=true apt:
packages:
- gcc-multilib
- g++-multilib
before_install:
- sudo apt update && sudo apt install -fy gcc-7-arm-linux-gnueabihf gcc-7-arm-linux-gnueabi gcc-8-aarch64-linux-gnu g++-7-arm-linux-gnueabihf g++-7-arm-linux-gnueabi g++-8-aarch64-linux-gnu
- os: osx - os: osx
osx_image: xcode9.3 osx_image: xcode9.3
env: UPLOAD_NATIVE=true env: UPLOAD_NATIVE=true
@ -42,10 +48,6 @@ addons:
hosts: hosts:
- travisci - travisci
hostname: travisci hostname: travisci
apt:
packages:
- gcc-multilib
- g++-multilib
before_install: before_install:
- '[ -n "$UPLOAD" ] && git fetch --unshallow || :' - '[ -n "$UPLOAD" ] && git fetch --unshallow || :'

@ -35,6 +35,9 @@ model {
targetPlatform 'Mac32' targetPlatform 'Mac32'
targetPlatform 'Linux64' targetPlatform 'Linux64'
targetPlatform 'Linux32' targetPlatform 'Linux32'
targetPlatform 'LinuxArm'
targetPlatform 'LinuxArmHF'
targetPlatform 'LinuxArm64'
sources { sources {
cpp { cpp {
@ -62,6 +65,35 @@ model {
} }
} }
} }
toolChains {
gccArm(Gcc) {
// Fun Fact: Gradle uses gcc as linker frontend, so we don't specify ld directly here
target("LinuxArm"){
path "/usr/bin"
cCompiler.executable = "arm-linux-gnueabi-gcc-7"
cppCompiler.executable = "arm-linux-gnueabi-g++-7"
linker.executable = "arm-linux-gnueabi-gcc-7"
assembler.executable = "arm-linux-gnueabi-as"
}
target("LinuxArmHF"){
path "/usr/bin"
cCompiler.executable = "arm-linux-gnueabihf-gcc-7"
cppCompiler.executable = "arm-linux-gnueabihf-g++-7"
linker.executable = "arm-linux-gnueabihf-gcc-7"
assembler.executable = "arm-linux-gnueabihf-as"
}
target("LinuxArm64"){
path "/usr/bin"
cCompiler.executable = "aarch64-linux-gnu-gcc-8"
cppCompiler.executable = "aarch64-linux-gnu-g++-8"
linker.executable = "aarch64-linux-gnu-gcc-8"
assembler.executable = "aarch64-linux-gnu-as"
}
}
}
binaries { binaries {
withType(SharedLibraryBinarySpec) { withType(SharedLibraryBinarySpec) {
@ -188,6 +220,18 @@ model {
architecture "x86_64" architecture "x86_64"
operatingSystem "linux" operatingSystem "linux"
} }
LinuxArm {
architecture "arm"
operatingSystem "linux"
}
LinuxArmHF {
architecture "armhf"
operatingSystem "linux"
}
LinuxArm64 {
architecture "aarch64"
operatingSystem "linux"
}
} }
} }

Loading…
Cancel
Save