HomeSort by relevance Sort by last modified time
    Searched refs:Toolchain (Results 1 - 25 of 36) sorted by null

1 2

  /external/chromium_org/tools/gn/
toolchain.cc 5 #include "tools/gn/toolchain.h"
13 const char* Toolchain::kToolCc = "cc";
14 const char* Toolchain::kToolCxx = "cxx";
15 const char* Toolchain::kToolObjC = "objc";
16 const char* Toolchain::kToolObjCxx = "objcxx";
17 const char* Toolchain::kToolRc = "rc";
18 const char* Toolchain::kToolAsm = "asm";
19 const char* Toolchain::kToolAlink = "alink";
20 const char* Toolchain::kToolSolink = "solink";
21 const char* Toolchain::kToolLink = "link"
    [all...]
ninja_build_writer.h 16 class Toolchain;
19 // toolchain files and lists all input .gn files as dependencies of the
26 const Toolchain* default_toolchain,
32 const Toolchain* default_toolchain,
50 const Toolchain* default_toolchain_;
ninja_toolchain_writer.h 15 #include "tools/gn/toolchain.h"
25 // Takes the settings for the toolchain, as well as the list of all targets
26 // associated with the toolchain.
28 const Toolchain* toolchain,
35 const Toolchain* toolchain,
43 void WriteToolRule(Toolchain::ToolType type,
52 const Toolchain* toolchain_;
ninja_toolchain_writer_unittest.cc 16 //target.SetToolchain(setup.toolchain());
20 NinjaToolchainWriter writer(setup.settings(), setup.toolchain(),
22 writer.WriteToolRule(Toolchain::TYPE_CC,
23 setup.toolchain()->GetTool(Toolchain::TYPE_CC),
toolchain.h 20 // Holds information on a specific toolchain. This data is filled in when we
21 // encounter a toolchain definition.
24 // particular, when a target uses a toolchain, it should have a dependency on
25 // that toolchain's object so that we can be sure we loaded the toolchain
28 // Note on threadsafety: The label of the toolchain never changes so can
30 // the toolchain name). But the values in the toolchain do, so these can't
32 class Toolchain : public Item {
63 Toolchain(const Settings* settings, const Label& label)
    [all...]
item.h 17 class Toolchain;
43 virtual Toolchain* AsToolchain();
44 virtual const Toolchain* AsToolchain() const;
test_with_scope.h 18 #include "tools/gn/toolchain.h"
22 // toolchain and sets up all the build state.
30 Toolchain* toolchain() { return &toolchain_; } function in class:TestWithScope
38 // Fills in the tools for the given toolchain with reasonable default values.
39 // The toolchain in this object will be automatically set up with this
42 static void SetupToolchain(Toolchain* toolchain);
49 Toolchain toolchain_;
item.cc 22 Toolchain* Item::AsToolchain() { return NULL; }
23 const Toolchain* Item::AsToolchain() const { return NULL; }
31 return "toolchain";
ninja_toolchain_writer.cc 17 #include "tools/gn/toolchain.h"
28 const Toolchain* toolchain,
32 toolchain_(toolchain),
49 const Toolchain* toolchain,
63 NinjaToolchainWriter gen(settings, toolchain, targets, file);
71 for (int i = Toolchain::TYPE_NONE + 1; i < Toolchain::TYPE_NUMTYPES; i++) {
72 Toolchain::ToolType tool_type = static_cast<Toolchain::ToolType>(i)
    [all...]
test_with_scope.cc 27 toolchain_(&settings_, Label(SourceDir("//toolchain/"), "default")),
43 void TestWithScope::SetupToolchain(Toolchain* toolchain) {
54 toolchain->SetTool(Toolchain::TYPE_CC, cc_tool.Pass());
64 toolchain->SetTool(Toolchain::TYPE_CXX, cxx_tool.Pass());
74 toolchain->SetTool(Toolchain::TYPE_OBJC, objc_tool.Pass());
84 toolchain->SetTool(Toolchain::TYPE_OBJCXX, objcxx_tool.Pass())
    [all...]
function_toolchain.cc 15 #include "tools/gn/toolchain.h"
24 // the toolchain property on a scope.
165 bool IsCompilerTool(Toolchain::ToolType type) {
166 return type == Toolchain::TYPE_CC ||
167 type == Toolchain::TYPE_CXX ||
168 type == Toolchain::TYPE_OBJC ||
169 type == Toolchain::TYPE_OBJCXX ||
170 type == Toolchain::TYPE_RC ||
171 type == Toolchain::TYPE_ASM;
174 bool IsLinkerTool(Toolchain::ToolType type)
726 Toolchain* toolchain = reinterpret_cast<Toolchain*>( local
893 Toolchain* toolchain = reinterpret_cast<Toolchain*>( local
    [all...]
ninja_copy_target_writer.cc 15 #include "tools/gn/toolchain.h"
26 const Tool* copy_tool = target_->toolchain()->GetTool(Toolchain::TYPE_COPY);
30 "The toolchain " +
31 target_->toolchain()->label().GetUserVisibleName(false) +
37 const Tool* stamp_tool = target_->toolchain()->GetTool(Toolchain::TYPE_STAMP);
41 "The toolchain " +
42 target_->toolchain()->label().GetUserVisibleName(false) +
72 Toolchain::ToolTypeToName(Toolchain::TYPE_COPY)
    [all...]
loader.h 24 class Toolchain;
36 // Loads the given file in the conext of the given toolchain. The initial
38 // empty toolchain name, which will trigger the load of the default build
44 // Notification that the given toolchain has loaded. This will unblock files
46 virtual void ToolchainLoaded(const Toolchain* toolchain) = 0;
48 // Returns the label of the default toolchain.
51 // Returns information about the toolchain with the given label. Will return
52 // false if we haven't processed this toolchain yet.
55 // Helper function that extracts the file and toolchain name from the give
    [all...]
builder_unittest.cc 10 #include "tools/gn/toolchain.h"
25 virtual void ToolchainLoaded(const Toolchain* toolchain) OVERRIDE {
72 Toolchain* DefineToolchain() {
73 Toolchain* tc = new Toolchain(&settings_, settings_.toolchain_label());
106 // Should have requested that B and the toolchain is loaded.
110 // Define the toolchain.
130 // A should have two deps: B and the toolchain. Only B should be unresolved.
151 // C only depends on the already-loaded toolchain so we shouldn't hav
    [all...]
ninja_binary_target_writer.cc 73 tool_(target->toolchain()->GetToolForTargetFinalOutput(target)) {
92 const SubstitutionBits& subst = target_->toolchain()->substitution_bits();
146 Toolchain::ToolType tool_type = Toolchain::TYPE_NONE;
151 if (tool_type != Toolchain::TYPE_NONE) {
154 out_ << ": " << rule_prefix << Toolchain::ToolTypeToName(tool_type);
206 << Toolchain::ToolTypeToName(
207 target_->toolchain()->GetToolTypeForTargetFinalOutput(target_));
427 Toolchain::ToolType tool_type = Toolchain::TYPE_NONE
    [all...]
ninja_writer.cc 47 // Categorize all targets by toolchain.
68 // Write out the toolchain buildfiles, and also accumulate the set of
69 // all settings and find the list of targets in the default toolchain.
74 const Toolchain* toolchain = builder_->GetToolchain(i->first); local
77 if (!NinjaToolchainWriter::RunAndWriteFile(settings, toolchain,
80 "Couldn't open toolchain buildfile(s) for writing").PrintToStdout();
92 // All Settings objects should have the same default toolchain, and there
95 const Toolchain* default_toolchain =
102 "Couldn't open toolchain buildfile(s) for writing").PrintToStdout()
    [all...]
function_get_label_info_unittest.cc 36 // Note: TestWithScope's default toolchain is "//toolchain:default" and
61 Call(":name(//toolchain:random)", "root_out_dir"));
67 Call(":name(//toolchain:random)", "root_gen_dir"));
78 Call("//src/foo:name(//toolchain:random)", "label_no_toolchain"));
82 EXPECT_EQ("//src/foo:name(//toolchain:default)",
84 EXPECT_EQ("//src/foo:name(//toolchain:random)",
85 Call(":name(//toolchain:random)", "label_with_toolchain"));
88 TEST_F(GetLabelInfoTest, Toolchain) {
89 EXPECT_EQ("//toolchain:default", Call(":name", "toolchain"))
    [all...]
ninja_binary_target_writer.h 11 #include "tools/gn/toolchain.h"
76 Toolchain::ToolType* computed_tool_type,
ninja_target_writer.cc 148 CHECK(target_->toolchain())
149 << "Toolchain not set on target "
166 target_->toolchain()->deps().empty())
186 << Toolchain::ToolTypeToName(Toolchain::TYPE_STAMP);
222 // Toolchain dependencies. These must be resolved before doing anything.
223 // This just writs all toolchain deps for simplicity. If we find that
225 // a toolchain-specific stamp file and only include the stamp here.
226 const LabelTargetVector& toolchain_deps = target_->toolchain()->deps();
257 << Toolchain::ToolTypeToName(Toolchain::TYPE_STAMP)
    [all...]
scope_per_file_provider_unittest.cc 10 #include "tools/gn/toolchain.h"
19 // Test the default toolchain.
25 EXPECT_EQ("//toolchain:default", GPV(variables::kCurrentToolchain));
26 // TODO(brettw) this test harness does not set up the Toolchain manager
28 //EXPECT_EQ("//toolchain:default", GPV(variables::kDefaultToolchain));
36 // Test some with an alternate toolchain.
39 Toolchain toolchain(&settings, Label(SourceDir("//toolchain/"), "tc"));
40 settings.set_toolchain_label(toolchain.label())
    [all...]
target.h 29 class Toolchain;
76 // Because this depends on the tool for this target, the toolchain must
199 // The toolchain is only known once this target is resolved (all if its
202 const Toolchain* toolchain() const { return toolchain_; } function in class:Target
204 // Sets the toolchain. The toolchain must include a tool for this target
208 bool SetToolchain(const Toolchain* toolchain, Err* err = NULL);
296 // Toolchain used by this target. Null until target is resolved
    [all...]
builder.h 40 const Toolchain* GetToolchain(const Label& label) const;
ninja_build_writer.cc 78 const Toolchain* default_toolchain,
105 const Toolchain* default_toolchain,
177 // Write phony rules for all uniquely-named targets in the default toolchain.
loader_unittest.cc 140 // The default toolchain needs to be set by the build config file.
161 // Schedule some other file to load in another toolchain.
167 // Running the toolchain file should schedule the build config file to load
168 // for that toolchain.
172 // We have to tell it we have a toolchain definition now (normally the
175 Toolchain second_tc_object(default_settings, second_tc);
179 // Scheduling a second file to load in that toolchain should not make it
  /ndk/build/core/
add-toolchain.mk 16 # this script is included repeatedly by main.mk to add a new toolchain
19 # '_config_mk' must be defined as the path of a toolchain
25 # by the toolchain configuration file
55 # Now record the toolchain-specific information
63 # check that the toolchain name is unique
65 $(call __ndk_error,Toolchain $(_name) defined in $(_parent) is\
74 $(call __ndk_error, Toolchain $(_name) lacks a setup.mk in $(_dir)))

Completed in 318 milliseconds

1 2