Add project files (part 1/2)

Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
tonihaxandClaude Sonnet 5 committed 2026-11-05 19:45:34 +01:00
1 parent 3721eaecb2
commit 73baf8d02d
274 files changed
+83593

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
LIBRARY kernel32.dll
EXPORTS
CloseHandle
CreateDirectoryW
CreateFileW
CreateThread
DeleteFileW
DisableThreadLibraryCalls
FindClose
FindFirstFileW
FindNextFileW
FreeLibraryAndExitThread
GetCurrentProcessId
GetFileSize
GetLastError
GetModuleHandleA
GetProcAddress
GetStdHandle
GetSystemTimeAsFileTime
GetTempPathW
LoadLibraryA
OutputDebugStringA
QueryPerformanceCounter
QueryPerformanceFrequency
MultiByteToWideChar
ReadFile
Sleep
WideCharToMultiByte
WriteFile
+3
View File
@@ -0,0 +1,3 @@
LIBRARY shell32.dll
EXPORTS
ShellExecuteW
+60
View File
@@ -0,0 +1,60 @@
LIBRARY ucrtbase.dll
EXPORTS
__stdio_common_vsprintf
__stdio_common_vsscanf
__stdio_common_vswprintf
_hypotf
_register_onexit_function
_time64
_wgetenv
abort
acos
acosf
atan2
atan2f
bsearch
calloc
ceilf
cos
cosf
expf
fclose
feof
floor
floorf
fmod
fmodf
fopen
fopen_s
fread
free
fseek
ftell
hypot
ldexp
localeconv
logf
malloc
memcpy
memmove
memset
pow
powf
qsort
realloc
roundf
sin
sinf
sqrt
sqrtf
strcmp
strlen
strncmp
strncpy
strtod
strtol
tanf
tolower
truncf
wcslen
wcsncpy_s
+5
View File
@@ -0,0 +1,5 @@
LIBRARY user32.dll
EXPORTS
GetForegroundWindow
GetWindowThreadProcessId
IsWindowUnicode
+26
View File
@@ -0,0 +1,26 @@
# Cross-compile the Windows DLL from Linux / macOS with clang-cl + lld-link.
# No Windows SDK is needed: the code declares the few Win32 / UCRT functions it uses itself and links against
# import libraries that CMakeLists.txt generates from cmake/imports/*.def (llvm-dlltool).
#
# cmake -S . -B build/cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-windows-clang-cl.cmake
# cmake --build build/cmake -> build/cmake/slinky.dll
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_PROCESSOR AMD64)
set(CMAKE_C_COMPILER clang-cl)
set(CMAKE_CXX_COMPILER clang-cl)
set(CMAKE_C_COMPILER_TARGET x86_64-pc-windows-msvc)
set(CMAKE_CXX_COMPILER_TARGET x86_64-pc-windows-msvc)
set(CMAKE_LINKER lld-link)
set(CMAKE_AR llvm-lib)
set(CMAKE_RC_COMPILER llvm-rc)
# the compiler check must not need the SDK's libraries
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
# the flags the engine code was verified with are set explicitly in CMakeLists.txt: drop CMake's MSVC defaults
# (/EHsc, /GR, /MD, /O2 /Ob2 /DNDEBUG ...)
set(CMAKE_C_FLAGS_INIT "")
set(CMAKE_CXX_FLAGS_INIT "")
set(CMAKE_C_FLAGS_RELEASE_INIT "")
set(CMAKE_CXX_FLAGS_RELEASE_INIT "")
set(CMAKE_MSVC_RUNTIME_LIBRARY "")
set(CMAKE_C_STANDARD_LIBRARIES "" CACHE STRING "" FORCE)
set(CMAKE_CXX_STANDARD_LIBRARIES "" CACHE STRING "" FORCE)