| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 std::string& resources_dir() { return resources_dir_; } | 79 std::string& resources_dir() { return resources_dir_; } |
| 80 const std::string& resources_dir() const { return resources_dir_; } | 80 const std::string& resources_dir() const { return resources_dir_; } |
| 81 | 81 |
| 82 std::string& executable_dir() { return executable_dir_; } | 82 std::string& executable_dir() { return executable_dir_; } |
| 83 const std::string& executable_dir() const { return executable_dir_; } | 83 const std::string& executable_dir() const { return executable_dir_; } |
| 84 | 84 |
| 85 std::string& plugins_dir() { return plugins_dir_; } | 85 std::string& plugins_dir() { return plugins_dir_; } |
| 86 const std::string& plugins_dir() const { return plugins_dir_; } | 86 const std::string& plugins_dir() const { return plugins_dir_; } |
| 87 | 87 |
| 88 void set_binary_compress(bool binary_compress) { |
| 89 binary_compress_ = binary_compress; |
| 90 } |
| 91 bool binary_compress() const { return binary_compress_; } |
| 92 |
| 88 // Recursive collection of all bundle_data that the target depends on. | 93 // Recursive collection of all bundle_data that the target depends on. |
| 89 const UniqueTargets& bundle_deps() const { return bundle_deps_; } | 94 const UniqueTargets& bundle_deps() const { return bundle_deps_; } |
| 90 | 95 |
| 91 private: | 96 private: |
| 92 SourceFiles asset_catalog_sources_; | 97 SourceFiles asset_catalog_sources_; |
| 93 BundleFileRules file_rules_; | 98 BundleFileRules file_rules_; |
| 94 UniqueTargets bundle_deps_; | 99 UniqueTargets bundle_deps_; |
| 95 | 100 |
| 96 // All those values are subdirectories relative to root_build_dir, and apart | 101 // All those values are subdirectories relative to root_build_dir, and apart |
| 97 // from root_dir, they are either equal to root_dir_ or subdirectories of it. | 102 // from root_dir, they are either equal to root_dir_ or subdirectories of it. |
| 98 std::string root_dir_; | 103 std::string root_dir_; |
| 99 std::string resources_dir_; | 104 std::string resources_dir_; |
| 100 std::string executable_dir_; | 105 std::string executable_dir_; |
| 101 std::string plugins_dir_; | 106 std::string plugins_dir_; |
| 107 |
| 108 bool binary_compress_; |
| 102 }; | 109 }; |
| 103 | 110 |
| 104 #endif // TOOLS_GN_BUNDLE_DATA_H_ | 111 #endif // TOOLS_GN_BUNDLE_DATA_H_ |
| OLD | NEW |