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

Side by Side Diff: tools/gn/xcode_writer.h

Issue 2489673004: gn: Include source files outside the source root for Xcode workspace (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | tools/gn/xcode_writer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TOOLS_GN_XCODE_WRITER_H_ 5 #ifndef TOOLS_GN_XCODE_WRITER_H_
6 #define TOOLS_GN_XCODE_WRITER_H_ 6 #define TOOLS_GN_XCODE_WRITER_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 const std::string& ninja_extra_args, 75 const std::string& ninja_extra_args,
76 const BuildSettings* build_settings, 76 const BuildSettings* build_settings,
77 TargetOsType target_os); 77 TargetOsType target_os);
78 78
79 // Generates the "sources.xcodeproj" project that reference all source 79 // Generates the "sources.xcodeproj" project that reference all source
80 // files to allow Xcode to index them. 80 // files to allow Xcode to index them.
81 void CreateSourcesProject(const std::vector<const Target*>& targets, 81 void CreateSourcesProject(const std::vector<const Target*>& targets,
82 const SourceDir& root_build_dir, 82 const SourceDir& root_build_dir,
83 const PBXAttributes& attributes, 83 const PBXAttributes& attributes,
84 const std::string& source_path, 84 const std::string& source_path,
85 const std::string& absolute_source_path,
85 const std::string& config_name, 86 const std::string& config_name,
86 TargetOsType target_os); 87 TargetOsType target_os);
87 88
88 bool WriteFiles(const BuildSettings* build_settings, Err* err); 89 bool WriteFiles(const BuildSettings* build_settings, Err* err);
89 bool WriteProjectFile(const BuildSettings* build_settings, 90 bool WriteProjectFile(const BuildSettings* build_settings,
90 PBXProject* project, 91 PBXProject* project,
91 Err* err); 92 Err* err);
92 93
93 void WriteWorkspaceContent(std::ostream& out); 94 void WriteWorkspaceContent(std::ostream& out);
94 void WriteProjectContent(std::ostream& out, PBXProject* project); 95 void WriteProjectContent(std::ostream& out, PBXProject* project);
95 96
96 std::string name_; 97 std::string name_;
97 std::vector<std::unique_ptr<PBXProject>> projects_; 98 std::vector<std::unique_ptr<PBXProject>> projects_;
98 99
99 DISALLOW_COPY_AND_ASSIGN(XcodeWriter); 100 DISALLOW_COPY_AND_ASSIGN(XcodeWriter);
100 }; 101 };
101 102
102 #endif // TOOLS_GN_XCODE_WRITER_H_ 103 #endif // TOOLS_GN_XCODE_WRITER_H_
OLDNEW
« no previous file with comments | « no previous file | tools/gn/xcode_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698