6 Commits 1d8053a076 ... dd5d650b6e

Author SHA1 Message Date
  Niels Nesse dd5d650b6e Split minwin.h into multiple headers 9 years ago
  Niels Nesse 4828b0829e Add all dependencies of SDL2 to import libs 9 years ago
  Niels Nesse ef15312804 Remove CreateWindow from headers 9 years ago
  Niels Nesse 78436430d9 Fix test build 9 years ago
  Niels Nesse 6c1923dfb6 Add some libc functions 9 years ago
  Niels Nesse 2c01a2c55d Make exit signature unixey 9 years ago
10 changed files with 212 additions and 3 deletions
  1. 11 2
      Makefile
  2. 31 0
      def/gdi32.def
  3. 13 0
      def/imm32.def
  4. 66 1
      def/kernel32.def
  5. 5 0
      def/ole32.def
  6. 3 0
      def/oleaut32.def
  7. 6 0
      def/shell32.def
  8. 72 0
      def/user32.def
  9. 5 0
      def/version.def
  10. 0 0
      def/winmm.def

+ 11 - 2
Makefile

@@ -1,4 +1,13 @@
-IMPORT_LIBS=lib/user32.lib lib/kernel32.lib lib/gdi32.lib lib/opengl32.lib
+IMPORT_LIBS=lib/user32.lib \
+	    lib/kernel32.lib \
+	    lib/gdi32.lib \
+	    lib/opengl32.lib \
+	    lib/imm32.lib \
+	    lib/ole32.lib \
+	    lib/oleaut32.lib \
+	    lib/shell32.lib \
+	    lib/winmm.lib \
+	    lib/version.lib
 
 all: $(IMPORT_LIBS) test.exe
 
@@ -6,7 +15,7 @@ lib/%.lib: def/%.def
 	x86_64-w64-minwin64-dlltool -d $< -l $@
 
 test.exe: test.c include/minwin.h
-	x86_64-w64-minwin64-gcc test.c -Llib -Iinclude -luser32 -estart -o test.exe
+	x86_64-w64-minwin64-gcc test.c -fno-builtin src/minwin.c -Llib -Iinclude -luser32 -lkernel32 -estart -o test.exe
 
 clean:
 	@rm -f test.exe lib/*

+ 31 - 0
def/gdi32.def

@@ -4,3 +4,34 @@ GetStockObject
 ChoosePixelFormat
 SetPixelFormat
 SwapBuffers
+
+BitBlt
+CombineRgn
+CreateBitmap
+CreateCompatibleBitmap
+CreateCompatibleDC
+CreateDCW
+CreateDIBSection
+CreateFontIndirectA
+CreateFontIndirectW
+CreateFontW
+CreatePen
+CreateRectRgn
+CreateSolidBrush
+DeleteDC
+DeleteObject
+DescribePixelFormat
+ExtTextOutW
+GetDIBits
+GetDeviceCaps
+GetDeviceGammaRamp
+GetPixelFormat
+GetTextExtentPoint32A
+GetTextMetricsA
+GetTextExtentPoint32W
+GetTextMetricsW
+Rectangle
+SelectObject
+SetBkMode
+SetDeviceGammaRamp
+SetTextColor

+ 13 - 0
def/imm32.def

@@ -0,0 +1,13 @@
+LIBRARY IMM32 
+EXPORTS
+ImmAssociateContext
+ImmGetCandidateListA
+ImmGetCompositionStringA
+ImmGetCandidateListW
+ImmGetCompositionStringW
+ImmGetContext
+ImmGetIMEFileNameA
+ImmNotifyIME
+ImmReleaseContext
+ImmSetCompositionStringA
+ImmSetCompositionStringW

+ 66 - 1
def/kernel32.def

@@ -8,5 +8,70 @@ HeapFree
 HeapReAlloc
 GetModuleHandleW
 GetModuleHandleA
-GetProcAddress
 ExitProcess
+
+AttachConsole
+CloseHandle
+CompareStringA
+CreateDirectoryW
+CreateFileW
+CreateSemaphoreW
+DeleteCriticalSection
+EnterCriticalSection
+FormatMessageW
+FreeLibrary
+GetCurrentProcess
+GetCurrentProcessId
+GetCurrentThread
+GetCurrentThreadId
+GetEnvironmentVariableA
+GetFileSizeEx
+GetLastError
+GetModuleFileNameW
+GetProcAddress
+GetStdHandle
+GetSystemInfo
+GetSystemPowerStatus
+GetSystemTimeAsFileTime
+GetTickCount
+GetVersionExA
+GlobalAlloc
+GlobalLock
+GlobalMemoryStatusEx
+GlobalUnlock
+InitializeCriticalSection
+InitializeCriticalSectionAndSpinCount
+LeaveCriticalSection
+LoadLibraryA
+LoadLibraryW
+MulDiv
+OutputDebugStringW
+QueryPerformanceCounter
+QueryPerformanceFrequency
+ReadFile
+ReleaseSemaphore
+RtlAddFunctionTable
+RtlCaptureContext
+RtlLookupFunctionEntry
+RtlVirtualUnwind
+SetEnvironmentVariableA
+SetErrorMode
+SetFilePointer
+SetFilePointerEx
+SetThreadPriority
+SetUnhandledExceptionFilter
+Sleep
+TerminateProcess
+TlsAlloc
+TlsGetValue
+TlsSetValue
+TryEnterCriticalSection
+UnhandledExceptionFilter
+VirtualProtect
+VirtualQuery
+WaitForSingleObject
+WideCharToMultiByte
+WriteConsoleW
+WriteFile
+lstrcatW
+lstrlenW

+ 5 - 0
def/ole32.def

@@ -0,0 +1,5 @@
+LIBRARY OLE32
+EXPORTS
+CoCreateInstance
+CoInitializeEx
+CoUninitialize

+ 3 - 0
def/oleaut32.def

@@ -0,0 +1,3 @@
+LIBRARY OLEAUT32
+EXPORTS
+SysFreeString

+ 6 - 0
def/shell32.def

@@ -0,0 +1,6 @@
+LIBRARY SHELL32
+EXPORTS
+DragAcceptFiles
+DragFinish
+DragQueryFileW
+SHGetFolderPathW

+ 72 - 0
def/user32.def

@@ -30,3 +30,75 @@ ShowCursor
 GetClientRect
 WaitMessage
 ReleaseDC
+
+AdjustWindowRectEx
+CallWindowProcA
+CallWindowProcW
+ChangeDisplaySettingsExA
+ChangeDisplaySettingsExW
+ClientToScreen
+ClipCursor
+CloseClipboard
+CreateIconFromResource
+CreateIconIndirect
+DestroyIcon
+DialogBoxIndirectParamW
+DrawTextW
+EmptyClipboard
+EndDialog
+EnumDisplayDevicesW
+EnumDisplaySettingsW
+GetAsyncKeyState
+GetClassInfoW
+GetClipboardData
+GetClipboardSequenceNumber
+GetCursorPos
+GetDoubleClickTime
+GetFocus
+GetKeyState
+GetKeyboardLayout
+GetKeyboardState
+GetMenu
+GetMessageA
+GetPropA
+GetMessageW
+GetPropW
+GetRawInputData
+GetRawInputDeviceInfoA
+GetRawInputDeviceList
+GetUpdateRect
+GetWindowLongA
+GetWindowLongW
+GetWindowRect
+GetWindowTextLengthW
+GetWindowTextW
+IsClipboardFormatAvailable
+IsIconic
+IsRectEmpty
+LoadImageA
+LoadImageW
+MapVirtualKeyW
+OpenClipboard
+RegisterClassA
+RegisterClassW
+RegisterDeviceNotificationW
+RegisterRawInputDevices
+ScreenToClient
+SendMessageA
+SendMessageW
+SetClipboardData
+SetCursor
+SetCursorPos
+SetPropW
+SetWindowLongA
+SetWindowLongW
+SetWindowPos
+SetWindowRgn
+SetWindowTextW
+SystemParametersInfoA
+SystemParametersInfoW
+ToUnicode
+TrackMouseEvent
+UnregisterClassA
+UnregisterClassW
+UnregisterDeviceNotification

+ 5 - 0
def/version.def

@@ -0,0 +1,5 @@
+LIBRARY version
+EXPORTS
+GetFileVersionInfoA
+GetFileVersionInfoSizeA
+VerQueryValueA

+ 0 - 0
def/winmm.def


Some files were not shown because too many files changed in this diff