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

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

Issue 216903004: Add optional public header checking to GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unit test Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « tools/gn/target.h ('k') | tools/gn/target_generator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
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 }
OLDNEW
« no previous file with comments | « tools/gn/target.h ('k') | tools/gn/target_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698