mixed_executable.gni 718 B

1234567891011121314151617181920212223
  1. # Copyright 2021 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//build/config/rust.gni")
  5. import("//build/rust/mixed_target.gni")
  6. # Defines an executable containing both Rust and C++ code.
  7. # See mixed_target.gni for documentation.
  8. template("mixed_executable") {
  9. mixed_target(target_name) {
  10. target_type = "executable"
  11. forward_variables_from(invoker,
  12. "*",
  13. TESTONLY_AND_VISIBILITY + [ "rs_visibility" ])
  14. forward_variables_from(invoker, TESTONLY_AND_VISIBILITY)
  15. }
  16. }
  17. set_defaults("mixed_executable") {
  18. configs = default_executable_configs
  19. }