scx-upstream/scheds/meson.build
Ming Yang 1b5359ef4a Use per-arch vmlinux.h v2
Rework per-arch vmlinux solution
* have per-arch directory under sched/include/arch/, in which we
  maintain vmlinux.h symlink and real file
  vmlinux-{kernel_ver}-g{sha1}.h. The original sched/include/vmlinux/
  folder is removed.
* update meson build `-I` option to find the new vmlinux.h position
* update cargo build scripts to use the per-arch vmlinux.h for
  generating bindings
* keep the original ClangInfo refactoring changes

Signed-off-by: Ming Yang <minos.future@gmail.com>
2024-10-19 10:50:59 -07:00

12 lines
535 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/arch/' + arch_dict[cpu]),
'-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('c')