From 16adb3e0461ba8f5e641900c90b84be5af5c428f Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Wed, 4 Apr 2018 17:44:31 +0000 Subject: 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 Commit-Queue: Ryan Harrison --- samples/DEPS | 1 + 1 file changed, 1 insertion(+) (limited to 'samples/DEPS') 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', -- cgit v1.2.3