tor-browser

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

BUILD.gn (1143B)


      1 # Copyright 2013 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/lastchange.gni")
      6 
      7 action("chromium_git_revision") {
      8   script = "version.py"
      9 
     10   template_file = "chromium_git_revision.h.in"
     11   inputs = [ "android_chrome_version.py" ]
     12 
     13   sources = [
     14     lastchange_file,
     15     template_file,
     16   ]
     17 
     18   output_file = "$target_gen_dir/chromium_git_revision.h"
     19   outputs = [ output_file ]
     20 
     21   args = [
     22     # LASTCHANGE contains "<build hash>-<ref>".  The user agent only wants the
     23     # "<build hash>" bit, so chop off everything after it.
     24     "-e",
     25     "LASTCHANGE=LASTCHANGE[:LASTCHANGE.find('-')]",
     26     "-f",
     27     rebase_path(lastchange_file, root_build_dir),
     28     rebase_path(template_file, root_build_dir),
     29     rebase_path(output_file, root_build_dir),
     30   ]
     31 }
     32 
     33 group("test_results") {
     34   data = [
     35     "//.vpython3",
     36     "//chromium/build/util/lib/__init__.py",
     37     "//chromium/build/util/lib/results/",
     38   ]
     39 }
     40 
     41 group("proto") {
     42   data = [
     43     "//.vpython3",
     44     "//chromium/build/util/lib/__init__.py",
     45     "//chromium/build/util/lib/proto/",
     46   ]
     47 }