| 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::multimap<std::string, std::string>; |
| 23 class PBXProject; | 23 class PBXProject; |
| 24 | 24 |
| 25 namespace base { | 25 namespace base { |
| 26 class FilePath; | 26 class FilePath; |
| 27 } | 27 } |
| 28 | 28 |
| 29 class XcodeWriter { | 29 class XcodeWriter { |
| 30 public: | 30 public: |
| 31 enum TargetOsType { | 31 enum TargetOsType { |
| 32 WRITER_TARGET_OS_IOS, | 32 WRITER_TARGET_OS_IOS, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 void WriteWorkspaceContent(std::ostream& out); | 93 void WriteWorkspaceContent(std::ostream& out); |
| 94 void WriteProjectContent(std::ostream& out, PBXProject* project); | 94 void WriteProjectContent(std::ostream& out, PBXProject* project); |
| 95 | 95 |
| 96 std::string name_; | 96 std::string name_; |
| 97 std::vector<std::unique_ptr<PBXProject>> projects_; | 97 std::vector<std::unique_ptr<PBXProject>> projects_; |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(XcodeWriter); | 99 DISALLOW_COPY_AND_ASSIGN(XcodeWriter); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 #endif // TOOLS_GN_XCODE_WRITER_H_ | 102 #endif // TOOLS_GN_XCODE_WRITER_H_ |
| OLD | NEW |