mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-25 20:20:23 +00:00
6343bcf360
Introduce an option to enable/disable the build of all the Rust sub-projects. This can be useful to build scx on those systems where Rust is not fully supported (e.g., armhf). Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
16 lines
608 B
Meson
16 lines
608 B
Meson
# BPF compilation uses the gen_bpf_o generator. The following should be
|
|
# passed in as extra_args.
|
|
bpf_includes = ['-I', join_paths(meson.current_source_dir(), 'include'),
|
|
'-I', join_paths(meson.current_source_dir(), 'include/vmlinux'),
|
|
'-I', join_paths(meson.current_source_dir(), 'include/bpf-compat'),]
|
|
|
|
# Common include paths for user C compilation. The following should be
|
|
# passed in as executable::include_directories.
|
|
user_c_includes = include_directories('include')
|
|
|
|
subdir('kernel-examples')
|
|
if get_option('enable_rust')
|
|
subdir('rust-user')
|
|
endif
|
|
subdir('c-user')
|