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 all_headers_public_(true), |
57 hard_dep_(false) { | 58 hard_dep_(false) { |
58 } | 59 } |
59 | 60 |
60 Target::~Target() { | 61 Target::~Target() { |
61 } | 62 } |
62 | 63 |
63 // static | 64 // static |
64 const char* Target::GetStringForOutputType(OutputType type) { | 65 const char* Target::GetStringForOutputType(OutputType type) { |
65 switch (type) { | 66 switch (type) { |
66 case UNKNOWN: | 67 case UNKNOWN: |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // don't need to bother copying to our configs, only forwarding. | 190 // don't need to bother copying to our configs, only forwarding. |
190 DCHECK(std::find_if(deps_.begin(), deps_.end(), | 191 DCHECK(std::find_if(deps_.begin(), deps_.end(), |
191 LabelPtrPtrEquals<Target>(from_target)) != | 192 LabelPtrPtrEquals<Target>(from_target)) != |
192 deps_.end()); | 193 deps_.end()); |
193 direct_dependent_configs_.insert( | 194 direct_dependent_configs_.insert( |
194 direct_dependent_configs_.end(), | 195 direct_dependent_configs_.end(), |
195 from_target->direct_dependent_configs().begin(), | 196 from_target->direct_dependent_configs().begin(), |
196 from_target->direct_dependent_configs().end()); | 197 from_target->direct_dependent_configs().end()); |
197 } | 198 } |
198 } | 199 } |
OLD | NEW |