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

Side by Side Diff: tools/gn/output_file.h

Issue 26267003: Add the concept of a source set to GN. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « tools/gn/ninja_target_writer.cc ('k') | tools/gn/secondary/build/config/BUILDCONFIG.gn » ('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 #ifndef TOOLS_GN_OUTPUT_FILE_H_ 5 #ifndef TOOLS_GN_OUTPUT_FILE_H_
6 #define TOOLS_GN_OUTPUT_FILE_H_ 6 #define TOOLS_GN_OUTPUT_FILE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "tools/gn/build_settings.h" 10 #include "tools/gn/build_settings.h"
(...skipping 15 matching lines...) Expand all
26 SourceFile GetSourceFile(const BuildSettings* build_settings) const { 26 SourceFile GetSourceFile(const BuildSettings* build_settings) const {
27 return SourceFile(build_settings->build_dir().value() + value_); 27 return SourceFile(build_settings->build_dir().value() + value_);
28 } 28 }
29 29
30 bool operator==(const OutputFile& other) const { 30 bool operator==(const OutputFile& other) const {
31 return value_ == other.value_; 31 return value_ == other.value_;
32 } 32 }
33 bool operator!=(const OutputFile& other) const { 33 bool operator!=(const OutputFile& other) const {
34 return value_ != other.value_; 34 return value_ != other.value_;
35 } 35 }
36 bool operator<(const OutputFile& other) const {
37 return value_ < other.value_;
38 }
36 39
37 private: 40 private:
38 std::string value_; 41 std::string value_;
39 }; 42 };
40 43
41 #endif 44 #endif // TOOLS_GN_OUTPUT_FILE_H_
OLDNEW
« no previous file with comments | « tools/gn/ninja_target_writer.cc ('k') | tools/gn/secondary/build/config/BUILDCONFIG.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698