)
index_html_tmp_env = [
- 'BABL_PATH=' + meson.build_root() / 'extensions',
+ 'BABL_PATH=' + babl_extensions_build_dir,
]
# Don't build babl ref if cannot run compiled objects in this env
-if env_bin.found() and cc_can_run # and not meson.is_cross_build()
+if env_bin.found() and cc_can_run
index_html_tmp = custom_target('index.html.tmp',
- input : [ babl_html_dump, ],
- output: [ 'index.html.tmp', ],
+ input : babl_html_dump,
+ output:'index.html.tmp',
command: [
env_bin,
index_html_tmp_env,
endif
test_env = environment()
-test_env.prepend('LD_LIBRARY_PATH', join_paths(meson.build_root(), 'babl'))
-test_env.set('GI_TYPELIB_PATH', join_paths(meson.build_root(), 'babl'))
-test_env.set('BABL_PATH', join_paths(meson.build_root(), 'extensions'))
+test_env.prepend('LD_LIBRARY_PATH', babl_library_build_dir)
+test_env.set('GI_TYPELIB_PATH', babl_library_build_dir)
+test_env.set('BABL_PATH', babl_extensions_build_dir)
foreach test_name : test_names
test = executable(
test_name,