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(); |