summaryrefslogtreecommitdiff
path: root/core/fpdfapi/edit/BUILD.gn
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-15 23:48:29 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-15 23:48:29 +0000
commitf03f7810c30cb3d01517c0efc189d68e440c9162 (patch)
treef33e92d77b99b55bb2ae8dba6ba374cf3c6cb5f3 /core/fpdfapi/edit/BUILD.gn
parent1987bbfdbcc15e6954aa1340d1a55fda4a532914 (diff)
downloadpdfium-f03f7810c30cb3d01517c0efc189d68e440c9162.tar.xz
Split pdfium_unittests sources.
Move foo_unittest.cpp to the same BUILD.gn file as foo.cpp. Set up dependencies to make pdfium_unittests pass gn check. Change-Id: Id9f649d5d0c76fe4254f3887778516abb75fcbce Reviewed-on: https://pdfium-review.googlesource.com/c/43995 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/edit/BUILD.gn')
-rw-r--r--core/fpdfapi/edit/BUILD.gn15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/fpdfapi/edit/BUILD.gn b/core/fpdfapi/edit/BUILD.gn
index de1a404c87..6c88522590 100644
--- a/core/fpdfapi/edit/BUILD.gn
+++ b/core/fpdfapi/edit/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/jumbo.gni")
import("../../../pdfium.gni")
+import("../../../testing/test.gni")
jumbo_source_set("edit") {
sources = [
@@ -31,3 +32,17 @@ jumbo_source_set("edit") {
allow_circular_includes_from = [ "../parser" ]
visibility = [ "../../../*" ]
}
+
+pdfium_unittest_source_set("unittests") {
+ sources = [
+ "cpdf_pagecontentgenerator_unittest.cpp",
+ ]
+ deps = [
+ ":edit",
+ "../",
+ "../font",
+ "../page",
+ "../parser",
+ ]
+ pdfium_root_dir = "../../../"
+}