Matt Johnston | 6586fc1 | 2024-09-10 16:01:27 +0800 | [diff] [blame] | 1 | demux_sources = ['mctp-demux-daemon.c'] |
| 2 | demux_args = [] |
| 3 | demux_dep = [libmctp_dep, pcap_dep, libsystemd_dep] |
| 4 | # While mctp-demux-daemon will build without pcap, it won't |
| 5 | # be functional. |
| 6 | # TODO only build mctp-demux-daemon when pcap is available. |
| 7 | if pcap_dep.found() |
| 8 | demux_args += '-DHAVE_PCAP' |
| 9 | demux_sources += 'mctp-capture.c' |
| 10 | endif |
| 11 | |
| 12 | demux = executable('mctp-demux-daemon', |
| 13 | demux_sources, |
| 14 | include_directories: libmctp_include_dir, |
| 15 | dependencies: demux_dep, |
| 16 | c_args: demux_args, |
| 17 | install: true, |
| 18 | ) |
| 19 | |
| 20 | pipe = executable('mctp-pipe', |
| 21 | 'mctp-pipe.c', |
| 22 | include_directories: libmctp_include_dir, |
| 23 | dependencies: [libmctp_dep], |
| 24 | install: false, |
| 25 | ) |
| 26 | |
| 27 | mctp_in = executable('mctp-in', |
| 28 | 'mctp-in.c', |
| 29 | include_directories: libmctp_include_dir, |
| 30 | dependencies: [libmctp_dep], |
| 31 | install: false, |
| 32 | ) |