summaryrefslogtreecommitdiff
path: root/meson.build
blob: dcc0fe20d15ca4a8542d7101de7bab44a22e8cf6 (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
project('iot-contact')

cp = find_program('cp', required : true)

fs = import('fs')

fs.copyfile(meson.current_source_dir() / 'simple.css' / 'simple.css')

subdir('tools')
subdir('fw')
subdir('pcb')
subdir('web')

artifacts = [
  index_html,
  schematic,
  bom,
  simulation,
  update_image,
  factory_image,
  kicad_pcb,
]

foreach artifact : artifacts
  custom_target(
    output: [fs.name(artifact.full_path())],
    command: [
      cp,
      artifact.full_path(),
      meson.current_build_dir(),
    ],
    depends: artifact,
    build_by_default: true,
  )
endforeach