| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_INHERITED_LIBRARIES_H_ | 5 #ifndef TOOLS_GN_INHERITED_LIBRARIES_H_ |
| 6 #define TOOLS_GN_INHERITED_LIBRARIES_H_ | 6 #define TOOLS_GN_INHERITED_LIBRARIES_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/macros.h" |
| 13 | 13 |
| 14 class Target; | 14 class Target; |
| 15 | 15 |
| 16 // Represents an ordered uniquified set of all shared/static libraries for | 16 // Represents an ordered uniquified set of all shared/static libraries for |
| 17 // a given target. These are pushed up the dependency tree. | 17 // a given target. These are pushed up the dependency tree. |
| 18 // | 18 // |
| 19 // Maintaining the order is important so GN links all libraries in the same | 19 // Maintaining the order is important so GN links all libraries in the same |
| 20 // order specified in the build files. | 20 // order specified in the build files. |
| 21 // | 21 // |
| 22 // Since this list is uniquified, appending to the list will not actually | 22 // Since this list is uniquified, appending to the list will not actually |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 bool is_public; | 60 bool is_public; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 typedef std::map<const Target*, Node> LibraryMap; | 63 typedef std::map<const Target*, Node> LibraryMap; |
| 64 LibraryMap map_; | 64 LibraryMap map_; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(InheritedLibraries); | 66 DISALLOW_COPY_AND_ASSIGN(InheritedLibraries); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 #endif // TOOLS_GN_INHERITED_LIBRARIES_H_ | 69 #endif // TOOLS_GN_INHERITED_LIBRARIES_H_ |
| OLD | NEW |