summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorcaryclark <caryclark@google.com>2016-11-16 10:10:03 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-16 10:10:03 -0800
commitaf177fe1c062d20b663a4a1c14924be85d0e631e (patch)
tree6c8a6dfd9de2f616bc606969e797fe205313e59b /BUILD.gn
parentd4f24c79c8b67401bdb1326c03083853326f7554 (diff)
downloadpdfium-af177fe1c062d20b663a4a1c14924be85d0e631e.tar.xz
Create a subset of skia support for paths only
This is a continuation of https://codereview.chromium.org/2346483006/ This removes the need for agg, without providing full Skia support. It doesn't work yet, but it does compile and run for simple PDFs. R=dsinclair@google.com Committed: https://pdfium.googlesource.com/pdfium/+/5d223298b26c9b2b6284cba9a51521d3873b6e58 Review-Url: https://codereview.chromium.org/2491693002
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn8
1 files changed, 6 insertions, 2 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 831a5a0701..847e47f499 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -23,6 +23,10 @@ config("pdfium_common_config") {
defines += [ "_SKIA_SUPPORT_" ]
}
+ if (pdf_use_skia_paths) {
+ defines += [ "_SKIA_SUPPORT_PATHS_" ]
+ }
+
if (pdf_enable_v8) {
defines += [ "PDF_ENABLE_V8" ]
}
@@ -845,7 +849,7 @@ static_library("fxge") {
]
}
- if (pdf_use_skia) {
+ if (pdf_use_skia || pdf_use_skia_paths) {
sources += [ "core/fxge/skia/fx_skia_device.cpp" ]
deps += [ "//skia" ]
} else {
@@ -1691,7 +1695,7 @@ test("pdfium_unittests") {
"xfa/fxfa/parser/xfa_utils_unittest.cpp",
]
}
- if (pdf_use_skia) {
+ if (pdf_use_skia || pdf_use_skia_paths) {
sources += [ "core/fxge/skia/fx_skia_device_unittest.cpp" ]
deps += [ "//skia" ]
}