Skip to content

Remove OleAut32.lib#9

Open
reinismu wants to merge 2 commits into
bamidev:masterfrom
reinismu:remove-ole
Open

Remove OleAut32.lib#9
reinismu wants to merge 2 commits into
bamidev:masterfrom
reinismu:remove-ole

Conversation

@reinismu

Copy link
Copy Markdown

Not 100% confident, but it seems we dont need it. It now allows me to build with cargo xwin build --target x86_64-pc-windows-msvc on linux fro windows edge2

@bamidev

bamidev commented Dec 27, 2025

Copy link
Copy Markdown
Owner

Thanks, I will check it out soon.

Bindgen 0.69's libclang behavior on macOS produced opaque structs (just
_address: u8) for bw_Application, bw_Window, and bw_BrowserWindow when
cross-compiling to x86_64-pc-windows-msvc, breaking Rust accesses like
(*window).user_data and (*bw).impl_.controller. Bumping to 0.72 fixes
the opaque-struct regression.

Removing -DBW_BINDGEN lets bindgen include the platform impl headers
(application/win32.h, browser_window/edge2.h) so the Rust-side struct
layouts match what cc::Build produces. Callers cross-compiling on a non
-Linux host need to point bindgen at Windows headers via
BINDGEN_EXTRA_CLANG_ARGS_x86_64_pc_windows_msvc (e.g. xwin's SDK cache).

Updated ParseCallbacks::item_name to bindgen 0.70+'s ItemInfo signature.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants