Home | History | Annotate | Download | only in gn

Lines Matching defs:Target

5 #include "tools/gn/target.h"
20 // Merges the public configs from the given target to the given config list.
21 void MergePublicConfigsFrom(const Target* from_target,
29 // target given in *all_dest.
30 void MergeAllDependentConfigsFrom(const Target* from_target,
41 Err MakeTestOnlyError(const Target* from, const Target* to) {
52 Err MakeStaticLibDepsError(const Target* from, const Target* to) {
67 Target::Target(const Settings* settings, const Label& label)
78 Target::~Target() {
82 const char* Target::GetStringForOutputType(OutputType type) {
107 Target* Target::AsTarget() {
111 const Target* Target::AsTarget() const {
115 bool Target::OnResolved(Err* err) {
124 // target and all of our configs. We do this specially since these must be
148 bool Target::IsLinkable() const {
152 bool Target::IsFinal() const {
157 std::string Target::GetComputedOutputName(bool include_prefix) const {
177 bool Target::SetToolchain(const Toolchain* toolchain, Err* err) {
186 // Tool not specified for this target type.
188 *err = Err(defined_from(), "This target uses an undefined tool.",
190 "The target %s\n"
204 void Target::PullDependentTargetInfo() {
208 const Target* dep = iter.target();
231 void Target::PullForwardedDependentConfigs() {
238 const Target* from_target = forward_dependent_configs_[dep].ptr;
244 LabelPtrPtrEquals<Target>(from_target)) !=
247 LabelPtrPtrEquals<Target>(from_target)) !=
254 void Target::PullForwardedDependentConfigsFrom(const Target* from) {
259 void Target::PullRecursiveHardDeps() {
262 if (iter.target()->hard_dep())
263 recursive_hard_deps_.insert(iter.target());
267 // insert(iter.target()->begin(), iter.target()->end())
269 for (std::set<const Target*>::const_iterator cur =
270 iter.target()->recursive_hard_deps().begin();
271 cur != iter.target()->recursive_hard_deps().end(); ++cur)
276 void Target::FillOutputFiles() {
335 bool Target::CheckVisibility(Err* err) const {
337 if (!Visibility::CheckItemVisibility(this, iter.target(), err))
343 bool Target::CheckTestonly(Err* err) const {
344 // If the current target is marked testonly, it can include both testonly
351 if (iter.target()->testonly()) {
352 *err = MakeTestOnlyError(this, iter.target());
360 bool Target::CheckNoNestedStaticLibs(Err* err) const {
361 // If the current target is not a complete static library, it can depend on
363 if (!(output_type() == Target::STATIC_LIBRARY && complete_static_lib()))
368 if (iter.target()->output_type() == Target::STATIC_LIBRARY) {
369 *err = MakeStaticLibDepsError(this, iter.target());
376 if (inherited_libraries()[i]->output_type() == Target::STATIC_LIBRARY) {