| 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_OBJECT_H_ | 5 #ifndef TOOLS_GN_XCODE_OBJECT_H_ |
| 6 #define TOOLS_GN_XCODE_OBJECT_H_ | 6 #define TOOLS_GN_XCODE_OBJECT_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 PBXFileReference(const std::string& name, | 183 PBXFileReference(const std::string& name, |
| 184 const std::string& path, | 184 const std::string& path, |
| 185 const std::string& type); | 185 const std::string& type); |
| 186 ~PBXFileReference() override; | 186 ~PBXFileReference() override; |
| 187 | 187 |
| 188 // PBXObject implementation. | 188 // PBXObject implementation. |
| 189 PBXObjectClass Class() const override; | 189 PBXObjectClass Class() const override; |
| 190 std::string Name() const override; | 190 std::string Name() const override; |
| 191 void Print(std::ostream& out, unsigned indent) const override; | 191 void Print(std::ostream& out, unsigned indent) const override; |
| 192 | 192 |
| 193 const std::string& path() const { return path_; } |
| 194 |
| 193 private: | 195 private: |
| 194 std::string name_; | 196 std::string name_; |
| 195 std::string path_; | 197 std::string path_; |
| 196 std::string type_; | 198 std::string type_; |
| 197 | 199 |
| 198 DISALLOW_COPY_AND_ASSIGN(PBXFileReference); | 200 DISALLOW_COPY_AND_ASSIGN(PBXFileReference); |
| 199 }; | 201 }; |
| 200 | 202 |
| 201 // PBXFrameworksBuildPhase ---------------------------------------------------- | 203 // PBXFrameworksBuildPhase ---------------------------------------------------- |
| 202 | 204 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 void AddSourceFileToIndexingTarget(const std::string& navigator_path, | 288 void AddSourceFileToIndexingTarget(const std::string& navigator_path, |
| 287 const std::string& source_path, | 289 const std::string& source_path, |
| 288 const CompilerFlags compiler_flag); | 290 const CompilerFlags compiler_flag); |
| 289 void AddSourceFile(const std::string& navigator_path, | 291 void AddSourceFile(const std::string& navigator_path, |
| 290 const std::string& source_path, | 292 const std::string& source_path, |
| 291 const CompilerFlags compiler_flag, | 293 const CompilerFlags compiler_flag, |
| 292 PBXNativeTarget* target); | 294 PBXNativeTarget* target); |
| 293 void AddAggregateTarget(const std::string& name, | 295 void AddAggregateTarget(const std::string& name, |
| 294 const std::string& shell_script); | 296 const std::string& shell_script); |
| 295 void AddIndexingTarget(); | 297 void AddIndexingTarget(); |
| 296 void AddNativeTarget(const std::string& name, | 298 PBXNativeTarget* AddNativeTarget( |
| 297 const std::string& type, | 299 const std::string& name, |
| 298 const std::string& output_name, | 300 const std::string& type, |
| 299 const std::string& output_type, | 301 const std::string& output_name, |
| 300 const std::string& shell_script, | 302 const std::string& output_type, |
| 301 const PBXAttributes& extra_attributes = PBXAttributes()); | 303 const std::string& shell_script, |
| 304 const PBXAttributes& extra_attributes = PBXAttributes()); |
| 302 | 305 |
| 303 void SetProjectDirPath(const std::string& project_dir_path); | 306 void SetProjectDirPath(const std::string& project_dir_path); |
| 304 void SetProjectRoot(const std::string& project_root); | 307 void SetProjectRoot(const std::string& project_root); |
| 305 void AddTarget(std::unique_ptr<PBXTarget> target); | 308 void AddTarget(std::unique_ptr<PBXTarget> target); |
| 306 | 309 |
| 307 // PBXObject implementation. | 310 // PBXObject implementation. |
| 308 PBXObjectClass Class() const override; | 311 PBXObjectClass Class() const override; |
| 309 std::string Name() const override; | 312 std::string Name() const override; |
| 310 std::string Comment() const override; | 313 std::string Comment() const override; |
| 311 void Visit(PBXObjectVisitor& visitor) override; | 314 void Visit(PBXObjectVisitor& visitor) override; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 void Print(std::ostream& out, unsigned indent) const override; | 408 void Print(std::ostream& out, unsigned indent) const override; |
| 406 | 409 |
| 407 private: | 410 private: |
| 408 std::vector<std::unique_ptr<XCBuildConfiguration>> configurations_; | 411 std::vector<std::unique_ptr<XCBuildConfiguration>> configurations_; |
| 409 const PBXObject* owner_reference_; | 412 const PBXObject* owner_reference_; |
| 410 | 413 |
| 411 DISALLOW_COPY_AND_ASSIGN(XCConfigurationList); | 414 DISALLOW_COPY_AND_ASSIGN(XCConfigurationList); |
| 412 }; | 415 }; |
| 413 | 416 |
| 414 #endif // TOOLS_GN_XCODE_OBJECT_H_ | 417 #endif // TOOLS_GN_XCODE_OBJECT_H_ |
| OLD | NEW |