Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(894)

Side by Side Diff: tools/gn/bundle_data.h

Issue 1842563006: DO NOT SUBMIT. Experimental Mac GN Framework support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Binary bundle data Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/shell/BUILD.gn ('k') | tools/gn/bundle_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/shell/BUILD.gn ('k') | tools/gn/bundle_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698