Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb43c9aad8 | ||
|
|
9256c513da | ||
|
|
218a1764bc | ||
|
|
ea9ca614e9 | ||
|
|
dd9e04f636 | ||
|
|
f37ee878e1 | ||
|
|
bd0a4294e8 | ||
|
|
9934566414 |
Generated
+181
-184
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -4,7 +4,7 @@ description = "An emulator for the Virtual Boy."
|
||||
repository = "https://git.virtual-boy.com/PVB/lemur"
|
||||
publish = false
|
||||
license = "MIT"
|
||||
version = "0.12.1"
|
||||
version = "0.12.3"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
|
||||
+11
-11
@@ -13,12 +13,12 @@ COPY install-llvm.sh .
|
||||
RUN apt-get update && \
|
||||
./install-llvm.sh && \
|
||||
apt-get install -y bash bzip2 git make patch xz-utils && \
|
||||
ln -s $(which clang-21) /usr/bin/clang && \
|
||||
ln -s $(which clang++-21) /usr/bin/clang++ && \
|
||||
ln -s $(which ld64.lld-21) /usr/bin/ld64.lld && \
|
||||
ln -s $(which clang-22) /usr/bin/clang && \
|
||||
ln -s $(which clang++-22) /usr/bin/clang++ && \
|
||||
ln -s $(which ld64.lld-22) /usr/bin/ld64.lld && \
|
||||
SDK_VERSION=14.5 UNATTENDED=1 ENABLE_COMPILER_RT_INSTALL=1 TARGET_DIR=/osxcross ./build.sh
|
||||
|
||||
FROM rust:1.94-bookworm
|
||||
FROM rust:1.95-bookworm
|
||||
ADD --chmod=644 "https://apt.llvm.org/llvm-snapshot.gpg.key" /etc/apt/trusted.gpg.d/apt.llvm.org.asc
|
||||
COPY llvm.sources /etc/apt/sources.list.d/llvm.sources
|
||||
COPY install-llvm.sh .
|
||||
@@ -31,13 +31,13 @@ RUN rustup target add x86_64-pc-windows-msvc && \
|
||||
cargo install cargo-bundle xwin && \
|
||||
xwin --accept-license splat --output xwin && \
|
||||
rm -rf .xwin-cache && \
|
||||
ln -s $(which clang-21) /usr/bin/clang && \
|
||||
ln -s $(which clang++-21) /usr/bin/clang++
|
||||
ln -s $(which clang-22) /usr/bin/clang && \
|
||||
ln -s $(which clang++-22) /usr/bin/clang++
|
||||
COPY --from=osxcross /osxcross /osxcross
|
||||
|
||||
ENV PATH="/osxcross/bin:$PATH" \
|
||||
LD_LIBRARY_PATH="/osxcross/lib" \
|
||||
CC="clang-21" CXX="clang++-21" AR="llvm-ar-21" \
|
||||
CC="clang-22" CXX="clang++-22" AR="llvm-ar-22" \
|
||||
CC_x86_64-apple-darwin="o64-clang" \
|
||||
CXX_x86_64-apple-darwin="o64-clang++" \
|
||||
CC_aarch64-apple-darwin="oa64-clang" \
|
||||
@@ -47,11 +47,11 @@ ENV PATH="/osxcross/bin:$PATH" \
|
||||
SHROOMS_CFLAGS_x86_64-pc-windows-msvc="-flto" \
|
||||
CFLAGS_x86_64-pc-windows-msvc="-I/xwin/crt/include -I/xwin/sdk/include/ucrt -I/xwin/sdk/include/um -I/xwin/sdk/include/shared" \
|
||||
CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUSTFLAGS="-Lnative=/xwin/crt/lib/x86_64 -Lnative=/xwin/sdk/lib/um/x86_64 -Lnative=/xwin/sdk/lib/ucrt/x86_64 -Clinker-plugin-lto -Clink-arg=-fuse-ld=lld" \
|
||||
CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER="lld-link-21" \
|
||||
CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER="lld-link-22" \
|
||||
CARGO_TARGET_X86_64_APPLE_DARWIN_LINKER="o64-clang" \
|
||||
CARGO_TARGET_X86_64_APPLE_DARWIN_AR="llvm-ar-21" \
|
||||
CARGO_TARGET_X86_64_APPLE_DARWIN_AR="llvm-ar-22" \
|
||||
CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER="oa64-clang" \
|
||||
CARGO_TARGET_AARCH64_APPLE_DARWIN_AR="llvm-ar-21" \
|
||||
RC_PATH="llvm-rc-21" \
|
||||
CARGO_TARGET_AARCH64_APPLE_DARWIN_AR="llvm-ar-22" \
|
||||
RC_PATH="llvm-rc-22" \
|
||||
MACOSX_DEPLOYMENT_TARGET="14.5"
|
||||
ENTRYPOINT ["bash"]
|
||||
|
||||
+4
-4
@@ -4,11 +4,11 @@
|
||||
# The apt index for these is broken in bookworm, and upgrading to trixie
|
||||
# would make them depend on too new of a libc version.
|
||||
|
||||
# https://apt.llvm.org/bookworm/pool/main/l/llvm-toolchain-21/clang-21_21.1.5~%2B%2B20251023083151%2B45afac62e373-1~exp1~20251023083333.51_amd64.deb
|
||||
PACKAGES=('clang-21' 'clang-tools-21' 'libclang-common-21-dev' 'libclang-cpp21' 'libclang-rt-21-dev' 'libclang1-21' 'libllvm21' 'lld-21' 'llvm-21' 'llvm-21-dev' 'llvm-21-linker-tools' 'llvm-21-runtime' 'llvm-21-tools')
|
||||
# https://apt.llvm.org/bookworm/pool/main/l/llvm-toolchain-22/clang-22_22.1.0~%2B%2B20260223093050%2Bcd5897175d0d-1~exp1~20260223093246.28_amd64.deb
|
||||
PACKAGES=('clang-22' 'clang-tools-22' 'libclang-common-22-dev' 'libclang-cpp22' 'libclang-rt-22-dev' 'libclang1-22' 'libllvm22' 'lld-22' 'llvm-22' 'llvm-22-dev' 'llvm-22-linker-tools' 'llvm-22-runtime' 'llvm-22-tools')
|
||||
FILES=()
|
||||
URL='https://apt.llvm.org/bookworm/pool/main/l/llvm-toolchain-21'
|
||||
VERSION='21.1.5~%2B%2B20251023083151%2B45afac62e373-1~exp1~20251023083333.51_amd64.deb'
|
||||
URL='https://apt.llvm.org/bookworm/pool/main/l/llvm-toolchain-22'
|
||||
VERSION='22.1.0~%2B%2B20260223093050%2Bcd5897175d0d-1~exp1~20260223093246.28_amd64.deb'
|
||||
|
||||
apt-get install -y curl python3
|
||||
for package in "${PACKAGES[@]}"; do
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
Types: deb deb-src
|
||||
URIs: http://apt.llvm.org/bookworm/
|
||||
Suites: llvm-toolchain-bookworm-21
|
||||
Suites: llvm-toolchain-bookworm-22
|
||||
Components: main
|
||||
|
||||
+10
-7
@@ -288,6 +288,7 @@ impl Application {
|
||||
}
|
||||
}
|
||||
let clipped_primitives = self.ctx.tessellate(output.shapes, output.pixels_per_point);
|
||||
viewport.window.pre_present_notify();
|
||||
self.shared.painter.paint_and_update_textures(
|
||||
viewport.id,
|
||||
output.pixels_per_point,
|
||||
@@ -296,7 +297,6 @@ impl Application {
|
||||
&output.textures_delta,
|
||||
vec![],
|
||||
);
|
||||
viewport.window.pre_present_notify();
|
||||
}
|
||||
let mut active_viewports = ViewportIdSet::default();
|
||||
for (id, update) in updates {
|
||||
@@ -398,22 +398,25 @@ impl ApplicationHandler<UserEvent> for Application {
|
||||
if close_requested && viewport_id == ViewportId::ROOT {
|
||||
event_loop.exit();
|
||||
}
|
||||
if response.repaint {
|
||||
viewport.window.request_redraw();
|
||||
}
|
||||
if !response.consumed {
|
||||
match event {
|
||||
WindowEvent::KeyboardInput { event, .. } => {
|
||||
if !self.app.handle_key_event(viewport_id, &event) {
|
||||
WindowEvent::KeyboardInput { event, .. }
|
||||
if !self.app.handle_key_event(viewport_id, &event) =>
|
||||
{
|
||||
self.controllers.handle_key_event(&event);
|
||||
}
|
||||
}
|
||||
WindowEvent::Focused(new_focused) => {
|
||||
self.focused = new_focused.then_some(viewport_id);
|
||||
}
|
||||
WindowEvent::RedrawRequested => {
|
||||
self.repaint_all(event_loop);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
if response.repaint {
|
||||
self.repaint_all(event_loop);
|
||||
}
|
||||
self.check_repaint(event_loop);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user