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 #include "tools/gn/item.h" | 5 #include "tools/gn/item.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "tools/gn/settings.h" | 8 #include "tools/gn/settings.h" |
9 | 9 |
10 Item::Item(const Settings* settings, const Label& label) | 10 Item::Item(const Settings* settings, |
11 : settings_(settings), label_(label), defined_from_(nullptr) { | 11 const Label& label, |
12 } | 12 const std::set<uint32_t>& source_files_hashes) |
| 13 : settings_(settings), |
| 14 label_(label), |
| 15 defined_from_(nullptr), |
| 16 source_files_hashes_(source_files_hashes) {} |
13 | 17 |
14 Item::~Item() { | 18 Item::~Item() { |
15 } | 19 } |
16 | 20 |
17 Config* Item::AsConfig() { | 21 Config* Item::AsConfig() { |
18 return nullptr; | 22 return nullptr; |
19 } | 23 } |
20 const Config* Item::AsConfig() const { | 24 const Config* Item::AsConfig() const { |
21 return nullptr; | 25 return nullptr; |
22 } | 26 } |
(...skipping 25 matching lines...) Expand all Loading... |
48 return "toolchain"; | 52 return "toolchain"; |
49 if (AsPool()) | 53 if (AsPool()) |
50 return "pool"; | 54 return "pool"; |
51 NOTREACHED(); | 55 NOTREACHED(); |
52 return "this thing that I have no idea what it is"; | 56 return "this thing that I have no idea what it is"; |
53 } | 57 } |
54 | 58 |
55 bool Item::OnResolved(Err* err) { | 59 bool Item::OnResolved(Err* err) { |
56 return true; | 60 return true; |
57 } | 61 } |
OLD | NEW |