-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: exclude bindings that were removed in 3.4.0
- Loading branch information
Showing
1 changed file
with
29 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
import {Binding, BuildBindings, NATIVE_ALL, Version} from '../types'; | ||
import { Binding, BuildBindings, NATIVE_ALL, Version } from '../types'; | ||
|
||
export default (prev: BuildBindings): BuildBindings => ({ | ||
...prev, | ||
version: Version.LWJGL340, | ||
alias: Version.Nightly, | ||
byId: { | ||
...prev.byId, | ||
[Binding.SDL]: { | ||
id: Binding.SDL, | ||
title: 'SDL (Simple DirectMedia Layer)', | ||
description: 'A cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL/Direct3D/Metal/Vulkan.', | ||
natives: NATIVE_ALL, | ||
website: 'https://www.libsdl.org/', | ||
export default (prev: BuildBindings): BuildBindings => { | ||
// These bindings where removed in 3.4.0 | ||
const { | ||
[Binding.CUDA]: _0, | ||
[Binding.LIBDIVIDE]: _1, | ||
[Binding.MEOW]: _2, | ||
[Binding.OPENVR]: _3, | ||
[Binding.OVR]: _4, | ||
[Binding.SSE]: _5, | ||
[Binding.TOOTLE]: _6, | ||
...bindings340 | ||
} = prev.byId; | ||
return { | ||
...prev, | ||
version: Version.LWJGL340, | ||
alias: Version.Nightly, | ||
byId: { | ||
...bindings340, | ||
[Binding.SDL]: { | ||
id: Binding.SDL, | ||
title: 'SDL (Simple DirectMedia Layer)', | ||
description: | ||
'A cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL/Direct3D/Metal/Vulkan.', | ||
natives: NATIVE_ALL, | ||
website: 'https://www.libsdl.org/', | ||
}, | ||
}, | ||
}, | ||
}); | ||
}; | ||
}; |