xref: /aosp_15_r20/external/pdfium/testing/tools/BUILD.gn (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1# Copyright 2023 The PDFium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("../../pdfium.gni")
6
7if (pdf_is_standalone) {
8  # Generates the list of inputs required by `test_runner.py` tests.
9  action("test_runner_py") {
10    testonly = true
11
12    write_runtime_deps = "${root_out_dir}/${target_name}.runtime_deps"
13
14    sources = [ write_runtime_deps ]
15    outputs = [ "${root_out_dir}/${target_name}.json" ]
16
17    script = "generate_cas_paths.py"
18    args = [
19             "--root",
20             rebase_path("../..", root_build_dir),
21           ] + rebase_path(sources + outputs, root_build_dir)
22
23    # Unbuilt runtime dependencies.
24    data = [
25      ".",
26      "../SUPPRESSIONS",
27      "../SUPPRESSIONS_EXACT_MATCHING",
28      "../SUPPRESSIONS_IMAGE_DIFF",
29      "../corpus/",
30      "../../.vpython3",
31      "../../build/skia_gold_common/",
32      "../../build/util/lib/",
33      "../../third_party/test_fonts/",
34      "../../tools/resultdb/",
35      "../../tools/skia_goldctl/",
36    ]
37
38    # Built runtime dependencies.
39    data_deps = [
40      "../../:pdfium_diff",
41      "../../samples:pdfium_test",
42    ]
43
44    # Force `data_deps` to be built before this target, rather than in parallel.
45    deps = data_deps
46  }
47}
48