From f03f7810c30cb3d01517c0efc189d68e440c9162 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 15 Oct 2018 23:48:29 +0000 Subject: 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 Reviewed-by: Tom Sepez --- core/fdrm/BUILD.gn | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'core/fdrm/BUILD.gn') diff --git a/core/fdrm/BUILD.gn b/core/fdrm/BUILD.gn index 7a083ffd63..ce70689879 100644 --- a/core/fdrm/BUILD.gn +++ b/core/fdrm/BUILD.gn @@ -4,6 +4,7 @@ import("//build/config/jumbo.gni") import("../../pdfium.gni") +import("../../testing/test.gni") jumbo_source_set("fdrm") { sources = [ @@ -18,3 +19,13 @@ jumbo_source_set("fdrm") { ] visibility = [ "../../*" ] } + +pdfium_unittest_source_set("unittests") { + sources = [ + "fx_crypt_unittest.cpp", + ] + deps = [ + ":fdrm", + ] + pdfium_root_dir = "../../" +} -- cgit v1.2.3