Build Bullet for Linux ARM (Raspberry Pi)
This commit is contained in:
parent
b1db497a00
commit
88385ba647
22
.travis.yml
22
.travis.yml
@ -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 {
|
||||||
@ -63,6 +66,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) {
|
||||||
def projectPath = project.projectDir.absolutePath
|
def projectPath = project.projectDir.absolutePath
|
||||||
@ -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…
x
Reference in New Issue
Block a user