Add Windows native (mingwX64) target#563
Merged
vinceglb merged 3 commits intovinceglb:mainfrom Apr 18, 2026
Merged
Conversation
9383a76 to
3250942
Compare
…alogs Add mingwX64 target support with full platform implementations: filekit-core: - PlatformFile wrapping kotlinx.io Path with WindowsPath wrapper - File metadata via Win32 GetFileAttributesExW (timestamps, size) - MIME type detection via Windows Registry (HKEY_CLASSES_ROOT) - Directory resolution via SHGetKnownFolderPath with USERPROFILE fallback - Unicode-safe absolutePath via GetFullPathNameW filekit-dialogs: - Modern COM IFileOpenDialog/IFileSaveDialog via cinterop C wrappers - FOS_PICKFOLDERS for directory selection - FOS_ALLOWMULTISELECT for multi-file selection - SHCreateItemFromParsingName for initial directory - COMDLG_FILTERSPEC for file type filters - ShellExecuteW for opening files with default application sample: - Win32 GUI sample app demonstrating all FileKit APIs
3250942 to
51f8a90
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mingwX64target tofilekit-coreandfilekit-dialogsmodulesfilekit-core: PlatformFile implementation using kotlinx.io Path, Win32 APIs for file metadata (GetFileAttributesExW), MIME type via Windows Registry, directory resolution via SHGetKnownFolderPath with USERPROFILE fallback, Unicode-safe path resolution via GetFullPathNameWfilekit-dialogs: Modern COM file dialogs (IFileOpenDialog/IFileSaveDialog) via cinterop C wrappers — same approach as the JNA implementation, with FOS_PICKFOLDERS for directory selection, multi-select support, file type filters, and ShellExecuteW for default app openingsample/windowsNativeApp) demonstrating all FileKit APIsTest plan
filekit-core:compileKotlinMingwX64compilesfilekit-dialogs:compileKotlinMingwX64compilessample:windowsNativeApp:linkReleaseExecutableMingwX64links successfullyfilekit-core:jvmTest)filekit-core:compileKotlinJvm,filekit-dialogs:compileKotlinJvm)