diff options
Diffstat (limited to 'testing/test.gni')
-rw-r--r-- | testing/test.gni | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/test.gni b/testing/test.gni index 0bfac4666c..9b72dc8ac0 100644 --- a/testing/test.gni +++ b/testing/test.gni @@ -284,3 +284,24 @@ template("pdfium_unittest_source_set") { forward_variables_from(invoker, [ "cflags" ]) } } + +template("pdfium_embeddertest_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_embeddertest_deps", + ] + if (defined(invoker.deps)) { + deps += invoker.deps + } + visibility = [ _pdfium_root_dir + ":*" ] + forward_variables_from(invoker, [ "cflags" ]) + } +} |