| # Copyright 2021 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/rust/cargo_crate.gni") |
| |
| cargo_crate("lib") { |
| crate_name = "cxx" |
| epoch = "1" |
| crate_type = "rlib" |
| crate_root = "crate/src/lib.rs" |
| |
| # Unit tests skipped. Generate with --with-tests to include them |
| skip_unit_tests = true |
| sources = [ "crate/src/lib.rs" ] |
| edition = "2018" |
| deps = [ |
| "//third_party/rust/cxxbridge_macro/v1:lib($host_toolchain)", |
| "//third_party/rust/link_cplusplus/v1:lib", |
| ] |
| build_root = "crate/build.rs" |
| build_sources = [ "crate/build.rs" ] |
| } |