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/fxcodec/BUILD.gn | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'core/fxcodec') diff --git a/core/fxcodec/BUILD.gn b/core/fxcodec/BUILD.gn index 4c06d5540f..1c68956711 100644 --- a/core/fxcodec/BUILD.gn +++ b/core/fxcodec/BUILD.gn @@ -4,6 +4,7 @@ import("//build/config/jumbo.gni") import("../../pdfium.gni") +import("../../testing/test.gni") jumbo_source_set("fxcodec") { sources = [ @@ -124,3 +125,25 @@ jumbo_source_set("fxcodec") { } visibility = [ "../../*" ] } + +pdfium_unittest_source_set("unittests") { + sources = [ + "codec/fx_codec_a85_unittest.cpp", + "codec/fx_codec_jpx_unittest.cpp", + "codec/fx_codec_rle_unittest.cpp", + "jbig2/JBig2_BitStream_unittest.cpp", + "jbig2/JBig2_Image_unittest.cpp", + ] + deps = [ + ":fxcodec", + "../fpdfapi/parser", + ] + pdfium_root_dir = "../../" + + if (pdf_enable_xfa && pdf_enable_xfa_gif) { + sources += [ + "gif/cfx_gifcontext_unittest.cpp", + "gif/cfx_lzwdecompressor_unittest.cpp", + ] + } +} -- cgit v1.2.3