mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 02:13:29 +00:00
![Jérôme Gardou](/assets/img/avatar_default.png)
There is no need to compile our DLLs as shared libraries since we are managing symbols exports and imports through spec files. On my system, this reduces the configure-time by a factor of two.
35 lines
698 B
CMake
35 lines
698 B
CMake
|
|
include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include)
|
|
add_definitions(-D_VIDEOPORT_)
|
|
spec2def(videoprt.sys videoprt.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
agp.c
|
|
child.c
|
|
ddc.c
|
|
dispatch.c
|
|
dma.c
|
|
event.c
|
|
funclist.c
|
|
int10.c
|
|
interrupt.c
|
|
registry.c
|
|
resource.c
|
|
services.c
|
|
spinlock.c
|
|
stubs.c
|
|
timer.c
|
|
videoprt.c
|
|
videoprt.h)
|
|
|
|
add_library(videoprt MODULE
|
|
${SOURCE}
|
|
guid.c
|
|
videoprt.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/videoprt.def)
|
|
|
|
set_module_type(videoprt kernelmodedriver)
|
|
add_importlibs(videoprt ntoskrnl hal)
|
|
add_pch(videoprt videoprt.h SOURCE)
|
|
add_cd_file(TARGET videoprt DESTINATION reactos/system32/drivers FOR all)
|