mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 02:13:29 +00:00
[CMAKE]
- Add an MSVC compatible definition file. - Temporarily add the kernel32 import library (until RosBE ships with one). - Group kernel32 wine stubs into kernel32_stubs.c - Add kernel32 to build. svn path=/branches/cmake-bringup/; revision=48531
This commit is contained in:
parent
af612f3786
commit
f31530ec6b
|
@ -1,2 +1,4 @@
|
|||
|
||||
add_subdirectory(win32)
|
||||
add_subdirectory(ntdll)
|
||||
|
||||
|
|
6
dll/win32/CMakeLists.txt
Normal file
6
dll/win32/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
|
||||
#add_subdirectory(advapi32)
|
||||
#add_subdirectory(gdi32)
|
||||
add_subdirectory(kernel32)
|
||||
#add_subdirectory(msvcrt)
|
||||
#add_subdirectory(user32)
|
27
dll/win32/kernel32/CMakeLists.txt
Normal file
27
dll/win32/kernel32/CMakeLists.txt
Normal file
|
@ -0,0 +1,27 @@
|
|||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
add_definitions(-D_KERNEL32_)
|
||||
|
||||
remove_definitions(-D_WIN32_WINNT=0x502)
|
||||
add_definitions(-D_WIN32_WINNT=0x600)
|
||||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
|
||||
|
||||
file(GLOB_RECURSE SOURCE "*.c")
|
||||
|
||||
file(GLOB_RECURSE ARCH_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/thread/${ARCH}/*.s")
|
||||
|
||||
add_library(kernel32 SHARED
|
||||
${SOURCE}
|
||||
${ARCH_SOURCE}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/kernel32.rc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/kernel32_k32.h.gch)
|
||||
|
||||
set_target_properties(kernel32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
||||
|
||||
target_link_libraries(kernel32 ${CMAKE_CURRENT_SOURCE_DIR}/kernel32.def
|
||||
pseh
|
||||
${REACTOS_SOURCE_DIR}/dll/ntdll/libntdll.a)
|
||||
|
||||
add_pch(kernel32 ${CMAKE_CURRENT_SOURCE_DIR}/k32.h ${SOURCE})
|
||||
add_dependencies(kernel32 errcodes version)
|
1024
dll/win32/kernel32/kernel32.def
Normal file
1024
dll/win32/kernel32/kernel32.def
Normal file
File diff suppressed because it is too large
Load diff
51
dll/win32/kernel32/kernel32_stubs.c
Normal file
51
dll/win32/kernel32/kernel32_stubs.c
Normal file
|
@ -0,0 +1,51 @@
|
|||
|
||||
#include <stdarg.h>
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "wine/config.h"
|
||||
#include "wine/exception.h"
|
||||
|
||||
void __wine_spec_unimplemented_stub( const char *module, const char *function )
|
||||
{
|
||||
ULONG_PTR args[2];
|
||||
|
||||
args[0] = (ULONG_PTR)module;
|
||||
args[1] = (ULONG_PTR)function;
|
||||
RaiseException( EXCEPTION_WINE_STUB, EH_NONCONTINUABLE, 2, args );
|
||||
}
|
||||
|
||||
static const char __wine_spec_file_name[] = "kernel32.dll";
|
||||
|
||||
void __wine_stub_kernel32_dll_14(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "AllocLSCallback"); }
|
||||
void __wine_stub_kernel32_dll_23(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "BaseCheckRunApp"); }
|
||||
void __wine_stub_kernel32_dll_33(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "BasepCheckWinSaferRestrictions"); }
|
||||
void __wine_stub_kernel32_dll_34(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "BasepDebugDump"); }
|
||||
void __wine_stub_kernel32_dll_60(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "CloseSystemHandle"); }
|
||||
void __wine_stub_kernel32_dll_69(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "ConsoleSubst"); }
|
||||
void __wine_stub_kernel32_dll_103(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "CreateKernelThread"); }
|
||||
void __wine_stub_kernel32_dll_347(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "GetDaylightFlag"); }
|
||||
void __wine_stub_kernel32_dll_391(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "GetSCallbackTarget"); }
|
||||
void __wine_stub_kernel32_dll_392(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "GetSCallbackTemplate"); }
|
||||
void __wine_stub_kernel32_dll_456(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "GetProductName"); }
|
||||
void __wine_stub_kernel32_dll_464(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "GetLSCallbackTarget"); }
|
||||
void __wine_stub_kernel32_dll_465(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "GetLSCallbackTemplate"); }
|
||||
void __wine_stub_kernel32_dll_567(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "HeapSetFlags"); }
|
||||
void __wine_stub_kernel32_dll_591(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "InvalidateNSCache"); }
|
||||
void __wine_stub_kernel32_dll_664(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "NlsResetProcessLocale"); }
|
||||
void __wine_stub_kernel32_dll_665(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "NotifyNLSUserCache"); }
|
||||
void __wine_stub_kernel32_dll_709(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "QueryNumberOfEventLogRecords"); }
|
||||
void __wine_stub_kernel32_dll_710(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "QueryOldestEventLogRecord"); }
|
||||
void __wine_stub_kernel32_dll_717(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "ReOpenFile"); }
|
||||
void __wine_stub_kernel32_dll_738(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "RegisterSysMsgHandler"); }
|
||||
void __wine_stub_kernel32_dll_822(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "SetDaylightFlag"); }
|
||||
void __wine_stub_kernel32_dll_848(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "SetLastConsoleEventActive"); }
|
||||
void __wine_stub_kernel32_dll_850(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "SetLocalPrimaryComputerNameA"); }
|
||||
void __wine_stub_kernel32_dll_851(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "SetLocalPrimaryComputerNameW"); }
|
||||
void __wine_stub_kernel32_dll_906(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "TlsAllocInternal"); }
|
||||
void __wine_stub_kernel32_dll_908(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "TlsFreeInternal"); }
|
||||
void __wine_stub_kernel32_dll_930(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "ValidateCType"); }
|
||||
void __wine_stub_kernel32_dll_931(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "ValidateLocale"); }
|
||||
void __wine_stub_kernel32_dll_992(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "_DebugOut"); }
|
||||
void __wine_stub_kernel32_dll_993(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "_DebugPrintf"); }
|
||||
void __wine_stub_kernel32_dll_1002(void) { __wine_spec_unimplemented_stub(__wine_spec_file_name, "dprintf"); }
|
||||
|
BIN
dll/win32/kernel32/libkernel32.a
Normal file
BIN
dll/win32/kernel32/libkernel32.a
Normal file
Binary file not shown.
Loading…
Reference in a new issue