| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 SourceDir& resources_dir() { return resources_dir_; } | 92 SourceDir& resources_dir() { return resources_dir_; } |
| 93 const SourceDir& resources_dir() const { return resources_dir_; } | 93 const SourceDir& resources_dir() const { return resources_dir_; } |
| 94 | 94 |
| 95 SourceDir& executable_dir() { return executable_dir_; } | 95 SourceDir& executable_dir() { return executable_dir_; } |
| 96 const SourceDir& executable_dir() const { return executable_dir_; } | 96 const SourceDir& executable_dir() const { return executable_dir_; } |
| 97 | 97 |
| 98 SourceDir& plugins_dir() { return plugins_dir_; } | 98 SourceDir& plugins_dir() { return plugins_dir_; } |
| 99 const SourceDir& plugins_dir() const { return plugins_dir_; } | 99 const SourceDir& plugins_dir() const { return plugins_dir_; } |
| 100 | 100 |
| 101 std::string& product_type() { return product_type_; } |
| 102 const std::string& product_type() const { return product_type_; } |
| 103 |
| 101 // Recursive collection of all bundle_data that the target depends on. | 104 // Recursive collection of all bundle_data that the target depends on. |
| 102 const UniqueTargets& bundle_deps() const { return bundle_deps_; } | 105 const UniqueTargets& bundle_deps() const { return bundle_deps_; } |
| 103 | 106 |
| 104 private: | 107 private: |
| 105 SourceFiles asset_catalog_sources_; | 108 SourceFiles asset_catalog_sources_; |
| 106 BundleFileRules file_rules_; | 109 BundleFileRules file_rules_; |
| 107 UniqueTargets bundle_deps_; | 110 UniqueTargets bundle_deps_; |
| 108 | 111 |
| 109 // All those values are subdirectories relative to root_build_dir, and apart | 112 // All those values are subdirectories relative to root_build_dir, and apart |
| 110 // from root_dir, they are either equal to root_dir_ or subdirectories of it. | 113 // from root_dir, they are either equal to root_dir_ or subdirectories of it. |
| 111 SourceDir root_dir_; | 114 SourceDir root_dir_; |
| 112 SourceDir resources_dir_; | 115 SourceDir resources_dir_; |
| 113 SourceDir executable_dir_; | 116 SourceDir executable_dir_; |
| 114 SourceDir plugins_dir_; | 117 SourceDir plugins_dir_; |
| 118 |
| 119 // This is the target type as known to Xcode. This is only used to generate |
| 120 // the Xcode project file when using --ide=xcode. |
| 121 std::string product_type_; |
| 122 |
| 123 DISALLOW_COPY_AND_ASSIGN(BundleData); |
| 115 }; | 124 }; |
| 116 | 125 |
| 117 #endif // TOOLS_GN_BUNDLE_DATA_H_ | 126 #endif // TOOLS_GN_BUNDLE_DATA_H_ |
| OLD | NEW |