From 90c5d126137461f42ed7abde0174d54cd123f2df Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 23 Mar 2019 15:02:59 -0400 Subject: [PATCH] Add include_directories to meson Before, a local build would only work if system headers were installed. --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 84906a59..2d3ff800 100644 --- a/meson.build +++ b/meson.build @@ -111,6 +111,7 @@ mainclient_src = [ # Build boot binary janet_boot = executable('janet-boot', core_src, boot_src, boot_gen, + include_directories : incdir, c_args : '-DJANET_BOOTSTRAP', dependencies : [m_dep, dl_dep]) @@ -121,9 +122,11 @@ core_image = custom_target('core_image', command : [janet_boot, '@OUTPUT@', 'JANET_PATH', janet_path]) libjanet = shared_library('janet', core_src, core_image, + include_directories : incdir, dependencies : [m_dep, dl_dep], install : true) janet_mainclient = executable('janet', core_src, core_image, init_gen, mainclient_src, + include_directories : incdir, dependencies : [m_dep, dl_dep], install : true) @@ -143,6 +146,7 @@ amalg = custom_target('amalg', # Amalgamated client janet_amalgclient = executable('janet-amalg', amalg, init_gen, mainclient_src, + include_directories : incdir, dependencies : [m_dep, dl_dep], build_by_default : false)