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

Unified Diff: tools/gn/xcode_object.h

Issue 2576773002: [Refactor Xcode Objects] Enable navigator paths for file references. (Closed)
Patch Set: Addressed feedback Created 4 years 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
« no previous file with comments | « ios/build/tools/convert_gn_xcodeproj.py ('k') | tools/gn/xcode_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/xcode_object.h
diff --git a/tools/gn/xcode_object.h b/tools/gn/xcode_object.h
index 2ad43cceefc4567abad8d2ca2123794f0c0cf606..83a776ac405ab99b9f6a427c5f2eb57c32dbf08d 100644
--- a/tools/gn/xcode_object.h
+++ b/tools/gn/xcode_object.h
@@ -218,7 +218,10 @@ class PBXGroup : public PBXObject {
const std::string& path() const { return path_; }
PBXObject* AddChild(std::unique_ptr<PBXObject> child);
- PBXFileReference* AddSourceFile(const std::string& source_path);
+ PBXFileReference* AddSourceFile(const std::string& navigator_path,
+ const std::string& source_path);
+ bool is_source() { return is_source_; }
+ void set_is_source(const bool is_source) { is_source_ = is_source; }
// PBXObject implementation.
PBXObjectClass Class() const override;
@@ -230,6 +233,7 @@ class PBXGroup : public PBXObject {
std::vector<std::unique_ptr<PBXObject>> children_;
std::string name_;
std::string path_;
+ bool is_source_ = false;
DISALLOW_COPY_AND_ASSIGN(PBXGroup);
};
@@ -271,7 +275,8 @@ class PBXProject : public PBXObject {
const PBXAttributes& attributes);
~PBXProject() override;
- void AddSourceFile(const std::string& source_path);
+ void AddSourceFile(const std::string& navigator_path,
+ const std::string& source_path);
void AddAggregateTarget(const std::string& name,
const std::string& shell_script);
void AddNativeTarget(const std::string& name,
« no previous file with comments | « ios/build/tools/convert_gn_xcodeproj.py ('k') | tools/gn/xcode_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698