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

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

Issue 516683002: Add GN variables for controlling header checking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@desc
Patch Set: Created 6 years, 3 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 27 matching lines...) Expand all
38 dest->push_back(all[i]); 38 dest->push_back(all[i]);
39 } 39 }
40 } 40 }
41 41
42 } // namespace 42 } // namespace
43 43
44 Target::Target(const Settings* settings, const Label& label) 44 Target::Target(const Settings* settings, const Label& label)
45 : Item(settings, label), 45 : Item(settings, label),
46 output_type_(UNKNOWN), 46 output_type_(UNKNOWN),
47 all_headers_public_(true), 47 all_headers_public_(true),
48 check_includes_(true),
48 hard_dep_(false), 49 hard_dep_(false),
49 toolchain_(NULL) { 50 toolchain_(NULL) {
50 } 51 }
51 52
52 Target::~Target() { 53 Target::~Target() {
53 } 54 }
54 55
55 // static 56 // static
56 const char* Target::GetStringForOutputType(OutputType type) { 57 const char* Target::GetStringForOutputType(OutputType type) {
57 switch (type) { 58 switch (type) {
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 SubstitutionWriter::ApplyPatternToLinkerAsOutputFile( 299 SubstitutionWriter::ApplyPatternToLinkerAsOutputFile(
299 this, tool, tool->link_output()); 300 this, tool, tool->link_output());
300 } 301 }
301 } 302 }
302 break; 303 break;
303 case UNKNOWN: 304 case UNKNOWN:
304 default: 305 default:
305 NOTREACHED(); 306 NOTREACHED();
306 } 307 }
307 } 308 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698