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