| 1 |
project('diatest', 'cpp') |
| 2 |
|
| 3 |
if host_machine.system() != 'windows' |
| 4 |
error('MESON_SKIP_TEST: unsupported platform') |
| 5 |
endif |
| 6 |
cpp = meson.get_compiler('cpp', native: false) |
| 7 |
is_msvc_clang = cpp.get_id() == 'clang' and cpp.get_define('_MSC_VER') != '' |
| 8 |
if not ['msvc', 'clang-cl'].contains(cpp.get_id()) and not is_msvc_clang |
| 9 |
error('MESON_SKIP_TEST: unsupported compiler') |
| 10 |
endif |
| 11 |
|
| 12 |
dia = dependency('diasdk', required: true) |
| 13 |
executable('dia_registered', ['dia_registered.cpp'], dependencies:[dia]) |