Skip to content

Commit 128e079

Browse files
committed
Update MacOS build: removed 32 bit support (since deprecated by apple). Update bullet library to the current master branch (needed for compatibility patch with recent clang).
1 parent 663c977 commit 128e079

File tree

4 files changed

+11
-25
lines changed

4 files changed

+11
-25
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ jobs:
114114
strategy:
115115
fail-fast: true
116116
matrix:
117-
os: [ubuntu-18.04,windows-2019,macOS-10.14]
117+
os: [ubuntu-18.04,windows-2019,macOS-latest]
118118
jdk: [8.x.x]
119119
include:
120120
- os: ubuntu-18.04
121121
osName: linux
122122
- os: windows-2019
123123
osName: windows
124-
- os: macOS-10.14
124+
- os: macOS-latest
125125
osName: mac
126126

127127
name: Build natives for ${{ matrix.osName }}
@@ -147,19 +147,7 @@ jobs:
147147
# Install dependencies
148148
if [ "$OS_NAME" = "mac" ];
149149
then
150-
echo "Prepare mac"
151-
# We need this older version to compile for 32bit...
152-
sudo xcode-select -switch /Applications/Xcode_9.4.1.app
153-
154-
# ghetto fix for expired certificate (still safer than -allowUntrusted)
155-
cdate=`date +%m%d%H%M%y`
156-
sudo date -u 1020000019
157-
158-
159-
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
160-
161-
# restore real date
162-
sudo date -u "$cdate"
150+
echo "Prepare mac"
163151
164152
elif [ "$OS_NAME" = "linux" ];
165153
then
@@ -191,15 +179,15 @@ jobs:
191179
strategy:
192180
fail-fast: true
193181
matrix:
194-
os: [ubuntu-18.04,windows-2019,macOS-10.14]
182+
os: [ubuntu-18.04,windows-2019,macOS-latest]
195183
jdk: [8.x.x,11.x.x]
196184
include:
197185
- os: ubuntu-18.04
198186
osName: linux
199187
deploy: true
200188
- os: windows-2019
201189
osName: windows
202-
- os: macOS-10.14
190+
- os: macOS-latest
203191
osName: mac
204192
- jdk: 11.x.x
205193
deploy: false

gradle.properties

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@ buildJavaDoc = true
1414
buildNativeProjects = false
1515
buildAndroidExamples = false
1616

17-
buildForPlatforms = Linux64,Linux32,Windows64,Windows32,Mac64,Mac32
17+
buildForPlatforms = Linux64,Linux32,Windows64,Windows32,Mac64
1818
# Forcefully ignore prebuilt libraries
1919
skipPrebuildLibraries=false
2020
# Path to android NDK for building native libraries
2121
#ndkPath=/Users/normenhansen/Documents/Code-Import/android-ndk-r7
2222
ndkPath = /opt/android-ndk-r16b
2323

2424
# Path for downloading native Bullet
25-
bulletUrl = https://github.com/bulletphysics/bullet3/archive/2.87.zip
26-
bulletFolder = bullet3-2.87
25+
# 2.88+
26+
bulletUrl = https://github.com/bulletphysics/bullet3/archive/28039903b14c2aec28beff5b3609c9308b17e76a.zip
27+
bulletFolder = bullet3-28039903b14c2aec28beff5b3609c9308b17e76a
2728
bulletZipFile = bullet3.zip
2829

2930
# POM settings

jme3-bullet-native-android/src/native/android/Android.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ FILE_LIST := $(wildcard $(LOCAL_PATH)/*.cpp)
7171
FILE_LIST += $(wildcard $(LOCAL_PATH)/**/*.cpp)
7272
FILE_LIST += $(wildcard $(LOCAL_PATH)/**/**/*.cpp)
7373
FILE_LIST := $(filter-out $(wildcard $(LOCAL_PATH)/Bullet3OpenCL/**/*.cpp), $(FILE_LIST))
74+
FILE_LIST := $(filter-out $(wildcard $(LOCAL_PATH)/*All.cpp), $(FILE_LIST))
7475
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
7576

7677
include $(BUILD_SHARED_LIBRARY)

jme3-bullet-native/build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ model {
3737
"Windows64",
3838
"Windows32",
3939
"Mac64",
40-
"Mac32",
4140
"Linux64",
4241
"Linux32",
4342
"LinuxArm",
@@ -71,6 +70,7 @@ model {
7170
exclude 'Bullet3OpenCL/**'
7271
exclude 'Bullet3Serialize/**'
7372
include '**/*.cpp'
73+
exclude '**/*All.cpp'
7474
}
7575
exportedHeaders {
7676
srcDir 'src/native/cpp'
@@ -197,10 +197,6 @@ model {
197197
architecture "x86_64"
198198
operatingSystem "windows"
199199
}
200-
Mac32 {
201-
architecture "x86"
202-
operatingSystem "osx"
203-
}
204200
Mac64 {
205201
architecture "x86_64"
206202
operatingSystem "osx"

0 commit comments

Comments
 (0)