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

Unified Diff: tools/gn/xcode_object.h

Issue 2574333002: [Refactor Xcode Objects] Enable generating per file '--help' compiler flag (Closed)
Patch Set: Delete default help_flag_enabled parameter value 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') | tools/gn/xcode_writer.cc » ('J')
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..263ce88f1ee1d595d580b5d29bdf638ba5e8eacc 100644
--- a/tools/gn/xcode_object.h
+++ b/tools/gn/xcode_object.h
@@ -153,8 +153,11 @@ class PBXAggregateTarget : public PBXTarget {
class PBXBuildFile : public PBXObject {
public:
+ enum HelpCompilerFlagEnabled { HELP_FLAG_ENABLED, HELP_FLAG_DISABLED };
sdefresne 2016/12/17 00:07:27 I don't really like the redundancy of the enumerat
liaoyuke 2016/12/19 08:02:40 Thank you for explaining the details. This is a mu
+
PBXBuildFile(const PBXFileReference* file_reference,
- const PBXSourcesBuildPhase* build_phase);
+ const PBXSourcesBuildPhase* build_phase,
+ const HelpCompilerFlagEnabled help_flag_enabled);
~PBXBuildFile() override;
// PXBObject implementation.
@@ -165,6 +168,7 @@ class PBXBuildFile : public PBXObject {
private:
const PBXFileReference* file_reference_;
const PBXSourcesBuildPhase* build_phase_;
+ const HelpCompilerFlagEnabled help_flag_enabled_;
DISALLOW_COPY_AND_ASSIGN(PBXBuildFile);
};
@@ -247,7 +251,8 @@ class PBXNativeTarget : public PBXTarget {
const PBXFileReference* product_reference);
~PBXNativeTarget() override;
- void AddFileForIndexing(const PBXFileReference* file_reference);
+ void AddFileForIndexing(const PBXFileReference* file_reference,
+ const PBXBuildFile::HelpCompilerFlagEnabled);
// PBXObject implementation.
PBXObjectClass Class() const override;
@@ -271,7 +276,9 @@ class PBXProject : public PBXObject {
const PBXAttributes& attributes);
~PBXProject() override;
- void AddSourceFile(const std::string& source_path);
+ void AddSourceFile(
+ const std::string& source_path,
+ const PBXBuildFile::HelpCompilerFlagEnabled help_flag_enabled);
void AddAggregateTarget(const std::string& name,
const std::string& shell_script);
void AddNativeTarget(const std::string& name,
« no previous file with comments | « no previous file | tools/gn/xcode_object.cc » ('j') | tools/gn/xcode_writer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698