| # Copyright 2018 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| config("filesystem_config") { |
| visibility = [ ":*" ] |
| |
| # We want callers to refer to headers in this folders using the "files" |
| # prefix. |
| include_dirs = [ ".." ] |
| } |
| |
| source_set("filesystem") { |
| visibility = [ "../*" ] |
| |
| configs += [ "../../:config" ] |
| |
| sources = [ |
| "eintr_wrapper.h", |
| "file.cc", |
| "file.h", |
| "path.h", |
| "portable_unistd.h", |
| ] |
| |
| if (is_win) { |
| sources += [ "path_win.cc" ] |
| } else { |
| sources += [ "path_posix.cc" ] |
| } |
| |
| deps = [ |
| "../../common", |
| ] |
| |
| public_configs = [ ":filesystem_config" ] |
| } |