Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: tools/gn/target.cc

Issue 1386783003: [GN]: Support for loadable modules (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark comments Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« build/toolchain/mac/BUILD.gn ('K') | « tools/gn/target.h ('k') | tools/gn/toolchain.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698