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

Unified Diff: tools/gn/xcode_object.h

Issue 2577753002: [Refactor Xcode Objects] Decouple file references and indexing target. (Closed)
Patch Set: Rename one PBXProject::AddSourceFile to PBXProject::AddSourceFileForIndexingTarget 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 | « no previous file | 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..74a37fa98ca6c3beb296a3340a5c28750077874c 100644
--- a/tools/gn/xcode_object.h
+++ b/tools/gn/xcode_object.h
@@ -271,14 +271,17 @@ class PBXProject : public PBXObject {
const PBXAttributes& attributes);
~PBXProject() override;
- void AddSourceFile(const std::string& source_path);
+ void AddSourceFileToIndexingTarget(const std::string& source_path);
+ void AddSourceFile(const std::string& source_path, PBXNativeTarget* target);
+
void AddAggregateTarget(const std::string& name,
const std::string& shell_script);
- void AddNativeTarget(const std::string& name,
- const std::string& type,
- const std::string& output_name,
- const std::string& output_type,
- const std::string& shell_script);
+ void AddIndexingTarget();
+ PBXNativeTarget* AddNativeTarget(const std::string& name,
sdefresne 2016/12/16 23:51:55 Why do you change the return value of this method?
liaoyuke 2016/12/19 08:03:35 Done. Yes, it is for a followup CL, I will move th
+ const std::string& type,
+ const std::string& output_name,
+ const std::string& output_type,
+ const std::string& shell_script);
void SetProjectDirPath(const std::string& project_dir_path);
void SetProjectRoot(const std::string& project_root);
« no previous file with comments | « no previous file | tools/gn/xcode_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698