xref: /reactos/media/inf/CMakeLists.txt (revision 62919904)
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    netrtl.inf
32    netrtpnt.inf
33    nettcpip.inf
34    ports.inf
35    scsi.inf
36    shortcuts.inf
37    unknown.inf
38    usb.inf
39    usbport.inf
40    usbstor.inf
41    wdmaudio.inf
42    wmiacpi.inf
43    xboxdisp.inf)
44
45list(APPEND UTF8_INF_FILES
46    defltws.inf
47    font.inf
48    intl.inf
49    layout.inf)
50
51foreach(item ${INF_FILES})
52    set(_converted_item ${CMAKE_CURRENT_BINARY_DIR}/${item})
53    set(_source_item ${CMAKE_CURRENT_SOURCE_DIR}/${item})
54    add_custom_command(OUTPUT "${_converted_item}"
55                       COMMAND native-utf16le "${_source_item}" "${_converted_item}"
56                       DEPENDS native-utf16le "${_source_item}")
57    add_cd_file(TARGET converted_inf_files FILE ${_converted_item} DESTINATION reactos/inf FOR all)
58    list(APPEND _converted_inf_files ${_converted_item})
59endforeach(item)
60
61add_custom_target(converted_inf_files DEPENDS ${_converted_inf_files})
62
63foreach(item ${UTF8_INF_FILES})
64    add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/${item}" DESTINATION reactos/inf FOR all)
65endforeach(item)
66
67add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/syssetup.inf DESTINATION reactos/inf FOR all)
68