summaryrefslogtreecommitdiffstats
path: root/chromium/build/rust/mixed_executable.gni
blob: ced6426e7cf815e95610781b9d6a8a8123bd97aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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/config/rust.gni")
import("//build/rust/mixed_target.gni")

# Defines an executable containing both Rust and C++ code.
# See mixed_target.gni for documentation.

template("mixed_executable") {
  mixed_target(target_name) {
    target_type = "executable"
    forward_variables_from(invoker,
                           "*",
                           TESTONLY_AND_VISIBILITY + [ "rs_visibility" ])
    forward_variables_from(invoker, TESTONLY_AND_VISIBILITY)
  }
}

set_defaults("mixed_executable") {
  configs = default_executable_configs
}