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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
277 | 277 |
278 void AddSourceFileToIndexingTarget(const std::string& navigator_path, | 278 void AddSourceFileToIndexingTarget(const std::string& navigator_path, |
279 const std::string& source_path); | 279 const std::string& source_path); |
280 void AddSourceFile(const std::string& navigator_path, | 280 void AddSourceFile(const std::string& navigator_path, |
281 const std::string& source_path, | 281 const std::string& source_path, |
282 PBXNativeTarget* target); | 282 PBXNativeTarget* target); |
283 | 283 |
284 void AddAggregateTarget(const std::string& name, | 284 void AddAggregateTarget(const std::string& name, |
285 const std::string& shell_script); | 285 const std::string& shell_script); |
286 void AddIndexingTarget(); | 286 void AddIndexingTarget(); |
287 | |
288 // NOTE: |extra_attributes| values may be overridden within this function. | |
sdefresne
2016/12/21 09:39:12
I understand what you mean by this comment, but on
liaoyuke
2016/12/21 16:59:26
Make sense. The "extra" in the name should explain
| |
287 void AddNativeTarget(const std::string& name, | 289 void AddNativeTarget(const std::string& name, |
288 const std::string& type, | 290 const std::string& type, |
289 const std::string& output_name, | 291 const std::string& output_name, |
290 const std::string& output_type, | 292 const std::string& output_type, |
291 const std::string& shell_script); | 293 const std::string& shell_script, |
294 const PBXAttributes& extra_attributes = PBXAttributes()); | |
292 | 295 |
293 void SetProjectDirPath(const std::string& project_dir_path); | 296 void SetProjectDirPath(const std::string& project_dir_path); |
294 void SetProjectRoot(const std::string& project_root); | 297 void SetProjectRoot(const std::string& project_root); |
295 void AddTarget(std::unique_ptr<PBXTarget> target); | 298 void AddTarget(std::unique_ptr<PBXTarget> target); |
296 | 299 |
297 // PBXObject implementation. | 300 // PBXObject implementation. |
298 PBXObjectClass Class() const override; | 301 PBXObjectClass Class() const override; |
299 std::string Name() const override; | 302 std::string Name() const override; |
300 std::string Comment() const override; | 303 std::string Comment() const override; |
301 void Visit(PBXObjectVisitor& visitor) override; | 304 void Visit(PBXObjectVisitor& visitor) override; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
395 void Print(std::ostream& out, unsigned indent) const override; | 398 void Print(std::ostream& out, unsigned indent) const override; |
396 | 399 |
397 private: | 400 private: |
398 std::vector<std::unique_ptr<XCBuildConfiguration>> configurations_; | 401 std::vector<std::unique_ptr<XCBuildConfiguration>> configurations_; |
399 const PBXObject* owner_reference_; | 402 const PBXObject* owner_reference_; |
400 | 403 |
401 DISALLOW_COPY_AND_ASSIGN(XCConfigurationList); | 404 DISALLOW_COPY_AND_ASSIGN(XCConfigurationList); |
402 }; | 405 }; |
403 | 406 |
404 #endif // TOOLS_GN_XCODE_OBJECT_H_ | 407 #endif // TOOLS_GN_XCODE_OBJECT_H_ |
OLD | NEW |