tor-browser

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

BUILD.gn (596B)


      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/rust/rust_bindgen.gni")
      6 import("//chromium/build/rust/rust_executable.gni")
      7 
      8 source_set("cpp_lib") {
      9   sources = [
     10     "cpp.cc",
     11     "cpp.h",
     12   ]
     13 }
     14 
     15 rust_bindgen("cpp_lib_bindgen") {
     16   deps = [ ":cpp_lib" ]
     17   header = "cpp.h"
     18   cpp = true
     19 }
     20 
     21 rust_executable("bindgen_cpp_test") {
     22   deps = [
     23     ":cpp_lib",
     24     ":cpp_lib_bindgen",
     25   ]
     26   sources = [ "main.rs" ]
     27   crate_root = "main.rs"
     28 
     29   allow_unsafe = true  # Needed for FFI.
     30 }