Skip to content

Commit f8fac2a

Browse files
committed
WIP
1 parent ac51a18 commit f8fac2a

290 files changed

Lines changed: 1082 additions & 107 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

configure.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ if "%BUILD_ENVIRONMENT%" == "MinGW" (
203203
) else if %USE_CLANG_CL% == 1 (
204204
cmake -G %CMAKE_GENERATOR% -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-msvc.cmake -DARCH:STRING=%ARCH% %BUILD_TOOLS_FLAG% -DUSE_CLANG_CL:BOOL=1 %CMAKE_PARAMS% "%REACTOS_SOURCE_DIR%"
205205
) else (
206-
cmake -G %CMAKE_GENERATOR% %CMAKE_ARCH% -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-msvc.cmake -DARCH:STRING=%ARCH% %BUILD_TOOLS_FLAG% %CMAKE_PARAMS% "%REACTOS_SOURCE_DIR%"
206+
cmake -G %CMAKE_GENERATOR% %CMAKE_ARCH% -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-msvc.cmake -DARCH:STRING=%ARCH% %BUILD_TOOLS_FLAG% %CMAKE_PARAMS% "%REACTOS_SOURCE_DIR%
207207
)
208208

209209
if %ERRORLEVEL% NEQ 0 (

dll/win32/kernel32/CMakeLists.txt

Lines changed: 1 addition & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,139 +1,34 @@
11

2-
add_subdirectory(kernel32_vista)
3-
42
add_definitions(-D_KERNEL32_)
53
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys)
64
spec2def(kernel32.dll kernel32.spec ADD_IMPORTLIB)
75

8-
# Shared between kernel32 and kernel32_vista
9-
add_library(kernel32_shared
10-
client/shared_utils.c
11-
client/file/fileutils.c
12-
)
13-
target_link_libraries(kernel32_shared PRIVATE pseh)
14-
add_dependencies(kernel32_shared psdk)
15-
166
list(APPEND SOURCE
17-
client/actctx.c
18-
client/appcache.c
19-
client/atom.c
207
client/atomansi.c
21-
client/compname.c
22-
client/debugger.c
23-
client/dosdev.c
248
client/dllmain.c
25-
client/environ.c
26-
client/except.c
27-
client/fiber.c
28-
client/handle.c
29-
client/heapmem.c
309
client/job.c
31-
client/loader.c
32-
client/path.c
3310
client/pathansi.c
34-
client/perfcnt.c
3511
client/power.c
36-
client/proc.c
3712
client/procansi.c
38-
client/resntfy.c
39-
client/session.c
40-
client/synch.c
41-
client/synchansi.c
42-
client/sysinfo.c
43-
client/sysinfoansi.c
44-
client/time.c
45-
client/timerqueue.c
46-
client/toolhelp.c
47-
client/utils.c
48-
client/thread.c
49-
client/vdm.c
50-
client/version.c
5113
client/versionansi.c
52-
client/virtmem.c
53-
client/console/alias.c
54-
client/console/console.c
55-
client/console/history.c
56-
client/console/init.c
57-
client/console/readwrite.c
58-
client/file/backup.c
59-
client/file/cnotify.c
60-
client/file/copy.c
6114
client/file/copyansi.c
62-
client/file/create.c
63-
client/file/delete.c
64-
client/file/deviceio.c
65-
client/file/dir.c
6615
client/file/diransi.c
67-
client/file/disk.c
68-
client/file/fileinfo.c
6916
client/file/fileinfoansi.c
70-
client/file/filemap.c
71-
client/file/filename.c
72-
client/file/find.c
73-
client/file/hardlink.c
74-
client/file/iocompl.c
75-
client/file/lfile.c
76-
client/file/lock.c
7717
client/file/mailslot.c
78-
client/file/move.c
7918
client/file/moveansi.c
80-
client/file/mntpoint.c
8119
client/file/mntpointansi.c
82-
client/file/npipe.c
83-
client/file/rw.c
8420
client/file/tape.c
85-
client/file/volume.c
8621
client/file/volumeansi.c
87-
wine/actctx.c
88-
wine/comm.c
8922
wine/lzexpand.c
90-
wine/muldiv.c
91-
wine/profile.c
9223
wine/res.c
93-
wine/timezone.c
94-
winnls/string/casemap.c
95-
winnls/string/collation.c
96-
winnls/string/digitmap.c
97-
winnls/string/fold.c
98-
winnls/string/format_msg.c
99-
winnls/string/japanese.c
100-
winnls/string/locale.c
101-
winnls/string/localeansi.c
102-
winnls/string/lcformat.c
103-
winnls/string/lcformatansi.c
104-
winnls/string/lstring.c
105-
winnls/string/nls.c
106-
winnls/string/sortkey.c
10724
k32.h)
10825

10926
if(MSVC)
11027
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
11128
set_source_files_properties(wine/res.c PROPERTIES COMPILE_OPTIONS "/wd4146")
112-
113-
# Disable warning C4267: 'initializing': conversion from 'size_t' to 'DWORD', possible loss of data
114-
set_source_files_properties(winnls/string/locale.c PROPERTIES COMPILE_OPTIONS "/wd4267")
115-
else()
116-
# Disable warning: 'variable' defined but not used
117-
set_source_files_properties(winnls/string/locale.c PROPERTIES COMPILE_OPTIONS "-Wno-unused-variable")
11829
endif()
119-
120-
if(ARCH STREQUAL "i386")
121-
list(APPEND ASM_SOURCE
122-
client/i386/fiber.S
123-
client/i386/thread.S)
124-
elseif(ARCH STREQUAL "amd64")
125-
list(APPEND ASM_SOURCE
126-
client/amd64/fiber.S)
127-
elseif(ARCH STREQUAL "arm")
128-
list(APPEND ASM_SOURCE
129-
client/arm/fiber.S
130-
client/arm/thread.S)
131-
endif()
132-
133-
add_asm_files(kernel32_asm ${ASM_SOURCE})
13430
add_library(kernel32 MODULE
13531
${SOURCE}
136-
${kernel32_asm}
13732
kernel32.rc
13833
${CMAKE_CURRENT_BINARY_DIR}/kernel32_stubs.c
13934
${CMAKE_CURRENT_BINARY_DIR}/kernel32.def)
@@ -144,7 +39,7 @@ set_module_type(kernel32 win32dll ENTRYPOINT DllMain 12)
14439
set_subsystem(kernel32 console)
14540
################# END HACK #################
14641

147-
target_link_libraries(kernel32 psapi_static kernel32_vista_static kernel32_shared wine chkstk ${PSEH_LIB})
42+
target_link_libraries(kernel32 psapi_static wine chkstk ${PSEH_LIB})
14843
add_importlibs(kernel32 ntdll)
14944
add_pch(kernel32 k32.h SOURCE)
15045
add_dependencies(kernel32 psdk errcodes asm)

dll/win32/kernel32/kernel32_vista/kernel32_vista.spec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,8 @@
6161
@ stdcall GetNamedPipeClientProcessId(ptr ptr)
6262
@ stdcall SetThreadDescription(ptr wstr) # Win 10
6363
@ stdcall GetSystemTimePreciseAsFileTime(ptr) kernel32.GetSystemTimeAsFileTime
64+
65+
@ stdcall WaitForThreadpoolWorkCallbacks(ptr long) ntdll.TpWaitForWork
66+
@ stdcall CreateThreadpoolWork(ptr ptr ptr)
67+
@ stdcall TrySubmitThreadpoolCallback(ptr ptr ptr)
68+
@ stdcall SubmitThreadpoolWork(ptr) ntdll.TpPostWork
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)