summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-03-13 09:35:12 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-03-13 19:53:01 +0000
commit77e2a6c4589dcedb61789beefb1605ba2c0f1aff (patch)
tree2689eab40bd19c958155ff6b1d2eac45da3afbec /BUILD.gn
parent375c2764b56b38cc9326a8f8ef668fbf78234e9a (diff)
downloadpdfium-77e2a6c4589dcedb61789beefb1605ba2c0f1aff.tar.xz
Add utf-8 flag to win build.
Tell VC++ that the pdfium source files are encoded in UTF-8 so that it doesn't interpret them as being encoded in the local code page. Change-Id: Ide74061cad523a873ffa5630781dfc47bf7ae79c Reviewed-on: https://pdfium-review.googlesource.com/2961 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn5
1 files changed, 5 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index ecac406fff..be35522321 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -59,6 +59,11 @@ config("pdfium_common_config") {
]
ldflags += [ "--coverage" ]
}
+
+ if (is_win) {
+ # Assume UTF-8 by default to avoid code page dependencies.
+ cflags += [ "/utf-8" ]
+ }
}
config("pdfium_core_config") {