taisei/src/vfs/meson.build
2019-05-11 19:26:01 +03:00

44 lines
826 B
Meson

vfs_src = files(
'nodeapi.c',
'pathutil.c',
'private.c',
'public.c',
'readonly_wrapper.c',
'syspath_public.c',
'union.c',
'union_public.c',
'vdir.c',
'zipfile_public.c',
)
if taisei_deps.contains(dep_zip)
vfs_src += files(
'zipfile.c',
'zippath.c',
)
else
vfs_src += files(
'zipfile_null.c',
)
endif
if have_posix
vfs_src += files('syspath_posix.c')
elif host_machine.system() == 'windows'
vfs_src += files('syspath_win32.c')
else
vfs_src += files('syspath_posix.c') # eeehh, maybe it'll work ¯\_(ツ)_/¯
endif
if host_machine.system() == 'emscripten'
vfs_src += files(
'setup_emscripten.c',
'sync_emscripten.c',
)
else
vfs_src += files(
'setup_generic.c',
'sync_noop.c',
)
endif