/third_party/gn/examples/rust_example/build/ |
D | BUILD.gn | 3 depfile = "{{target_out_dir}}/{{crate_name}}.d" 4 outfile = "{{target_out_dir}}/{{crate_name}}" 5 …command = "rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} --emit=dep-inf… 11 depfile = "{{target_out_dir}}/{{crate_name}}.d" 12 outfile = "{{target_out_dir}}/{{crate_name}}.a" 13 …command = "rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} --emit=dep-inf… 19 depfile = "{{target_out_dir}}/{{crate_name}}.d" 20 outfile = "{{target_out_dir}}/lib{{crate_name}}.rlib" 21 …command = "rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} --emit=dep-inf… 27 depfile = "{{target_out_dir}}/{{crate_name}}.d" [all …]
|
/third_party/gn/src/gn/ |
D | ninja_rust_binary_target_writer_unittest.cc | 44 target.rust_values().crate_name() = "foo_bar"; in TEST_F() 98 private_rlib.rust_values().crate_name() = "privatecrate"; in TEST_F() 139 far_public_rlib.rust_values().crate_name() = "farcrate"; in TEST_F() 179 public_rlib.rust_values().crate_name() = "publiccrate"; in TEST_F() 220 rlib.rust_values().crate_name() = "direct"; in TEST_F() 234 target.rust_values().crate_name() = "main_crate"; in TEST_F() 285 private_inside_dylib.rust_values().crate_name() = "private_inside"; in TEST_F() 325 inside_dylib.rust_values().crate_name() = "inside"; in TEST_F() 366 dylib.rust_values().crate_name() = "mylib"; in TEST_F() 411 private_dylib.rust_values().crate_name() = "private_dylib"; in TEST_F() [all …]
|
D | ninja_rust_binary_target_writer.cc | 43 target->rust_values().crate_name(), opts, out); in WriteCrateVars() 262 auto write_extern_lib_file = [this](std::string_view crate_name, in WriteExternsAndDeps() 265 out_ << crate_name; in WriteExternsAndDeps() 278 std::string_view crate_name; in WriteExternsAndDeps() local 281 crate_name = it->second; in WriteExternsAndDeps() 283 crate_name = dep.rust_values().crate_name(); in WriteExternsAndDeps() 287 out_ << crate_name; in WriteExternsAndDeps() 334 for (const auto& [crate_name, lib_file] : cur.externs()) { in WriteExternsAndDeps() 335 write_extern_lib_file(crate_name, lib_file); in WriteExternsAndDeps()
|
D | rust_project_writer_unittest.cc | 39 target.rust_values().crate_name() = "foo"; in TEST_F() 93 dep.rust_values().crate_name() = "tortoise"; in TEST_F() 104 target.rust_values().crate_name() = "hare"; in TEST_F() 179 dep.rust_values().crate_name() = "tortoise"; in TEST_F() 190 dep2.rust_values().crate_name() = "achilles"; in TEST_F() 201 target.rust_values().crate_name() = "hare"; in TEST_F() 301 dep.rust_values().crate_name() = "tortoise"; in TEST_F() 326 dep4.rust_values().crate_name() = "tortoise_macro"; in TEST_F() 337 target.rust_values().crate_name() = "hare"; in TEST_F() 441 target.rust_values().crate_name() = "foo"; in TEST_F() [all …]
|
D | rust_project_writer_helpers_unittest.cc | 313 target.rust_values().crate_name() = "foo"; in TEST_F() 335 target.rust_values().crate_name() = "foo"; in TEST_F() 357 target.rust_values().crate_name() = "foo"; in TEST_F() 378 target.rust_values().crate_name() = "foo"; in TEST_F() 400 target.rust_values().crate_name() = "foo"; in TEST_F() 422 target.rust_values().crate_name() = "foo"; in TEST_F()
|
D | rust_variables.cc | 45 const char kRustCrateName[] = "crate_name"; 47 "crate_name: [string] The name for the compiled crate."; 49 R"(crate_name: [string] The name for the compiled crate. 54 If crate_name is not set, then this rule will use the target name.
|
D | rust_values.h | 40 std::string& crate_name() { return crate_name_; } in crate_name() function 41 const std::string& crate_name() const { return crate_name_; } in crate_name() function
|
D | ninja_c_binary_target_writer_unittest.cc | 1354 library_target.rust_values().crate_name() = "foo"; in TEST_F() 1462 priv_in_staticlib.rust_values().crate_name() = "priv_in_staticlib"; in TEST_F() 1477 pub_in_staticlib.rust_values().crate_name() = "pub_in_staticlib"; in TEST_F() 1491 priv_in_dylib.rust_values().crate_name() = "priv_in_dylib"; in TEST_F() 1504 pub_in_dylib.rust_values().crate_name() = "pub_in_dylib"; in TEST_F() 1527 dylib.rust_values().crate_name() = "dylib"; in TEST_F() 1599 pub_in_staticlib.rust_values().crate_name() = "pub_in_staticlib"; in TEST_F() 1612 priv_in_staticlib.rust_values().crate_name() = "priv_in_staticlib"; in TEST_F() 1636 priv_in_procmacro.rust_values().crate_name() = "priv_in_procmacro"; in TEST_F() 1651 pub_in_procmacro.rust_values().crate_name() = "pub_in_procmacro"; in TEST_F() [all …]
|
D | rust_values_generator.cc | 72 target_->rust_values().crate_name() = target_->label().name(); in FillCrateName() 78 target_->rust_values().crate_name() = std::move(value->string_value()); in FillCrateName()
|
D | rust_project_writer.cc | 246 std::string_view crate_name) { in AddSysrootDependencyToCrate() argument 247 if (const auto crate_idx = sysroot.find(crate_name); in AddSysrootDependencyToCrate() 249 crate->AddDependency(crate_idx->second, std::string(crate_name)); in AddSysrootDependencyToCrate() 353 crate.AddDependency(idx, dep->rust_values().crate_name()); in AddTarget()
|
D | functions_target_rust_unittest.cc | 32 ASSERT_EQ(item_collector.back()->AsTarget()->rust_values().crate_name(), in TEST_F() 43 ASSERT_EQ(item_collector.back()->AsTarget()->rust_values().crate_name(), in TEST_F() 45 << item_collector.back()->AsTarget()->rust_values().crate_name(); in TEST_F()
|
D | json_project_writer_unittest.cc | 270 target.rust_values().crate_name() = "foo";
|
D | function_toolchain_unittest.cc | 96 …command = "{{rustenv}} rustc --crate-name {{crate_name}} --crate-type bin {{rustflags}} -o {{outpu… in TEST_F()
|
D | substitution_writer.cc | 580 return target->rust_values().crate_name(); in GetLinkerSubstitution()
|
D | desc_builder.cc | 345 base::Value(target_->rust_values().crate_name())); in BuildDescription()
|
/third_party/gn/docs/ |
D | reference.md | 114 * [crate_name: [string] The name for the compiled crate.](#var_crate_name) 1754 Rust variables: aliased_deps, crate_root, crate_name 1948 Rust variables: aliased_deps, crate_root, crate_name, crate_type 1980 Rust variables: aliased_deps, crate_root, crate_name 2015 Rust variables: aliased_deps, crate_root, crate_name 2049 Rust variables: aliased_deps, crate_root, crate_name, crate_type 2118 Rust variables: aliased_deps, crate_root, crate_name 3922 {{crate_name}} 5257 ### <a name="var_crate_name"></a>**crate_name**: [string] The name for the compiled crate. 5263 If crate_name is not set, then this rule will use the target name. [all …]
|