master
build 18 lines 527 Bytes
Raw
1 sysprof = dependency('sysprof-capture-4', method: 'pkg-config', required: false)
2 glib_static = dependency('glib-2.0', version: glib_req_ver, required: false,
3 method: 'pkg-config', static: true)
4
5 stress = executable(
6 'stress',
7 files('stress.c'),
8 dependencies: [glib_static, sysprof],
9 link_args: ['-static'],
10 build_by_default: false,
11 )
12
13 custom_target(
14 'initrd-stress.img',
15 output: 'initrd-stress.img',
16 input: stress,
17 command: [find_program('initrd-stress.sh'), '@OUTPUT@', '@INPUT@']
18 )