1 2vfs_src = files( 3 'loadpacks.c', 4 'nodeapi.c', 5 'pathutil.c', 6 'private.c', 7 'public.c', 8 'readonly_wrapper.c', 9 'syspath_public.c', 10 'union.c', 11 'union_public.c', 12 'vdir.c', 13 'zipfile_public.c', 14) 15 16if taisei_deps.contains(dep_zip) 17 vfs_src += files( 18 'zipfile.c', 19 'zippath.c', 20 ) 21else 22 vfs_src += files( 23 'zipfile_null.c', 24 ) 25endif 26 27if have_posix 28 vfs_src += files('syspath_posix.c') 29elif host_machine.system() == 'windows' 30 vfs_src += files('syspath_win32.c') 31else 32 vfs_src += files('syspath_posix.c') # eeehh, maybe it'll work ¯\_(ツ)_/¯ 33endif 34 35if host_machine.system() == 'emscripten' 36 vfs_src += files( 37 'setup_emscripten.c', 38 'sync_emscripten.c', 39 ) 40elif host_machine.system() == 'nx' 41 vfs_src += files( 42 'setup_switch.c', 43 'sync_noop.c', 44 ) 45else 46 vfs_src += files( 47 'setup_generic.c', 48 'sync_noop.c', 49 ) 50endif 51 52subdir('platform_paths') 53vfs_src += vfs_platform_paths_src 54