summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorChris Palmer <palmer@google.com>2014-06-26 16:01:46 -0700
committerChris Palmer <palmer@google.com>2014-06-26 16:01:46 -0700
commit9108ad211bf00d6e512af0919b743c1bf8b0eeb8 (patch)
treee4034b18bdb0e24d9f92100b6dbca1c6d497a656 /BUILD.gn
parenta548d30f8126d167210fdc26783454b0b3752004 (diff)
downloadpdfium-9108ad211bf00d6e512af0919b743c1bf8b0eeb8.tar.xz
Import Chromium base/numerics to resolve integer overflow.
We'll use this for integer overflows going forward. BUG=382606 R=jam@chromium.org Review URL: https://codereview.chromium.org/349363005
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn13
1 files changed, 13 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index fea9e33cc8..ff72a1dc6f 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -91,6 +91,7 @@ static_library("pdfium") {
configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ]
deps = [
+ ":safemath",
":fdrm",
":formfiller",
":fpdfapi",
@@ -117,6 +118,18 @@ static_library("pdfium") {
# Targets below this are only visible within this file.
visibility = ":*"
+component("safemath") {
+ sources = [
+ "third_party/logging.h",
+ "third_party/macros.h",
+ "third_party/template_util.h",
+ "third_party/numerics/safe_conversions.h",
+ "third_party/numerics/safe_conversions_impl.h",
+ "third_party/numerics/safe_math.h",
+ "third_party/numerics/safe_math_impl.h",
+ ],
+}
+
static_library("fdrm") {
sources = [
"core/include/fdrm/fx_crypt.h",