summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-05-15 13:51:40 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-05-15 18:05:01 +0000
commitf5676902418f4914bacbe32ccf8f7ff562518554 (patch)
treeb5c2a9aaa68484bd753b284574b4b23e1d6976a9
parent34f8e1fd650883c8107d925a6c6b87090d52d278 (diff)
downloadpdfium-f5676902418f4914bacbe32ccf8f7ff562518554.tar.xz
Check correctness of PDF Skia args
Users get confused when they set both Skia args to true and their code does not compile. This CL adds a check for this when generating gn args. Bug: pdfium:722 Change-Id: I0fb6f6a3fa64b094b674c602f38c736ee7b7fd65 Reviewed-on: https://pdfium-review.googlesource.com/5510 Commit-Queue: Nicolás Peña <npm@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Cary Clark <caryclark@google.com> Reviewed-by: dsinclair <dsinclair@chromium.org>
-rw-r--r--pdfium.gni4
1 files changed, 4 insertions, 0 deletions
diff --git a/pdfium.gni b/pdfium.gni
index d570385406..b28ff8b163 100644
--- a/pdfium.gni
+++ b/pdfium.gni
@@ -56,3 +56,7 @@ declare_args() {
# Don't build against bundled zlib.
use_system_zlib = false
}
+
+if (pdf_use_skia && pdf_use_skia_paths) {
+ assert(false, "Enable at most ONE of pdf_use_skia and pdf_use_skia_paths")
+}