diff options
author | Ryan Harrison <rharrison@chromium.org> | 2018-04-04 17:44:31 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-04 17:44:31 +0000 |
commit | 16adb3e0461ba8f5e641900c90b84be5af5c428f (patch) | |
tree | ff3824bb739a0e2307955a661959aa18c4e2ad50 /samples/DEPS | |
parent | dc566b0a76f9d2ad112c8cc35fa6dc8eaf942316 (diff) | |
download | pdfium-16adb3e0461ba8f5e641900c90b84be5af5c428f.tar.xz |
Expand ~ when present in directory path
pdfium_test currently isn't expanding ~ in paths that are passed in
for directories, which is causing commands like this pdfium_test
--font-dir=~/Fonts to fail. This CL adds in performing sh style
expansion on the ~ character for --font-dir and --bin-dir.
This change depends on POSIX wordexp being available, so guarding the
code with checks for Linux || OSX, since those are the only platforms
that we build for that are POSIX complient in this regard.
BUG=pdfium:1027
Change-Id: I05d518dfa71d95c3b0cfd1f4b382e0a6f4a0f515
Reviewed-on: https://pdfium-review.googlesource.com/28611
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'samples/DEPS')
-rw-r--r-- | samples/DEPS | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/DEPS b/samples/DEPS index 26f9ee22eb..c77b78bfbd 100644 --- a/samples/DEPS +++ b/samples/DEPS @@ -1,4 +1,5 @@ include_rules = [ + '+core/fxcrt', '+public', '+third_party/skia/include', '+v8', |