Skip to content

Commit fe86505

Browse files
committed
Merge branch 'tomi/wip/rebase_3.4.1' into wip/rebase_3.4.1
2 parents 2fddc24 + e59d29e commit fe86505

6 files changed

Lines changed: 26 additions & 45 deletions

File tree

.github/workflows/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ dependencyResolutionManagement {
1313
maven { url "https://jitpack.io" }
1414
}
1515
}
16-
rootProject.name = 'lwjgl3-natives'
16+
rootProject.name = 'lwjgl-3.4.1-natives'

.github/workflows/build-android.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ jobs:
3232
if: ${{matrix.arch == 'arm64'}} # Only upload this once
3333
uses: actions/upload-artifact@v4
3434
with:
35-
name: lwjgl3-android-modules
35+
name: lwjgl-3.4.1-android-modules
3636
path: bin/RELEASE
3737

3838
- name: Upload native build output
3939
uses: actions/upload-artifact@v4
4040
with:
41-
name: lwjgl3-android-natives-${{matrix.arch}}
41+
name: lwjgl-3.4.1-android-natives-${{matrix.arch}}
4242
path: bin/out
4343
aar:
4444
needs: build
@@ -53,29 +53,29 @@ jobs:
5353
- name: Download built native artifacts (arm64)
5454
uses: actions/download-artifact@v8
5555
with:
56-
name: lwjgl3-android-natives-arm64
57-
path: .github/workflows/android/jniLibs/arm64-v8a
56+
name: lwjgl-3.4.1-android-natives-arm64
57+
path: .github/workflows/android/assets/components/lwjgl-3.4.1-natives/arm64-v8a
5858
- name: Download built native artifacts (arm32)
5959
uses: actions/download-artifact@v8
6060
with:
61-
name: lwjgl3-android-natives-arm32
62-
path: .github/workflows/android/jniLibs/armeabi-v7a
61+
name: lwjgl-3.4.1-android-natives-arm32
62+
path: .github/workflows/android/assets/components/lwjgl-3.4.1-natives/armeabi-v7a
6363
- name: Download built native artifacts (x64)
6464
uses: actions/download-artifact@v8
6565
with:
66-
name: lwjgl3-android-natives-x64
67-
path: .github/workflows/android/jniLibs/x86_64
66+
name: lwjgl-3.4.1-android-natives-x64
67+
path: .github/workflows/android/assets/components/lwjgl-3.4.1-natives/x86_64
6868
- name: Download built native artifacts (x86)
6969
uses: actions/download-artifact@v8
7070
with:
71-
name: lwjgl3-android-natives-x86
72-
path: .github/workflows/android/jniLibs/x86
71+
name: lwjgl-3.4.1-android-natives-x86
72+
path: .github/workflows/android/assets/components/lwjgl-3.4.1-natives/x86
7373
- name: Compile into one AAR
7474
run: |
7575
cd $GITHUB_WORKSPACE/.github/workflows/android
7676
gradle assembleRelease
7777
- name: Upload AAR
7878
uses: actions/upload-artifact@v4
7979
with:
80-
name: lwjgl3-android-natives-aar
81-
path: .github/workflows/android/build/outputs/aar/lwjgl3-natives-release.aar
80+
name: lwjgl-3.4.1-android-natives-aar
81+
path: .github/workflows/android/build/outputs/aar/lwjgl-3.4.1-natives-release.aar

build.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,8 @@
16051605

16061606
<release-module name="core" native-library="lwjgl" title="Core"/>
16071607

1608-
<sequential if:set="jdk25">
1608+
<sequential if:set="dontRunThisBecauseItsNotUsed">
1609+
<!-- <sequential if:set="jdk25"> -->
16091610
<!-- Generate module-info override for JDK 25 without the FFM backend -->
16101611
<java
16111612
classname="org.lwjgl.system.ffm.FFM"

ci_build_android.bash

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ yes | ant -Dplatform.linux=true \
9898
-Dbinding.harfbuzz=false \
9999
-Dbinding.hwloc=false \
100100
-Dbinding.jawt=false \
101-
-Dbinding.jemalloc=true \
101+
-Dbinding.jemalloc=false \
102102
-Dbinding.ktx=false \
103103
-Dbinding.libdivide=false \
104104
-Dbinding.llvm=false \
@@ -122,15 +122,16 @@ yes | ant -Dplatform.linux=true \
122122
-Dbinding.sse=false \
123123
-Dbinding.spng=false \
124124
-Dbinding.tinyexr=false \
125+
-Dbinding.tinyfd=true \
125126
-Dbinding.tootle=false \
126127
-Dbinding.xxhash=false \
127128
-Dbinding.yoga=false \
128129
-Dbinding.zstd=false \
129-
-Dbinding.shaderc=false \
130+
-Dbinding.shaderc=true \
130131
-Dbinding.sdl=false \
131-
-Dbinding.vulkan=false \
132-
-Dbinding.vma=false \
133-
-Dbinding.spvc=false \
132+
-Dbinding.vulkan=true \
133+
-Dbinding.vma=true \
134+
-Dbinding.spvc=true \
134135
-Dbuild.type=release/3.4.1 \
135136
-Djavadoc.skip=true \
136137
-Dnashorn.args="--no-deprecation-warning" \

ci_build_ios.bash

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,14 @@ yes | ant -Dplatform.macos=true \
7777
-Dbinding.remotery=false \
7878
-Dbinding.renderdoc=false \
7979
-Dbinding.rpmalloc=false \
80-
-Dbinding.spvc=false \
80+
-Dbinding.vulkan=true \
81+
-Dbinding.vma=true \
82+
-Dbinding.spvc=true \
83+
-Dbinding.shaderc=true \
8184
-Dbinding.sse=false \
8285
-Dbinding.spng=false \
8386
-Dbinding.tinyexr=false \
87+
-Dbinding.tinyfd=true \
8488
-Dbinding.tootle=false \
8589
-Dbinding.xxhash=false \
8690
-Dbinding.yoga=false \

modules/lwjgl/core/src/main/java/org/lwjgl/system/MemoryUtil.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -403,14 +403,6 @@ public static void memFree(@Nullable CustomBuffer<?> ptr) {
403403
}
404404
}
405405

406-
// from LWJGL 3.2.2
407-
/** {@code PointerBuffer} version of {@link #memFree}. */
408-
public static void memFree(@Nullable PointerBuffer ptr) {
409-
if (ptr != null) {
410-
nmemFree(ptr.address);
411-
}
412-
}
413-
414406
// --- [ memCalloc ] ---
415407

416408
/** Unsafe version of {@link #memCalloc}. May return {@link #NULL} if {@code num} or {@code size} are zero or the allocation failed. */
@@ -2434,23 +2426,6 @@ public static void memSet(long ptr, int value, long bytes) {
24342426
memset(ptr, value, bytes);
24352427
}
24362428

2437-
// Bit from a where mask bit is 0, bit from b where mask bit is 1.
2438-
private static long merge(long a, long b, long mask) {
2439-
return a ^ ((a ^ b) & mask);
2440-
}
2441-
2442-
// from LWJGL 3.1.2
2443-
/**
2444-
* Sets all bytes in a specified block of memory to a copy of another block.
2445-
*
2446-
* @param src the source memory address
2447-
* @param dst the destination memory address
2448-
* @param bytes the number of bytes to copy
2449-
*/
2450-
public static void memCopy(long src, long dst, int bytes) {
2451-
memCopy(src, dst, (long)bytes);
2452-
}
2453-
24542429
/**
24552430
* Sets all bytes in a specified block of memory to a copy of another block.
24562431
*

0 commit comments

Comments
 (0)