OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_BUNDLE_DATA_H_ | 5 #ifndef TOOLS_GN_BUNDLE_DATA_H_ |
6 #define TOOLS_GN_BUNDLE_DATA_H_ | 6 #define TOOLS_GN_BUNDLE_DATA_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // any other subpath, this is just the most top-level directory (e.g., | 70 // any other subpath, this is just the most top-level directory (e.g., |
71 // just Bundle.app/). | 71 // just Bundle.app/). |
72 // | 72 // |
73 // Note that this is a SourceFile instead of a SourceDir. This is because | 73 // Note that this is a SourceFile instead of a SourceDir. This is because |
74 // the output of a create_bundle rule is a single logical unit, even though | 74 // the output of a create_bundle rule is a single logical unit, even though |
75 // it is really a directory containing many outputs. This allows other | 75 // it is really a directory containing many outputs. This allows other |
76 // targets to treat the bundle as a single unit, rather than a collection | 76 // targets to treat the bundle as a single unit, rather than a collection |
77 // of its contents. | 77 // of its contents. |
78 SourceFile GetBundleRootDirOutput(const Settings* settings) const; | 78 SourceFile GetBundleRootDirOutput(const Settings* settings) const; |
79 | 79 |
| 80 // Performs GetBundleRootDirOutput but returns the result as a directory. |
| 81 SourceDir GetBundleRootDirOutputAsDir(const Settings* settings) const; |
| 82 |
80 // Returns the list of inputs for the compilation of the asset catalog. | 83 // Returns the list of inputs for the compilation of the asset catalog. |
81 SourceFiles& asset_catalog_sources() { return asset_catalog_sources_; } | 84 SourceFiles& asset_catalog_sources() { return asset_catalog_sources_; } |
82 const SourceFiles& asset_catalog_sources() const { | 85 const SourceFiles& asset_catalog_sources() const { |
83 return asset_catalog_sources_; | 86 return asset_catalog_sources_; |
84 } | 87 } |
85 | 88 |
86 BundleFileRules& file_rules() { return file_rules_; } | 89 BundleFileRules& file_rules() { return file_rules_; } |
87 const BundleFileRules& file_rules() const { return file_rules_; } | 90 const BundleFileRules& file_rules() const { return file_rules_; } |
88 | 91 |
89 SourceDir& root_dir() { return root_dir_; } | 92 SourceDir& root_dir() { return root_dir_; } |
(...skipping 27 matching lines...) Expand all Loading... |
117 SourceDir plugins_dir_; | 120 SourceDir plugins_dir_; |
118 | 121 |
119 // This is the target type as known to Xcode. This is only used to generate | 122 // This is the target type as known to Xcode. This is only used to generate |
120 // the Xcode project file when using --ide=xcode. | 123 // the Xcode project file when using --ide=xcode. |
121 std::string product_type_; | 124 std::string product_type_; |
122 | 125 |
123 DISALLOW_COPY_AND_ASSIGN(BundleData); | 126 DISALLOW_COPY_AND_ASSIGN(BundleData); |
124 }; | 127 }; |
125 | 128 |
126 #endif // TOOLS_GN_BUNDLE_DATA_H_ | 129 #endif // TOOLS_GN_BUNDLE_DATA_H_ |
OLD | NEW |