Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: tools/gn/xcode_object.h

Issue 2591893002: [Refactor Xcode Objects] Allow extra attributes for native targets. (Closed)
Patch Set: Addressed feedback Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/gn/xcode_object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void AddNativeTarget(const std::string& name, 287 void AddNativeTarget(const std::string& name,
288 const std::string& type, 288 const std::string& type,
289 const std::string& output_name, 289 const std::string& output_name,
290 const std::string& output_type, 290 const std::string& output_type,
291 const std::string& shell_script); 291 const std::string& shell_script,
292 const PBXAttributes& extra_attributes = PBXAttributes());
292 293
293 void SetProjectDirPath(const std::string& project_dir_path); 294 void SetProjectDirPath(const std::string& project_dir_path);
294 void SetProjectRoot(const std::string& project_root); 295 void SetProjectRoot(const std::string& project_root);
295 void AddTarget(std::unique_ptr<PBXTarget> target); 296 void AddTarget(std::unique_ptr<PBXTarget> target);
296 297
297 // PBXObject implementation. 298 // PBXObject implementation.
298 PBXObjectClass Class() const override; 299 PBXObjectClass Class() const override;
299 std::string Name() const override; 300 std::string Name() const override;
300 std::string Comment() const override; 301 std::string Comment() const override;
301 void Visit(PBXObjectVisitor& visitor) override; 302 void Visit(PBXObjectVisitor& visitor) override;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 void Print(std::ostream& out, unsigned indent) const override; 396 void Print(std::ostream& out, unsigned indent) const override;
396 397
397 private: 398 private:
398 std::vector<std::unique_ptr<XCBuildConfiguration>> configurations_; 399 std::vector<std::unique_ptr<XCBuildConfiguration>> configurations_;
399 const PBXObject* owner_reference_; 400 const PBXObject* owner_reference_;
400 401
401 DISALLOW_COPY_AND_ASSIGN(XCConfigurationList); 402 DISALLOW_COPY_AND_ASSIGN(XCConfigurationList);
402 }; 403 };
403 404
404 #endif // TOOLS_GN_XCODE_OBJECT_H_ 405 #endif // TOOLS_GN_XCODE_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | tools/gn/xcode_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698