tor-browser

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

BUILD.gn (911B)


      1 # Copyright 2022 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/config/rust.gni")
      6 import("//chromium/build/rust/rust_executable.gni")
      7 import("//chromium/build/rust/rust_static_library.gni")
      8 
      9 rust_executable("test_aliased_deps_exe") {
     10   crate_root = "main.rs"
     11   sources = [ crate_root ]
     12   deps = [ ":test_aliased_deps" ]
     13 }
     14 
     15 rust_static_library("test_aliased_deps") {
     16   crate_root = "lib.rs"
     17   sources = [ crate_root ]
     18   deps = [ ":real_name" ]
     19   aliased_deps = {
     20     other_name = ":real_name"
     21   }
     22   build_native_rust_unit_tests = true
     23 }
     24 
     25 rust_static_library("real_name") {
     26   # Using a fixed crate_name here which does not work with `import!` because
     27   # we're testing `aliased_deps` which also does not work with `import!`.
     28   crate_name = "real_name"
     29   crate_root = "real_name.rs"
     30   sources = [ crate_root ]
     31 }