add_importlibs(acpi ntoskrnl hal)
add_pch(acpi precomp.h ACPI_SOURCE)
add_cd_file(TARGET acpi DESTINATION reactos/system32/drivers NO_CAB FOR all)
+add_driver_inf(acpi acpi.inf)
add_subdirectory(cmbatt)
add_subdirectory(compbatt)
target_link_libraries(btrfs rtlver zlib_solo chkstk wdmguid ${PSEH_LIB})
add_importlibs(btrfs ntoskrnl hal)
add_cd_file(TARGET btrfs DESTINATION reactos/system32/drivers NO_CAB FOR all)
+add_driver_inf(btrfs btrfs.inf)
set_module_type(e1000 kernelmodedriver)
add_importlibs(e1000 ndis ntoskrnl hal)
add_cd_file(TARGET e1000 DESTINATION reactos/system32/drivers FOR all)
+add_driver_inf(e1000 nete1000.inf)
set_module_type(ne2000 kernelmodedriver)
add_importlibs(ne2000 ndis ntoskrnl hal)
add_cd_file(TARGET ne2000 DESTINATION reactos/system32/drivers FOR all)
+add_driver_inf(ne2000 netne2000.inf netrtl8029.inf)
set_module_type(netkvm kernelmodedriver)
add_importlibs(netkvm ndis ntoskrnl hal)
add_cd_file(TARGET netkvm DESTINATION reactos/system32/drivers FOR all)
+add_driver_inf(netkvm netkvm.inf)
if (NOT MSVC)
add_compile_flags("-Wno-unused-function")
set_module_type(pcnet kernelmodedriver)
add_importlibs(pcnet ndis ntoskrnl hal)
add_cd_file(TARGET pcnet DESTINATION reactos/system32/drivers FOR all)
+add_driver_inf(pcnet netpcnet.inf)
set_module_type(rtl8139 kernelmodedriver)
add_importlibs(rtl8139 ndis ntoskrnl hal)
add_cd_file(TARGET rtl8139 DESTINATION reactos/system32/drivers FOR all)
+add_driver_inf(rtl8139 netrtl8139.inf)
add_importlibs(processr hal ntoskrnl)
add_pch(processr processr.h SOURCE)
add_cd_file(TARGET processr DESTINATION reactos/system32/drivers FOR all)
+add_driver_inf(processr cpu.inf)
add_pch(cdrom precomp.h SOURCE)
add_cd_file(TARGET cdrom DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_registry_inf(cdrom_reg.inf)
+add_driver_inf(cdrom cdrom.inf)
add_importlibs(disk class2 scsiport ntoskrnl hal)
add_cd_file(TARGET disk DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_registry_inf(disk_reg.inf)
+add_driver_inf(disk disk.inf)
add_importlibs(disk_new classpnp ntoskrnl hal)
add_pch(disk_new disk.h SOURCE)
add_cd_file(TARGET disk_new DESTINATION reactos/system32/drivers NO_CAB FOR all)
+#add_driver_inf(disk_new diskdev.inf)
add_importlibs(fdc hal ntoskrnl)
add_pch(fdc fdc.h SOURCE)
add_cd_file(TARGET fdc DESTINATION reactos/system32/drivers FOR all)
+add_driver_inf(fdc fdc.inf)
add_importlibs(usbstor ntoskrnl hal usbd)
add_pch(usbstor usbstor.h SOURCE)
add_cd_file(TARGET usbstor DESTINATION reactos/system32/drivers NO_CAB FOR all)
+add_driver_inf(usbstor usbstor.inf)
target_link_libraries(hdaudbus libcntpr ${PSEH_LIB})
add_importlibs(hdaudbus ntoskrnl hal)
add_cd_file(TARGET hdaudbus DESTINATION reactos/system32/drivers FOR all)
+add_driver_inf(hdaudbus hdaudbus.inf)
list(APPEND INF_FILES
- acpi.inf
audio.inf
battery.inf
bda.inf
bth.inf
- btrfs.inf
c_image.inf
- cdrom.inf
- cpu.inf
- disk.inf
display.inf
fdc.inf
flpydisk.inf
hal.inf
- hdaudbus.inf
hdc.inf
input.inf
keyboard.inf
monitor.inf
msmouse.inf
NET_NIC.inf
- netamd.inf
- nete1000.inf
- netisa.inf
- netkvm.inf
- netrtl.inf
- netrtpnt.inf
nettcpip.inf
ports.inf
scsi.inf
unknown.inf
usb.inf
usbport.inf
- usbstor.inf
wdmaudio.inf
- wmiacpi.inf
- xboxdisp.inf)
+ wmiacpi.inf)
list(APPEND UTF8_INF_FILES
defltws.inf
intl.inf
layout.inf)
-foreach(item ${INF_FILES})
- set(_converted_item ${CMAKE_CURRENT_BINARY_DIR}/${item})
- set(_source_item ${CMAKE_CURRENT_SOURCE_DIR}/${item})
- add_custom_command(OUTPUT "${_converted_item}"
- COMMAND native-utf16le "${_source_item}" "${_converted_item}"
- DEPENDS native-utf16le "${_source_item}")
- add_cd_file(TARGET converted_inf_files FILE ${_converted_item} DESTINATION reactos/inf FOR all)
- list(APPEND _converted_inf_files ${_converted_item})
-endforeach(item)
-
-add_custom_target(converted_inf_files DEPENDS ${_converted_inf_files})
+# module name is used for a custom target creation, so we can put any unique name here
+add_driver_inf(media_inf ${INF_FILES})
foreach(item ${UTF8_INF_FILES})
add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/${item}" DESTINATION reactos/inf FOR all)
elseif(${dir} STREQUAL reactos/3rdParty)
set(${var} 63)
elseif(${dir} STREQUAL reactos/Resources/Themes/Lunar)
- set(${var} 64)
+ set(${var} 64)
elseif(${dir} STREQUAL reactos/Resources/Themes/Mizu)
set(${var} 65)
elseif(${dir} STREQUAL reactos/system32/spool/prtprocs/x64)
endfunction()
+function(add_driver_inf _module)
+ # Add to the inf files list
+ foreach(_file ${ARGN})
+ set(_converted_item ${CMAKE_CURRENT_BINARY_DIR}/${_file})
+ set(_source_item ${CMAKE_CURRENT_SOURCE_DIR}/${_file})
+ add_custom_command(OUTPUT "${_converted_item}"
+ COMMAND native-utf16le "${_source_item}" "${_converted_item}"
+ DEPENDS native-utf16le "${_source_item}")
+ add_cd_file(FILE ${_converted_item} DESTINATION reactos/inf FOR all)
+ list(APPEND _converted_inf_files ${_converted_item})
+ endforeach()
+
+ add_custom_target(${_module}_inf_files DEPENDS ${_converted_inf_files})
+endfunction()
+
if(KDBG)
set(ROSSYM_LIB "rossym")
else()
add_importlibs(xboxvmp ntoskrnl videoprt)
add_cd_file(TARGET xboxvmp DESTINATION reactos/system32/drivers FOR all)
add_registry_inf(xboxvmp_reg.inf)
+add_driver_inf(xboxvmp xboxdisp.inf)