mirror of
https://github.com/reactos/reactos.git
synced 2024-08-30 23:28:58 +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.
27 lines
484 B
CMake
27 lines
484 B
CMake
|
|
spec2def(dxg.sys dxg.spec)
|
|
|
|
list(APPEND SOURCE
|
|
main.c
|
|
ddhmg.c
|
|
d3d.c
|
|
dd.c
|
|
ddraw.c
|
|
ddsurf.c
|
|
eng.c
|
|
historic.c
|
|
dxg_int.h)
|
|
|
|
include_directories(
|
|
${REACTOS_SOURCE_DIR}/win32ss/include)
|
|
|
|
add_library(dxg MODULE
|
|
${SOURCE}
|
|
dxg.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/dxg.def)
|
|
|
|
set_module_type(dxg kernelmodedriver)
|
|
add_importlibs(dxg dxgthk ntoskrnl)
|
|
add_pch(dxg dxg_int.h SOURCE)
|
|
add_cd_file(TARGET dxg DESTINATION reactos/system32/drivers FOR all)
|