1 2list(APPEND INF_FILES 3 acpi.inf 4 audio.inf 5 battery.inf 6 bda.inf 7 bth.inf 8 c_image.inf 9 cdrom.inf 10 cpu.inf 11 disk.inf 12 display.inf 13 fdc.inf 14 flpydisk.inf 15 hal.inf 16 hdaudbus.inf 17 hdc.inf 18 input.inf 19 keyboard.inf 20 ks.inf 21 kscaptur.inf 22 legcydrv.inf 23 machine.inf 24 monitor.inf 25 msmouse.inf 26 NET_NIC.inf 27 netamd.inf 28 netisa.inf 29 netrtl.inf 30 netrtpnt.inf 31 nettcpip.inf 32 ports.inf 33 scsi.inf 34 shortcuts.inf 35 unknown.inf 36 usb.inf 37 usbport.inf 38 usbstor.inf 39 wdmaudio.inf 40 wmiacpi.inf 41 xboxdisp.inf) 42 43list(APPEND UTF8_INF_FILES 44 defltws.inf 45 font.inf 46 intl.inf 47 layout.inf) 48 49foreach(item ${INF_FILES}) 50 set(_converted_item ${CMAKE_CURRENT_BINARY_DIR}/${item}) 51 set(_source_item ${CMAKE_CURRENT_SOURCE_DIR}/${item}) 52 add_custom_command(OUTPUT "${_converted_item}" 53 COMMAND native-utf16le "${_source_item}" "${_converted_item}" 54 DEPENDS native-utf16le "${_source_item}") 55 add_cd_file(TARGET converted_inf_files FILE ${_converted_item} DESTINATION reactos/inf FOR all) 56 list(APPEND _converted_inf_files ${_converted_item}) 57endforeach(item) 58 59add_custom_target(converted_inf_files DEPENDS ${_converted_inf_files}) 60 61foreach(item ${UTF8_INF_FILES}) 62 add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/${item}" DESTINATION reactos/inf FOR all) 63endforeach(item) 64 65add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/syssetup.inf DESTINATION reactos/inf FOR all) 66