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 #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 Loading... |
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_ |
OLD | NEW |