reactos/media/inf/CMakeLists.txt
Joachim Henze 8e5ffc4c3d [0.4.13] Backport: more flexibility for placing inf files
Main goal of this backport is to be able to place infs outside of media/inf and instead next to their (drivers) implementation.

Specifically this ports back:

0.4.15-dev-8227-g 32d615fc10 [DD] Keep the network drivers infs 8.3 like on MS Windows (#7007)

0.4.15-dev-2763-g 6924b8ff39 [NE2000] Combine two INF files into one for ISA and PCI cards

0.4.15-dev-122-g f4e37f9363 [CMAKE] Support file lists in add_cd_file for all cases. Addendum to 6b48d54

0.4.15-dev-121-g 6b48d54c39 [CMAKE] Fix driver inf files generation for livecd CORE-16975. Addendum to 019f21e

partially 0.4.15-dev-52-g 019f21ee1d [MEDIA][CMAKE] Create add_driver_inf cmake function
*.inf files for drivers can now be placed along with the driver code
Left out for now the moving of cdrom.inf, disk.inf, fdc.inf and usbstor.inf (because there are *_new for those due to the new storage stack)

- I compiled that for testing with RosBE2.1.6 GCCwin4.7.2 dbg+rls, MSVC2010dbg+rls, and for all 4 configs I created bootcd, livecd, hybridcd and bootcdregtest on each release-branch.
  All of them succeeded and all files were placed where they belong within the isos.
- I also tested installing with releases/0.4.14 bootcd onto a BTRFS partition, and then accessing that partition from a releases/0.4.7 livecd. Worked.
2024-06-17 22:53:43 +02:00

49 lines
932 B
CMake

list(APPEND INF_FILES
audio.inf
battery.inf
bda.inf
bth.inf
c_image.inf
cdrom.inf
disk.inf
display.inf
fdc.inf
flpydisk.inf
hal.inf
hdc.inf
input.inf
keyboard.inf
ks.inf
kscaptur.inf
legcydrv.inf
machine.inf
monitor.inf
msmouse.inf
NET_NIC.inf
nettcpip.inf
ports.inf
scsi.inf
shortcuts.inf
unknown.inf
usb.inf
usbport.inf
usbstor.inf
wdmaudio.inf
wmiacpi.inf)
list(APPEND UTF8_INF_FILES
defltws.inf
font.inf
intl.inf
layout.inf)
# 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)
endforeach(item)
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/syssetup.inf DESTINATION reactos/inf FOR all)