From f5676902418f4914bacbe32ccf8f7ff562518554 Mon Sep 17 00:00:00 2001 From: Nicolas Pena Date: Mon, 15 May 2017 13:51:40 -0400 Subject: Check correctness of PDF Skia args MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Commit-Queue: dsinclair Reviewed-by: Cary Clark Reviewed-by: dsinclair --- pdfium.gni | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pdfium.gni') 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") +} -- cgit v1.2.3