diff --git a/ntoskrnl/cc/cc.cmake b/ntoskrnl/cc/cc.cmake new file mode 100644 index 0000000000000..2796aac6f3049 --- /dev/null +++ b/ntoskrnl/cc/cc.cmake @@ -0,0 +1,10 @@ + +list(APPEND SOURCE + cc/cacheman.c + cc/copy.c + cc/fs.c + cc/lazywrite.c + cc/mdl.c + cc/pin.c + cc/view.c +) diff --git a/ntoskrnl/config/config.cmake b/ntoskrnl/config/config.cmake new file mode 100644 index 0000000000000..025041d3520a0 --- /dev/null +++ b/ntoskrnl/config/config.cmake @@ -0,0 +1,40 @@ + +list(APPEND SOURCE + config/cmalloc.c + config/cmapi.c + config/cmboot.c + config/cmcheck.c + config/cmconfig.c + config/cmcontrl.c + config/cmdata.c + config/cmdelay.c + config/cmhook.c + config/cmhvlist.c + config/cminit.c + config/cmkcbncb.c + config/cmlazy.c + config/cmmapvw.c + config/cmnotify.c + config/cmparse.c + config/cmquota.c + config/cmse.c + config/cmsecach.c + config/cmsysini.c + config/cmvalche.c + config/cmwraprs.c + config/ntapi.c + ) + +if(ARCH STREQUAL "i386") + list(APPEND SOURCE + config/i386/cmhardwr.c + ) +elseif(ARCH STREQUAL "amd64") + list(APPEND SOURCE + config/i386/cmhardwr.c + ) +elseif(ARCH STREQUAL "arm") + list(APPEND SOURCE + config/arm/cmhardwr.c + ) +endif() diff --git a/ntoskrnl/dbgk/dbgk.cmake b/ntoskrnl/dbgk/dbgk.cmake new file mode 100644 index 0000000000000..270ff5d1354a4 --- /dev/null +++ b/ntoskrnl/dbgk/dbgk.cmake @@ -0,0 +1,5 @@ + +list(APPEND SOURCE + dbgk/dbgkobj.c + dbgk/dbgkutil.c + ) diff --git a/ntoskrnl/ex/ex.cmake b/ntoskrnl/ex/ex.cmake new file mode 100644 index 0000000000000..886f50d1262b8 --- /dev/null +++ b/ntoskrnl/ex/ex.cmake @@ -0,0 +1,48 @@ + +list(APPEND SOURCE + ex/atom.c + ex/callback.c + ex/dbgctrl.c + ex/efi.c + ex/event.c + ex/evtpair.c + ex/exintrin.c + ex/fmutex.c + ex/handle.c + ex/harderr.c + ex/hdlsterm.c + ex/init.c + ex/interlocked.c + ex/keyedevt.c + ex/locale.c + ex/lookas.c + ex/mutant.c + ex/profile.c + ex/pushlock.c + ex/resource.c + ex/rundown.c + ex/sem.c + ex/shutdown.c + ex/sysinfo.c + ex/time.c + ex/timer.c + ex/uuid.c + ex/win32k.c + ex/work.c + ex/xipdisp.c + ex/zone.c + ) + +list(APPEND ASM_SOURCE ex/zw.S) + +if(ARCH STREQUAL "i386") + list(APPEND ASM_SOURCE + ex/i386/fastinterlck_asm.S + ex/i386/ioport.S + ) +elseif(ARCH STREQUAL "amd64") +elseif(ARCH STREQUAL "arm") + list(APPEND ASM_SOURCE + ex/arm/ioport.s + ) +endif() diff --git a/ntoskrnl/fsrtl/fsrtl.cmake b/ntoskrnl/fsrtl/fsrtl.cmake new file mode 100644 index 0000000000000..c9f4c3db244fa --- /dev/null +++ b/ntoskrnl/fsrtl/fsrtl.cmake @@ -0,0 +1,20 @@ + +list(APPEND SOURCE + fsrtl/dbcsname.c + fsrtl/fastio.c + fsrtl/faulttol.c + fsrtl/filelock.c + fsrtl/filter.c + fsrtl/filtrctx.c + fsrtl/fsfilter.c + fsrtl/fsrtlpc.c + fsrtl/largemcb.c + fsrtl/mcb.c + fsrtl/name.c + fsrtl/notify.c + fsrtl/oplock.c + fsrtl/pnp.c + fsrtl/stackovf.c + fsrtl/tunnel.c + fsrtl/unc.c + ) diff --git a/ntoskrnl/fstub/fstub.cmake b/ntoskrnl/fstub/fstub.cmake new file mode 100644 index 0000000000000..8efeddd3b7641 --- /dev/null +++ b/ntoskrnl/fstub/fstub.cmake @@ -0,0 +1,7 @@ + +list(APPEND SOURCE + fstub/disksup.c + fstub/fstubex.c + fstub/halstub.c + fstub/translate.c + ) diff --git a/ntoskrnl/inbv/inbv.cmake b/ntoskrnl/inbv/inbv.cmake new file mode 100644 index 0000000000000..7dc3b425ed611 --- /dev/null +++ b/ntoskrnl/inbv/inbv.cmake @@ -0,0 +1,6 @@ + +list(APPEND SOURCE + inbv/bootanim.c + inbv/inbv.c + inbv/inbvport.c + ) diff --git a/ntoskrnl/io/io.cmake b/ntoskrnl/io/io.cmake new file mode 100644 index 0000000000000..34b9eaf86cd70 --- /dev/null +++ b/ntoskrnl/io/io.cmake @@ -0,0 +1,43 @@ + +list(APPEND SOURCE + io/iomgr/adapter.c + io/iomgr/arcname.c + io/iomgr/bootlog.c + io/iomgr/controller.c + io/iomgr/device.c + io/iomgr/deviface.c + io/iomgr/driver.c + io/iomgr/error.c + io/iomgr/file.c + io/iomgr/iocomp.c + io/iomgr/ioevent.c + io/iomgr/iofunc.c + io/iomgr/iomdl.c + io/iomgr/iomgr.c + io/iomgr/iorsrce.c + io/iomgr/iotimer.c + io/iomgr/iowork.c + io/iomgr/irp.c + io/iomgr/irq.c + io/iomgr/ramdisk.c + io/iomgr/rawfs.c + io/iomgr/remlock.c + io/iomgr/symlink.c + io/iomgr/util.c + io/iomgr/volume.c + io/pnpmgr/arbiters.c + io/pnpmgr/devaction.c + io/pnpmgr/devnode.c + io/pnpmgr/plugplay.c + io/pnpmgr/pnpdma.c + io/pnpmgr/pnpinit.c + io/pnpmgr/pnpirp.c + io/pnpmgr/pnpmap.c + io/pnpmgr/pnpmgr.c + io/pnpmgr/pnpnotify.c + io/pnpmgr/pnpreport.c + io/pnpmgr/pnpres.c + io/pnpmgr/pnproot.c + io/pnpmgr/pnputil.c + io/debug.c + ) diff --git a/ntoskrnl/kd/kd.cmake b/ntoskrnl/kd/kd.cmake new file mode 100644 index 0000000000000..382194b577e72 --- /dev/null +++ b/ntoskrnl/kd/kd.cmake @@ -0,0 +1,16 @@ + +if(ARCH STREQUAL "i386") + list(APPEND SOURCE kd/i386/kdserial.c) +elseif(ARCH STREQUAL "amd64") + list(APPEND SOURCE kd/i386/kdserial.c) +elseif(ARCH STREQUAL "arm") + list(APPEND SOURCE kd/arm/kdserial.c) +endif() + +list(APPEND SOURCE + kd/kdio.c + kd/kdmain.c + kd/kdprompt.c + kd/kdps2kbd.c + kd/kdserial.c + kd/kdterminal.c) diff --git a/ntoskrnl/kd64/kd64.cmake b/ntoskrnl/kd64/kd64.cmake new file mode 100644 index 0000000000000..dfa5478b69b03 --- /dev/null +++ b/ntoskrnl/kd64/kd64.cmake @@ -0,0 +1,24 @@ + +list(APPEND SOURCE + kd64/kdapi.c + kd64/kdbreak.c + kd64/kddata.c + kd64/kdinit.c + kd64/kdlock.c + kd64/kdprint.c + kd64/kdtrap.c + ) + +if(ARCH STREQUAL "i386") + list(APPEND SOURCE + kd64/i386/kdx86.c + ) +elseif(ARCH STREQUAL "amd64") + list(APPEND SOURCE + kd64/amd64/kdx64.c + ) +elseif(ARCH STREQUAL "arm") + list(APPEND SOURCE + kd64/arm/kdarm.c + ) +endif() diff --git a/ntoskrnl/kdbg/kdbg.cmake b/ntoskrnl/kdbg/kdbg.cmake new file mode 100644 index 0000000000000..0575c711b45ff --- /dev/null +++ b/ntoskrnl/kdbg/kdbg.cmake @@ -0,0 +1,20 @@ + +#add_definitions(-DKDBG) + +if(ARCH STREQUAL "i386") + list(APPEND ASM_SOURCE kdbg/i386/kdb_help.S) + list(APPEND SOURCE kdbg/i386/i386-dis.c) +elseif(ARCH STREQUAL "amd64") + list(APPEND ASM_SOURCE kdbg/amd64/kdb_help.S) + list(APPEND SOURCE kdbg/i386/i386-dis.c) +elseif(ARCH STREQUAL "arm") +endif() + +list(APPEND SOURCE + kdbg/kdbg.c + kdbg/kdb.c + kdbg/kdb_cli.c + kdbg/kdb_cmdhist.c + kdbg/kdb_expr.c + kdbg/kdb_print.c + kdbg/kdb_symbols.c) diff --git a/ntoskrnl/ke/ke.cmake b/ntoskrnl/ke/ke.cmake new file mode 100644 index 0000000000000..9363bc710b30e --- /dev/null +++ b/ntoskrnl/ke/ke.cmake @@ -0,0 +1,89 @@ + +list(APPEND SOURCE + ke/apc.c + ke/balmgr.c + ke/bug.c + ke/clock.c + ke/config.c + ke/devqueue.c + ke/dpc.c + ke/eventobj.c + ke/except.c + ke/freeze.c + ke/gate.c + ke/gmutex.c + ke/ipi.c + ke/krnlinit.c + ke/mutex.c + ke/procobj.c + ke/profobj.c + ke/queue.c + ke/semphobj.c + ke/spinlock.c + ke/thrdobj.c + ke/thrdschd.c + ke/time.c + ke/timerobj.c + ke/wait.c + ) + +if(ARCH STREQUAL "i386") + list(APPEND ASM_SOURCE + ke/i386/ctxswitch.S + ke/i386/trap.s + ke/i386/usercall_asm.S + ke/i386/zeropage.S + ) + list(APPEND SOURCE + ke/i386/abios.c + ke/i386/cpu.c + ke/i386/context.c + ke/i386/exp.c + ke/i386/irqobj.c + ke/i386/kiinit.c + ke/i386/ldt.c + ke/i386/mtrr.c + ke/i386/patpge.c + ke/i386/thrdini.c + ke/i386/traphdlr.c + ke/i386/usercall.c + ke/i386/v86vdm.c + ) +elseif(ARCH STREQUAL "amd64") + list(APPEND ASM_SOURCE + ke/amd64/boot.S + ke/amd64/ctxswitch.S + ke/amd64/trap.S + ke/amd64/usercall_asm.S + ke/amd64/zeropage.S + ) + list(APPEND SOURCE + ke/amd64/context.c + ke/amd64/cpu.c + ke/amd64/except.c + ke/amd64/interrupt.c + ke/amd64/irql.c + ke/amd64/kiinit.c + ke/amd64/krnlinit.c + ke/amd64/spinlock.c + ke/amd64/thrdini.c + ke/amd64/stubs.c + ke/amd64/usercall.c + ) +elseif(ARCH STREQUAL "arm") + list(APPEND ASM_SOURCE + ke/arm/boot.s + ke/arm/ctxswtch.s + ke/arm/stubs_asm.s + ke/arm/trap.s + ) + list(APPEND SOURCE + ke/arm/cpu.c + ke/arm/exp.c + ke/arm/interrupt.c + ke/arm/kiinit.c + ke/arm/thrdini.c + ke/arm/trapc.c + ke/arm/usercall.c + ) +endif() diff --git a/ntoskrnl/lpc/lpc.cmake b/ntoskrnl/lpc/lpc.cmake new file mode 100644 index 0000000000000..a98f889673c25 --- /dev/null +++ b/ntoskrnl/lpc/lpc.cmake @@ -0,0 +1,11 @@ + +list(APPEND SOURCE + lpc/close.c + lpc/complete.c + lpc/connect.c + lpc/create.c + lpc/listen.c + lpc/port.c + lpc/reply.c + lpc/send.c + ) diff --git a/ntoskrnl/mm/mm.cmake b/ntoskrnl/mm/mm.cmake new file mode 100644 index 0000000000000..8ed18b906742a --- /dev/null +++ b/ntoskrnl/mm/mm.cmake @@ -0,0 +1,58 @@ + +list(APPEND SOURCE + mm/ARM3/contmem.c + mm/ARM3/drvmgmt.c + mm/ARM3/dynamic.c + mm/ARM3/expool.c + mm/ARM3/hypermap.c + mm/ARM3/iosup.c + mm/ARM3/kdbg.c + mm/ARM3/largepag.c + mm/ARM3/mdlsup.c + mm/ARM3/mmdbg.c + mm/ARM3/mminit.c + mm/ARM3/mmsup.c + mm/ARM3/ncache.c + mm/ARM3/pagfault.c + mm/ARM3/pfnlist.c + mm/ARM3/pool.c + mm/ARM3/procsup.c + mm/ARM3/section.c + mm/ARM3/session.c + mm/ARM3/special.c + mm/ARM3/sysldr.c + mm/ARM3/syspte.c + mm/ARM3/vadnode.c + mm/ARM3/virtual.c + mm/ARM3/wslist.cpp + mm/ARM3/zeropage.c + mm/balance.c + mm/freelist.c + mm/marea.c + mm/mmfault.c + mm/mminit.c + mm/pagefile.c + mm/region.c + mm/rmap.c + mm/section.c + mm/shutdown.c + ) + +if(ARCH STREQUAL "i386") + list(APPEND SOURCE + mm/i386/page.c + mm/i386/procsup.c + mm/ARM3/i386/init.c + ) +elseif(ARCH STREQUAL "amd64") + list(APPEND SOURCE + mm/i386/page.c + mm/amd64/init.c + mm/amd64/procsup.c + ) +elseif(ARCH STREQUAL "arm") + list(APPEND SOURCE + mm/arm/page.c + mm/ARM3/arm/init.c + ) +endif() diff --git a/ntoskrnl/ntos.cmake b/ntoskrnl/ntos.cmake index a85cb19e39a99..341890fa2a885 100644 --- a/ntoskrnl/ntos.cmake +++ b/ntoskrnl/ntos.cmake @@ -32,395 +32,47 @@ if(NEWCC) ${REACTOS_SOURCE_DIR}/ntoskrnl/cache/section/data.c ${REACTOS_SOURCE_DIR}/ntoskrnl/cache/section/reqtools.c) else() - list(APPEND SOURCE - ${REACTOS_SOURCE_DIR}/ntoskrnl/cc/cacheman.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/cc/copy.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/cc/fs.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/cc/lazywrite.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/cc/mdl.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/cc/pin.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/cc/view.c) + include(cc/cc.cmake) endif() +include(config/config.cmake) +include(dbgk/dbgk.cmake) +include(ex/ex.cmake) +include(fsrtl/fsrtl.cmake) +include(fstub/fstub.cmake) +include(inbv/inbv.cmake) +include(io/io.cmake) +include(kd64/kd64.cmake) +include(ke/ke.cmake) +include(lpc/lpc.cmake) +include(mm/mm.cmake) +include(ob/ob.cmake) +include(po/po.cmake) +include(ps/ps.cmake) +include(rtl/rtl.cmake) +include(se/se.cmake) +include(vf/vf.cmake) +include(wmi/wmi.cmake) + list(APPEND SOURCE ${REACTOS_SOURCE_DIR}/ntoskrnl/cache/section/io.c ${REACTOS_SOURCE_DIR}/ntoskrnl/cache/section/sptab.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmalloc.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmapi.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmboot.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmcheck.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmconfig.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmcontrl.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmdata.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmdelay.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmhook.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmhvlist.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cminit.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmkcbncb.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmlazy.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmmapvw.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmnotify.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmparse.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmquota.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmse.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmsecach.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmsysini.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmvalche.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/cmwraprs.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/ntapi.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/dbgk/dbgkobj.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/dbgk/dbgkutil.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/atom.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/callback.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/dbgctrl.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/efi.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/event.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/evtpair.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/exintrin.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/fmutex.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/handle.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/harderr.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/hdlsterm.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/init.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/interlocked.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/keyedevt.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/locale.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/lookas.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/mutant.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/profile.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/pushlock.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/resource.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/rundown.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/sem.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/shutdown.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/sysinfo.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/time.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/timer.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/uuid.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/win32k.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/work.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/xipdisp.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/zone.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/dbcsname.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/fastio.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/faulttol.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/filelock.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/filter.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/filtrctx.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/fsfilter.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/fsrtlpc.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/largemcb.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/mcb.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/name.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/notify.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/oplock.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/pnp.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/stackovf.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/tunnel.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fsrtl/unc.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fstub/disksup.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fstub/fstubex.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fstub/halstub.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/fstub/translate.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/inbv/bootanim.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/inbv/inbv.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/inbv/inbvport.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/adapter.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/arcname.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/bootlog.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/controller.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/device.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/deviface.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/driver.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/error.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/file.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/iocomp.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/ioevent.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/iofunc.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/iomdl.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/iomgr.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/iorsrce.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/iotimer.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/iowork.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/irp.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/irq.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/ramdisk.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/rawfs.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/remlock.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/symlink.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/util.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/iomgr/volume.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/pnpmgr/arbiters.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/pnpmgr/devaction.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/pnpmgr/devnode.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/pnpmgr/plugplay.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/pnpmgr/pnpdma.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/pnpmgr/pnpinit.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/pnpmgr/pnpirp.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/pnpmgr/pnpmap.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/pnpmgr/pnpmgr.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/pnpmgr/pnpnotify.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/pnpmgr/pnpreport.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/pnpmgr/pnpres.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/pnpmgr/pnproot.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/pnpmgr/pnputil.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/io/debug.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/kdapi.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/kdbreak.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/kddata.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/kdinit.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/kdlock.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/kdprint.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/kdtrap.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/apc.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/balmgr.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/bug.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/clock.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/config.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/devqueue.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/dpc.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/eventobj.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/except.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/freeze.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/gate.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/gmutex.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/ipi.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/krnlinit.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/mutex.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/procobj.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/profobj.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/queue.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/semphobj.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/spinlock.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/thrdobj.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/thrdschd.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/time.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/timerobj.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/wait.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/lpc/close.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/lpc/complete.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/lpc/connect.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/lpc/create.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/lpc/listen.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/lpc/port.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/lpc/reply.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/lpc/send.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/contmem.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/drvmgmt.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/dynamic.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/expool.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/hypermap.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/iosup.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/kdbg.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/largepag.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/mdlsup.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/mmdbg.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/mminit.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/mmsup.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/ncache.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/pagfault.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/pfnlist.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/pool.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/procsup.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/section.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/session.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/special.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/sysldr.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/syspte.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/vadnode.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/virtual.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/wslist.cpp - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/zeropage.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/balance.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/freelist.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/marea.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/mmfault.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/mminit.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/pagefile.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/region.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/rmap.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/section.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/shutdown.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ob/devicemap.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ob/obdir.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ob/obhandle.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ob/obinit.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ob/oblife.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ob/oblink.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ob/obname.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ob/obref.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ob/obsdcach.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ob/obsecure.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ob/obwait.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/po/events.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/po/guid.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/po/poshtdwn.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/po/povolume.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/po/power.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/apphelp.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/debug.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/job.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/kill.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/process.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/psmgr.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/psnotify.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/query.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/quota.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/security.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/state.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/thread.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/win32.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/rtl/libsupp.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/rtl/misc.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/access.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/accesschk.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/acl.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/audit.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/client.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/objtype.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/priv.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/sd.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/semgr.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/sid.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/sqos.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/srm.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/subject.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/token.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/tokenadj.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/tokencls.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/se/tokenlif.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/vf/driver.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/wmi/guidobj.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/wmi/smbios.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/wmi/wmi.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/wmi/wmidrv.c) - -if(DBG) - list(APPEND SOURCE ${REACTOS_SOURCE_DIR}/ntoskrnl/se/debug.c) -endif() - -list(APPEND ASM_SOURCE ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/zw.S) + ) if(ARCH STREQUAL "i386") - list(APPEND ASM_SOURCE - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/i386/fastinterlck_asm.S - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/i386/ioport.S - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/ctxswitch.S - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/trap.s - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/usercall_asm.S - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/zeropage.S - ${REACTOS_SOURCE_DIR}/ntoskrnl/rtl/i386/stack.S) list(APPEND SOURCE - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/i386/cmhardwr.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/i386/kdx86.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/abios.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/cpu.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/context.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/exp.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/irqobj.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/kiinit.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/ldt.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/mtrr.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/patpge.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/thrdini.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/traphdlr.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/usercall.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/i386/v86vdm.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/i386/page.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/i386/procsup.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/i386/init.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/i386/psctx.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/i386/psldt.c ${REACTOS_SOURCE_DIR}/ntoskrnl/vdm/vdmmain.c ${REACTOS_SOURCE_DIR}/ntoskrnl/vdm/vdmexec.c) elseif(ARCH STREQUAL "amd64") - list(APPEND ASM_SOURCE - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/boot.S - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/ctxswitch.S - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/trap.S - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/usercall_asm.S - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/zeropage.S) - list(APPEND SOURCE - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/i386/cmhardwr.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/i386/page.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/amd64/kdx64.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/context.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/cpu.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/except.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/interrupt.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/irql.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/kiinit.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/krnlinit.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/spinlock.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/thrdini.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/amd64/init.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/amd64/procsup.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/amd64/psctx.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/stubs.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/amd64/usercall.c) elseif(ARCH STREQUAL "arm") - list(APPEND ASM_SOURCE - ${REACTOS_SOURCE_DIR}/ntoskrnl/ex/arm/ioport.s - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/arm/boot.s - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/arm/ctxswtch.s - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/arm/stubs_asm.s - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/arm/trap.s) - list(APPEND SOURCE - ${REACTOS_SOURCE_DIR}/ntoskrnl/config/arm/cmhardwr.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kd64/arm/kdarm.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/arm/cpu.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/arm/exp.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/arm/interrupt.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/arm/kiinit.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/arm/thrdini.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/arm/trapc.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ke/arm/usercall.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/arm/page.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/mm/ARM3/arm/init.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/ps/arm/psctx.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/rtl/arm/rtlexcpt.c) endif() if(NOT _WINKD_) + include(kd/kd.cmake) if(KDBG) add_definitions(-DKDBG) + include(kdbg/kdbg.cmake) endif() - - if(ARCH STREQUAL "i386") - list(APPEND SOURCE ${REACTOS_SOURCE_DIR}/ntoskrnl/kd/i386/kdserial.c) - if(KDBG) - list(APPEND ASM_SOURCE ${REACTOS_SOURCE_DIR}/ntoskrnl/kdbg/i386/kdb_help.S) - list(APPEND SOURCE ${REACTOS_SOURCE_DIR}/ntoskrnl/kdbg/i386/i386-dis.c) - endif() - elseif(ARCH STREQUAL "amd64") - list(APPEND SOURCE ${REACTOS_SOURCE_DIR}/ntoskrnl/kd/i386/kdserial.c) - if(KDBG) - list(APPEND ASM_SOURCE ${REACTOS_SOURCE_DIR}/ntoskrnl/kdbg/amd64/kdb_help.S) - list(APPEND SOURCE ${REACTOS_SOURCE_DIR}/ntoskrnl/kdbg/i386/i386-dis.c) - endif() - elseif(ARCH STREQUAL "arm") - list(APPEND SOURCE ${REACTOS_SOURCE_DIR}/ntoskrnl/kd/arm/kdserial.c) - endif() - - if(KDBG) - list(APPEND SOURCE - ${REACTOS_SOURCE_DIR}/ntoskrnl/kdbg/kdbg.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kdbg/kdb.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kdbg/kdb_cli.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kdbg/kdb_cmdhist.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kdbg/kdb_expr.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kdbg/kdb_print.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kdbg/kdb_symbols.c) - endif() - - list(APPEND SOURCE - ${REACTOS_SOURCE_DIR}/ntoskrnl/kd/kdio.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kd/kdmain.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kd/kdprompt.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kd/kdps2kbd.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kd/kdserial.c - ${REACTOS_SOURCE_DIR}/ntoskrnl/kd/kdterminal.c) - else() add_definitions(-D_WINKD_) endif() diff --git a/ntoskrnl/ob/ob.cmake b/ntoskrnl/ob/ob.cmake new file mode 100644 index 0000000000000..df7ff474a676d --- /dev/null +++ b/ntoskrnl/ob/ob.cmake @@ -0,0 +1,14 @@ + +list(APPEND SOURCE + ob/devicemap.c + ob/obdir.c + ob/obhandle.c + ob/obinit.c + ob/oblife.c + ob/oblink.c + ob/obname.c + ob/obref.c + ob/obsdcach.c + ob/obsecure.c + ob/obwait.c + ) diff --git a/ntoskrnl/po/po.cmake b/ntoskrnl/po/po.cmake new file mode 100644 index 0000000000000..cebfbd58c5e94 --- /dev/null +++ b/ntoskrnl/po/po.cmake @@ -0,0 +1,8 @@ + +list(APPEND SOURCE + po/events.c + po/guid.c + po/poshtdwn.c + po/povolume.c + po/power.c + ) diff --git a/ntoskrnl/ps/ps.cmake b/ntoskrnl/ps/ps.cmake new file mode 100644 index 0000000000000..46b23e2e72fa2 --- /dev/null +++ b/ntoskrnl/ps/ps.cmake @@ -0,0 +1,31 @@ + +list(APPEND SOURCE + ps/apphelp.c + ps/debug.c + ps/job.c + ps/kill.c + ps/process.c + ps/psmgr.c + ps/psnotify.c + ps/query.c + ps/quota.c + ps/security.c + ps/state.c + ps/thread.c + ps/win32.c + ) + +if(ARCH STREQUAL "i386") + list(APPEND SOURCE + ps/i386/psctx.c + ps/i386/psldt.c + ) +elseif(ARCH STREQUAL "amd64") + list(APPEND SOURCE + ps/amd64/psctx.c + ) +elseif(ARCH STREQUAL "arm") + list(APPEND SOURCE + ps/arm/psctx.c + ) +endif() diff --git a/ntoskrnl/rtl/rtl.cmake b/ntoskrnl/rtl/rtl.cmake new file mode 100644 index 0000000000000..4392c4430fa64 --- /dev/null +++ b/ntoskrnl/rtl/rtl.cmake @@ -0,0 +1,14 @@ + +list(APPEND SOURCE + rtl/libsupp.c + rtl/misc.c + ) + +if(ARCH STREQUAL "i386") + list(APPEND ASM_SOURCE + rtl/i386/stack.S) +elseif(ARCH STREQUAL "amd64") +elseif(ARCH STREQUAL "arm") + list(APPEND SOURCE + rtl/arm/rtlexcpt.c) +endif() diff --git a/ntoskrnl/se/se.cmake b/ntoskrnl/se/se.cmake new file mode 100644 index 0000000000000..083f317dfcc31 --- /dev/null +++ b/ntoskrnl/se/se.cmake @@ -0,0 +1,24 @@ + +list(APPEND SOURCE + se/access.c + se/accesschk.c + se/acl.c + se/audit.c + se/client.c + se/objtype.c + se/priv.c + se/sd.c + se/semgr.c + se/sid.c + se/sqos.c + se/srm.c + se/subject.c + se/token.c + se/tokenadj.c + se/tokencls.c + se/tokenlif.c + ) + +if(DBG) + list(APPEND SOURCE se/debug.c) +endif() diff --git a/ntoskrnl/vf/vf.cmake b/ntoskrnl/vf/vf.cmake new file mode 100644 index 0000000000000..e034dbc652b8e --- /dev/null +++ b/ntoskrnl/vf/vf.cmake @@ -0,0 +1,4 @@ + +list(APPEND SOURCE + vf/driver.c + ) diff --git a/ntoskrnl/wmi/wmi.cmake b/ntoskrnl/wmi/wmi.cmake new file mode 100644 index 0000000000000..b63212bd15685 --- /dev/null +++ b/ntoskrnl/wmi/wmi.cmake @@ -0,0 +1,7 @@ + +list(APPEND SOURCE + wmi/guidobj.c + wmi/smbios.c + wmi/wmi.c + wmi/wmidrv.c + )