Quick-and-dirty wrapper that tries to run 32-bit Windows command-line executables on Linux
Go to file
Ryan Burns b86a542fe2
Explicitly link std::filesystem as needed (#14)
* Fix cmake install command

PROGRAMS specifies executable files, while TARGETS specifies cmake
targets. This install command happened to work when doing an in-tree
build (build dir == source dir) but will otherwise fail.

* Explicitly link std::filesystem as needed

On some older compilers, std::filesystem is provided as a separate
library from the C++ standard library. For example, on GCC 8, one must
explicitly link with -lstdc++fs.

We can use a drop-in https://github.com/vector-of-bool/CMakeCM module to
automate detection of and linking against this auxiliary library when needed.

* Add missing include

std::min is in <algorithm> header
This is transitively included in libstdc++ (GCC)
but not in libc++ (Clang)

(Encountered when testing -lc++fs auxiliary library linking in Clang 7)
2022-07-08 02:02:27 +09:00
.github/workflows Fix double ghcr.io in docker tag (#13) 2022-07-07 03:51:32 +09:00
cmake Explicitly link std::filesystem as needed (#14) 2022-07-08 02:02:27 +09:00
test Readme changes, github actions ci, test (#1) 2022-07-01 04:23:00 +09:00
.dockerignore Add Dockerfile + build action (#3) 2022-06-30 20:42:24 +01:00
.gitignore Add CMakeLists.txt (#8) 2022-07-06 20:03:19 +09:00
CMakeLists.txt Explicitly link std::filesystem as needed (#14) 2022-07-08 02:02:27 +09:00
Dockerfile Add CMakeLists.txt (#8) 2022-07-06 20:03:19 +09:00
LICENSE first commit 2022-06-13 02:20:18 +02:00
README.md Add CMakeLists.txt (#8) 2022-07-06 20:03:19 +09:00
advapi32.cpp more 2022-06-29 01:07:04 +02:00
common.h implement SetEndOfFile, CreateDirectoryA, RemoveDirectoryA, SetFileAttributesA (#6) 2022-07-06 11:26:24 +09:00
files.cpp files: Use drive letter Z: for root FS (matches wine) 2022-07-04 21:38:21 +02:00
files.h File handles 2022-07-04 00:42:47 +02:00
kernel32.cpp implement SetEndOfFile, CreateDirectoryA, RemoveDirectoryA, SetFileAttributesA (#6) 2022-07-06 11:26:24 +09:00
lmgr.cpp mwcc 4.* 2022-06-29 17:34:38 +02:00
loader.cpp Explicitly link std::filesystem as needed (#14) 2022-07-08 02:02:27 +09:00
main.cpp File handles 2022-07-04 00:42:47 +02:00
ole32.cpp mwcc 4.* 2022-06-29 17:34:38 +02:00
user32.cpp resources 2022-06-29 13:19:45 +02:00
version.cpp mwcc 4.* 2022-06-29 17:34:38 +02:00

README.md

WiBo

A minimal, low-fuss wrapper that can run really simple command-line 32-bit Windows binaries on Linux - with less faff and less dependencies than WINE.

Don't run this on any untrusted executables, I implore you. (Or probably just don't run it at all... :p)

cmake -B build
cmake --build build
build/wibo

Rough to-do list:

  • Implement more APIs
  • Do something intelligent with Windows HANDLEs
  • Convert paths in environment variables (and the structure of PATH itself, maybe) to Windows format
  • Implement PE relocations rather than just failing unceremoniously
  • Make the PE loader work for DLLs as well in case we ever want to load some

Related projects: