tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

logdog_wrapper.gni (1074B)


      1 # Copyright 2024 The Chromium Authors
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 import("//chromium/build/util/generate_wrapper.gni")
      6 
      7 # Defines a generated_wrapper script test under bin/ in the build dir that is
      8 # itself wrapped by the logdog_wrapper.py tool, which will automatically stream
      9 # the device's logcats to logdog.
     10 template("logdog_wrapper_script_test") {
     11   generate_wrapper(target_name) {
     12     forward_variables_from(invoker,
     13                            "*",
     14                            [
     15                              "args",
     16                              "data_deps",
     17                            ])
     18     executable = "../../build/android/test_wrapper/logdog_wrapper.py"
     19     wrapper_script = "$root_out_dir/bin/run_${target_name}"
     20     testonly = true
     21 
     22     executable_args = []
     23     if (defined(invoker.args)) {
     24       executable_args += invoker.args
     25     }
     26 
     27     data_deps = [ "//chromium/build/android:logdog_wrapper_py" ]
     28     if (defined(invoker.data_deps)) {
     29       data_deps += invoker.data_deps
     30     }
     31   }
     32 }