xref: /openbmc/dbus-sensors/src/intel-cpu/meson.build (revision d7be555ee0d885418e9a862b16565a0474c68d14)
1*d7be555eSGeorge Liusrc_inc = ['..']
2*d7be555eSGeorge Liuif not meson.get_compiler('cpp').has_header('linux/peci-ioctl.h')
3*d7be555eSGeorge Liu    src_inc += ['../../include']
4*d7be555eSGeorge Liuendif
5*d7be555eSGeorge Liu
6*d7be555eSGeorge Liuexecutable(
7*d7be555eSGeorge Liu    'intelcpusensor',
8*d7be555eSGeorge Liu    'IntelCPUSensorMain.cpp',
9*d7be555eSGeorge Liu    'IntelCPUSensor.cpp',
10*d7be555eSGeorge Liu    dependencies: [
11*d7be555eSGeorge Liu        default_deps,
12*d7be555eSGeorge Liu        gpiodcxx,
13*d7be555eSGeorge Liu        thresholds_dep,
14*d7be555eSGeorge Liu        utils_dep,
15*d7be555eSGeorge Liu        peci_dep,
16*d7be555eSGeorge Liu    ],
17*d7be555eSGeorge Liu    include_directories: src_inc,
18*d7be555eSGeorge Liu    install: true,
19*d7be555eSGeorge Liu)