| 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> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 | 15 |
| 16 class Builder; | 16 class Builder; |
| 17 class BuildSettings; | 17 class BuildSettings; |
| 18 class Err; | 18 class Err; |
| 19 class SourceDir; | 19 class SourceDir; |
| 20 class Target; | 20 class Target; |
| 21 | 21 |
| 22 using PBXAttributes = std::map<std::string, std::string>; | 22 using PBXAttributes = std::map<std::string, std::string>; |
| 23 class PBXProject; | 23 class PBXProject; |
| 24 | 24 |
| 25 namespace base { | |
| 26 class FilePath; | |
| 27 } | |
| 28 | |
| 29 class XcodeWriter { | 25 class XcodeWriter { |
| 30 public: | 26 public: |
| 31 enum TargetOsType { | 27 enum TargetOsType { |
| 32 WRITER_TARGET_OS_IOS, | 28 WRITER_TARGET_OS_IOS, |
| 33 WRITER_TARGET_OS_MACOS, | 29 WRITER_TARGET_OS_MACOS, |
| 34 }; | 30 }; |
| 35 | 31 |
| 36 // Writes Xcode workspace and project files. | 32 // Writes Xcode workspace and project files. |
| 37 // | 33 // |
| 38 // |workspace_name| is the optional name of the workspace file name ("all" | 34 // |workspace_name| is the optional name of the workspace file name ("all" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 void WriteWorkspaceContent(std::ostream& out); | 90 void WriteWorkspaceContent(std::ostream& out); |
| 95 void WriteProjectContent(std::ostream& out, PBXProject* project); | 91 void WriteProjectContent(std::ostream& out, PBXProject* project); |
| 96 | 92 |
| 97 std::string name_; | 93 std::string name_; |
| 98 std::vector<std::unique_ptr<PBXProject>> projects_; | 94 std::vector<std::unique_ptr<PBXProject>> projects_; |
| 99 | 95 |
| 100 DISALLOW_COPY_AND_ASSIGN(XcodeWriter); | 96 DISALLOW_COPY_AND_ASSIGN(XcodeWriter); |
| 101 }; | 97 }; |
| 102 | 98 |
| 103 #endif // TOOLS_GN_XCODE_WRITER_H_ | 99 #endif // TOOLS_GN_XCODE_WRITER_H_ |
| OLD | NEW |