diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/BUILD.gn | 1 | ||||
-rw-r--r-- | testing/test.gni | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/testing/BUILD.gn b/testing/BUILD.gn index 0dd6a82071..c231e2207f 100644 --- a/testing/BUILD.gn +++ b/testing/BUILD.gn @@ -10,6 +10,7 @@ jumbo_source_set("test_support") { sources = [ "fx_string_testhelpers.cpp", "fx_string_testhelpers.h", + "pseudo_retainable.h", "string_write_stream.cpp", "string_write_stream.h", "test_support.cpp", diff --git a/testing/test.gni b/testing/test.gni index b69a0706ec..0bfac4666c 100644 --- a/testing/test.gni +++ b/testing/test.gni @@ -263,3 +263,24 @@ set_defaults("test") { configs = default_executable_configs } } + +template("pdfium_unittest_source_set") { + source_set(target_name) { + _pdfium_root_dir = rebase_path(invoker.pdfium_root_dir, ".") + + testonly = true + sources = invoker.sources + configs += [ _pdfium_root_dir + ":pdfium_core_config" ] + if (defined(invoker.configs)) { + configs += invoker.configs + } + deps = [ + _pdfium_root_dir + ":pdfium_unittest_deps", + ] + if (defined(invoker.deps)) { + deps += invoker.deps + } + visibility = [ _pdfium_root_dir + ":*" ] + forward_variables_from(invoker, [ "cflags" ]) + } +} |