mirror of
https://github.com/janet-lang/janet
synced 2025-01-12 16:40:27 +00:00
Add include_directories to meson
Before, a local build would only work if system headers were installed.
This commit is contained in:
parent
6016662807
commit
90c5d12613
@ -111,6 +111,7 @@ mainclient_src = [
|
|||||||
|
|
||||||
# Build boot binary
|
# Build boot binary
|
||||||
janet_boot = executable('janet-boot', core_src, boot_src, boot_gen,
|
janet_boot = executable('janet-boot', core_src, boot_src, boot_gen,
|
||||||
|
include_directories : incdir,
|
||||||
c_args : '-DJANET_BOOTSTRAP',
|
c_args : '-DJANET_BOOTSTRAP',
|
||||||
dependencies : [m_dep, dl_dep])
|
dependencies : [m_dep, dl_dep])
|
||||||
|
|
||||||
@ -121,9 +122,11 @@ core_image = custom_target('core_image',
|
|||||||
command : [janet_boot, '@OUTPUT@', 'JANET_PATH', janet_path])
|
command : [janet_boot, '@OUTPUT@', 'JANET_PATH', janet_path])
|
||||||
|
|
||||||
libjanet = shared_library('janet', core_src, core_image,
|
libjanet = shared_library('janet', core_src, core_image,
|
||||||
|
include_directories : incdir,
|
||||||
dependencies : [m_dep, dl_dep],
|
dependencies : [m_dep, dl_dep],
|
||||||
install : true)
|
install : true)
|
||||||
janet_mainclient = executable('janet', core_src, core_image, init_gen, mainclient_src,
|
janet_mainclient = executable('janet', core_src, core_image, init_gen, mainclient_src,
|
||||||
|
include_directories : incdir,
|
||||||
dependencies : [m_dep, dl_dep],
|
dependencies : [m_dep, dl_dep],
|
||||||
install : true)
|
install : true)
|
||||||
|
|
||||||
@ -143,6 +146,7 @@ amalg = custom_target('amalg',
|
|||||||
|
|
||||||
# Amalgamated client
|
# Amalgamated client
|
||||||
janet_amalgclient = executable('janet-amalg', amalg, init_gen, mainclient_src,
|
janet_amalgclient = executable('janet-amalg', amalg, init_gen, mainclient_src,
|
||||||
|
include_directories : incdir,
|
||||||
dependencies : [m_dep, dl_dep],
|
dependencies : [m_dep, dl_dep],
|
||||||
build_by_default : false)
|
build_by_default : false)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user