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

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

Issue 1982463002: [Mac/GN] Treat create_bundle as a leaf for `gn desc runtime_deps`. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Return as dir Created 4 years, 7 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 | « no previous file | tools/gn/bundle_data.cc » ('j') | tools/gn/bundle_data.cc » ('J')
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | tools/gn/bundle_data.cc » ('j') | tools/gn/bundle_data.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698