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

Unified Diff: tools/gn/target.h

Issue 1606553002: Add support for Mac/iOS application bundles to GN tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split CL to only include tool change & address comments Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: tools/gn/target.h
diff --git a/tools/gn/target.h b/tools/gn/target.h
index eff4d150d53e5dd3a7856926c3ab0ed7d6925f3a..e23685e34ef092e1abfd93beff2a7885744f404e 100644
--- a/tools/gn/target.h
+++ b/tools/gn/target.h
@@ -40,6 +40,7 @@ class Target : public Item {
STATIC_LIBRARY,
SOURCE_SET,
COPY_FILES,
+ COPY_BUNDLE_DATA,
ACTION,
ACTION_FOREACH,
};
@@ -129,6 +130,12 @@ class Target : public Item {
const std::vector<std::string>& data() const { return data_; }
std::vector<std::string>& data() { return data_; }
+ // Runtime file dependency for bundled application (Mac/iOS). Those files
+ // are collected recursively (breaking at executable, shared library and
+ // loadable modules).
+ const std::set<SourceFile>& bundle_data() const { return bundle_data_; }
+ std::set<SourceFile>& bundle_data() { return bundle_data_; }
+
// Returns true if targets depending on this one should have an order
// dependency.
bool hard_dep() const {
@@ -255,6 +262,7 @@ class Target : public Item {
void PullDependentTargetLibsFrom(const Target* dep, bool is_public);
void PullDependentTargetLibs();
void PullRecursiveHardDeps();
+ void PullRecursiveBundleData();
// Fills the link and dependency output files when a target is resolved.
void FillOutputFiles();
@@ -281,6 +289,7 @@ class Target : public Item {
bool complete_static_lib_;
bool testonly_;
FileList inputs_;
+ std::set<SourceFile> bundle_data_;
std::vector<std::string> data_;
LabelTargetVector private_deps_;
« no previous file with comments | « tools/gn/runtime_deps.cc ('k') | tools/gn/target.cc » ('j') | tools/gn/variables.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698