OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "tools/gn/target.h" | 5 #include "tools/gn/target.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "tools/gn/config_values_extractors.h" | 8 #include "tools/gn/config_values_extractors.h" |
9 #include "tools/gn/scheduler.h" | 9 #include "tools/gn/scheduler.h" |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 unique_configs->insert(all[i].ptr); | 47 unique_configs->insert(all[i].ptr); |
48 } | 48 } |
49 } | 49 } |
50 } | 50 } |
51 | 51 |
52 } // namespace | 52 } // namespace |
53 | 53 |
54 Target::Target(const Settings* settings, const Label& label) | 54 Target::Target(const Settings* settings, const Label& label) |
55 : Item(settings, label), | 55 : Item(settings, label), |
56 output_type_(UNKNOWN), | 56 output_type_(UNKNOWN), |
57 hard_dep_(false), | 57 hard_dep_(false) { |
58 external_(false) { | |
59 } | 58 } |
60 | 59 |
61 Target::~Target() { | 60 Target::~Target() { |
62 } | 61 } |
63 | 62 |
64 // static | 63 // static |
65 const char* Target::GetStringForOutputType(OutputType type) { | 64 const char* Target::GetStringForOutputType(OutputType type) { |
66 switch (type) { | 65 switch (type) { |
67 case UNKNOWN: | 66 case UNKNOWN: |
68 return "Unknown"; | 67 return "Unknown"; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // don't need to bother copying to our configs, only forwarding. | 189 // don't need to bother copying to our configs, only forwarding. |
191 DCHECK(std::find_if(deps_.begin(), deps_.end(), | 190 DCHECK(std::find_if(deps_.begin(), deps_.end(), |
192 LabelPtrPtrEquals<Target>(from_target)) != | 191 LabelPtrPtrEquals<Target>(from_target)) != |
193 deps_.end()); | 192 deps_.end()); |
194 direct_dependent_configs_.insert( | 193 direct_dependent_configs_.insert( |
195 direct_dependent_configs_.end(), | 194 direct_dependent_configs_.end(), |
196 from_target->direct_dependent_configs().begin(), | 195 from_target->direct_dependent_configs().begin(), |
197 from_target->direct_dependent_configs().end()); | 196 from_target->direct_dependent_configs().end()); |
198 } | 197 } |
199 } | 198 } |
OLD | NEW |