mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +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.
31 lines
564 B
CMake
31 lines
564 B
CMake
|
|
spec2def(usbport.sys usbport.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
debug.c
|
|
device.c
|
|
endpoint.c
|
|
iface.c
|
|
ioctl.c
|
|
iso.c
|
|
pnp.c
|
|
power.c
|
|
queue.c
|
|
roothub.c
|
|
trfsplit.c
|
|
urb.c
|
|
usb2.c
|
|
usbport.c
|
|
usbport.h)
|
|
|
|
add_library(usbport MODULE
|
|
${SOURCE}
|
|
guid.c
|
|
usbport.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/usbport.def)
|
|
|
|
add_pch(usbport usbport.h SOURCE)
|
|
set_module_type(usbport kernelmodedriver)
|
|
add_importlibs(usbport ntoskrnl hal)
|
|
add_cd_file(TARGET usbport DESTINATION reactos/system32/drivers NO_CAB FOR all)
|