summaryrefslogtreecommitdiff
path: root/hwdb/meson.build
blob: 4498d5e08b9495af5b1b8931103baa2b3f063033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- mode: meson -*-

hwdb_files = files('''
  20-pci-vendor-model.hwdb
  20-pci-classes.hwdb
  20-usb-vendor-model.hwdb
  20-usb-classes.hwdb
  20-sdio-vendor-model.hwdb
  20-sdio-classes.hwdb
  20-bluetooth-vendor-product.hwdb
  20-acpi-vendor.hwdb
  20-OUI.hwdb
  20-net-ifname.hwdb
  60-evdev.hwdb
  60-keyboard.hwdb
  60-sensor.hwdb
  70-mouse.hwdb
  70-pointingstick.hwdb
  70-touchpad.hwdb
'''.split())

if conf.get('ENABLE_HWDB', 0) == 1
  install_data(hwdb_files,
               install_dir : udevhwdbdir)

  meson.add_install_script('sh', '-c',
                           mkdir_p.format(join_paths(sysconfdir, 'udev/hwdb.d')))
endif

############################################################

custom_target(
  'update',
  output : 'update',
  command : [hwdb_update_sh, meson.current_source_dir()])