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 "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "tools/gn/config_values_extractors.h" | 10 #include "tools/gn/config_values_extractors.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 } // namespace | 104 } // namespace |
105 | 105 |
106 Target::Target(const Settings* settings, const Label& label) | 106 Target::Target(const Settings* settings, const Label& label) |
107 : Item(settings, label), | 107 : Item(settings, label), |
108 output_type_(UNKNOWN), | 108 output_type_(UNKNOWN), |
109 all_headers_public_(true), | 109 all_headers_public_(true), |
110 check_includes_(true), | 110 check_includes_(true), |
111 complete_static_lib_(false), | 111 complete_static_lib_(false), |
112 testonly_(false), | 112 testonly_(false), |
| 113 darwin_bundle_(false), |
| 114 loadable_module_(false), |
113 toolchain_(nullptr) { | 115 toolchain_(nullptr) { |
114 } | 116 } |
115 | 117 |
116 Target::~Target() { | 118 Target::~Target() { |
117 } | 119 } |
118 | 120 |
119 // static | 121 // static |
120 const char* Target::GetStringForOutputType(OutputType type) { | 122 const char* Target::GetStringForOutputType(OutputType type) { |
121 switch (type) { | 123 switch (type) { |
122 case UNKNOWN: | 124 case UNKNOWN: |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 return; // Not in output dir, this is OK. | 556 return; // Not in output dir, this is OK. |
555 | 557 |
556 // Tell the scheduler about unknown files. This will be noted for later so | 558 // Tell the scheduler about unknown files. This will be noted for later so |
557 // the list of files written by the GN build itself (often response files) | 559 // the list of files written by the GN build itself (often response files) |
558 // can be filtered out of this list. | 560 // can be filtered out of this list. |
559 OutputFile out_file(settings()->build_settings(), source); | 561 OutputFile out_file(settings()->build_settings(), source); |
560 std::set<const Target*> seen_targets; | 562 std::set<const Target*> seen_targets; |
561 if (!EnsureFileIsGeneratedByDependency(this, out_file, true, &seen_targets)) | 563 if (!EnsureFileIsGeneratedByDependency(this, out_file, true, &seen_targets)) |
562 g_scheduler->AddUnknownGeneratedInput(this, source); | 564 g_scheduler->AddUnknownGeneratedInput(this, source); |
563 } | 565 } |
OLD | NEW |