2022-01-04 01:50:46 -05:00
|
|
|
project('riscv-qtech-os', ['c', 'cpp'],
|
|
|
|
default_options: [
|
|
|
|
'cpp_std=gnu++20',
|
|
|
|
'c_std=gnu11',
|
2022-07-31 22:57:40 -04:00
|
|
|
'warning_level=3',
|
|
|
|
'werror=false',
|
|
|
|
'buildtype=debugoptimized',
|
|
|
|
# 'buildtype=release',
|
2022-01-03 19:11:49 -05:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2022-01-04 01:50:46 -05:00
|
|
|
if not meson.is_cross_build()
|
|
|
|
error('Kernel must be cross compiled')
|
|
|
|
endif
|
|
|
|
|
2022-07-31 22:57:40 -04:00
|
|
|
c = meson.get_compiler('cpp')
|
|
|
|
cxx = meson.get_compiler('cpp')
|
2022-01-04 01:50:46 -05:00
|
|
|
arch = host_machine.cpu_family()
|
|
|
|
platform = 'allwinner-d1'
|
|
|
|
# platform = 'qemu'
|
2022-01-03 19:11:49 -05:00
|
|
|
|
2022-01-04 01:50:46 -05:00
|
|
|
subdir('kernel')
|