| # Copyright lowRISC contributors. |
| # Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| # SPDX-License-Identifier: Apache-2.0 |
| sw_lib_testing_bitfield = declare_dependency( |
| link_with: static_library( |
| meson.source_root() / 'sw/device/lib/base/bitfield.c', |
| sw_lib_base_testing_mock_mmio = declare_dependency( |
| link_with: static_library( |
| meson.source_root() / 'sw/device/lib/base/mmio.c', |
| cpp_args: ['-DMOCK_MMIO'], |
| # Example test using mock_mmio.h, which also serves to |
| # test that mock_mmio.h works correctly. |
| test('mock_mmio_test', executable( |
| sources: ['mock_mmio_test.cc'], |
| sw_lib_base_testing_mock_mmio, |
| cpp_args: ['-DMOCK_MMIO'], |