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

Unified Diff: tools/gn/xcode_object.h

Issue 2574333002: [Refactor Xcode Objects] Enable generating per file '--help' compiler flag (Closed)
Patch Set: Rebase 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 f56de09a7806658b2cf4c870be1fddc332e6bdd5..22be61e4e8f606bb00389b1f67814ad1fa69d5e9 100644
--- a/tools/gn/xcode_object.h
+++ b/tools/gn/xcode_object.h
@@ -22,6 +22,11 @@
// See https://chromium.googlesource.com/external/gyp/+/master/pylib/gyp/xcodeproj_file.py
// for more information on Xcode project file format.
+enum class CompilerFlags {
+ NONE,
+ HELP,
+};
+
// PBXObjectClass -------------------------------------------------------------
enum PBXObjectClass {
@@ -154,7 +159,8 @@ class PBXAggregateTarget : public PBXTarget {
class PBXBuildFile : public PBXObject {
public:
PBXBuildFile(const PBXFileReference* file_reference,
- const PBXSourcesBuildPhase* build_phase);
+ const PBXSourcesBuildPhase* build_phase,
+ const CompilerFlags compiler_flag);
~PBXBuildFile() override;
// PXBObject implementation.
@@ -165,6 +171,7 @@ class PBXBuildFile : public PBXObject {
private:
const PBXFileReference* file_reference_;
const PBXSourcesBuildPhase* build_phase_;
+ const CompilerFlags compiler_flag_;
DISALLOW_COPY_AND_ASSIGN(PBXBuildFile);
};
@@ -251,7 +258,8 @@ class PBXNativeTarget : public PBXTarget {
const PBXFileReference* product_reference);
~PBXNativeTarget() override;
- void AddFileForIndexing(const PBXFileReference* file_reference);
+ void AddFileForIndexing(const PBXFileReference* file_reference,
+ const CompilerFlags compiler_flag);
// PBXObject implementation.
PBXObjectClass Class() const override;
@@ -276,11 +284,12 @@ class PBXProject : public PBXObject {
~PBXProject() override;
void AddSourceFileToIndexingTarget(const std::string& navigator_path,
- const std::string& source_path);
+ const std::string& source_path,
+ const CompilerFlags compiler_flag);
void AddSourceFile(const std::string& navigator_path,
const std::string& source_path,
+ const CompilerFlags compiler_flag,
PBXNativeTarget* target);
-
void AddAggregateTarget(const std::string& name,
const std::string& shell_script);
void AddIndexingTarget();
« 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