xref: /openbmc/entity-manager/src/fru_device/meson.build (revision 89092a9ccd91f315aea7814040521f2107d9594e)
13cbff97fSChristopher Meiscpp_args_fd = cpp_args
23cbff97fSChristopher Meisif get_option('fru-device-resizefru')
33cbff97fSChristopher Meis    cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
43cbff97fSChristopher Meisendif
53cbff97fSChristopher Meisdetect_mode = get_option('fru-device-16bitdetectmode')
6*89092a9cSNaresh Solanki
7*89092a9cSNaresh Solankicpp_args_fd += [
8*89092a9cSNaresh Solanki    '-DFRU_DEVICE_16BITDETECTMODE="' + detect_mode + '"',
9*89092a9cSNaresh Solanki    '-DENABLE_FRU_UPDATE_PROPERTY=' + (get_option('fru-device-update-property') == 'all' ? '1' : '0'),
10*89092a9cSNaresh Solanki]
11*89092a9cSNaresh Solanki
123cbff97fSChristopher Meisexecutable(
133cbff97fSChristopher Meis    'fru-device',
143cbff97fSChristopher Meis    'fru_device.cpp',
153cbff97fSChristopher Meis    '../utils.cpp',
163cbff97fSChristopher Meis    'fru_utils.cpp',
173cbff97fSChristopher Meis    'fru_reader.cpp',
183cbff97fSChristopher Meis    cpp_args: cpp_args_fd,
193cbff97fSChristopher Meis    dependencies: [
203cbff97fSChristopher Meis        boost,
213cbff97fSChristopher Meis        i2c,
223cbff97fSChristopher Meis        nlohmann_json_dep,
233cbff97fSChristopher Meis        phosphor_logging_dep,
243cbff97fSChristopher Meis        sdbusplus,
253cbff97fSChristopher Meis        threads,
263cbff97fSChristopher Meis        valijson,
273cbff97fSChristopher Meis    ],
283cbff97fSChristopher Meis    install: true,
293cbff97fSChristopher Meis    install_dir: installdir,
303cbff97fSChristopher Meis)
313cbff97fSChristopher Meis
323cbff97fSChristopher Meis
33