| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |