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

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

Issue 2577753002: [Refactor Xcode Objects] Decouple file references and indexing target. (Closed)
Patch Set: Rebase Created 4 years 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // PBXProject ----------------------------------------------------------------- 268 // PBXProject -----------------------------------------------------------------
269 269
270 class PBXProject : public PBXObject { 270 class PBXProject : public PBXObject {
271 public: 271 public:
272 PBXProject(const std::string& name, 272 PBXProject(const std::string& name,
273 const std::string& config_name, 273 const std::string& config_name,
274 const std::string& source_path, 274 const std::string& source_path,
275 const PBXAttributes& attributes); 275 const PBXAttributes& attributes);
276 ~PBXProject() override; 276 ~PBXProject() override;
277 277
278 void AddSourceFileToIndexingTarget(const std::string& navigator_path,
279 const std::string& source_path);
278 void AddSourceFile(const std::string& navigator_path, 280 void AddSourceFile(const std::string& navigator_path,
279 const std::string& source_path); 281 const std::string& source_path,
282 PBXNativeTarget* target);
283
280 void AddAggregateTarget(const std::string& name, 284 void AddAggregateTarget(const std::string& name,
281 const std::string& shell_script); 285 const std::string& shell_script);
286 void AddIndexingTarget();
282 void AddNativeTarget(const std::string& name, 287 void AddNativeTarget(const std::string& name,
283 const std::string& type, 288 const std::string& type,
284 const std::string& output_name, 289 const std::string& output_name,
285 const std::string& output_type, 290 const std::string& output_type,
286 const std::string& shell_script); 291 const std::string& shell_script);
287 292
288 void SetProjectDirPath(const std::string& project_dir_path); 293 void SetProjectDirPath(const std::string& project_dir_path);
289 void SetProjectRoot(const std::string& project_root); 294 void SetProjectRoot(const std::string& project_root);
290 void AddTarget(std::unique_ptr<PBXTarget> target); 295 void AddTarget(std::unique_ptr<PBXTarget> target);
291 296
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 void Print(std::ostream& out, unsigned indent) const override; 395 void Print(std::ostream& out, unsigned indent) const override;
391 396
392 private: 397 private:
393 std::vector<std::unique_ptr<XCBuildConfiguration>> configurations_; 398 std::vector<std::unique_ptr<XCBuildConfiguration>> configurations_;
394 const PBXObject* owner_reference_; 399 const PBXObject* owner_reference_;
395 400
396 DISALLOW_COPY_AND_ASSIGN(XCConfigurationList); 401 DISALLOW_COPY_AND_ASSIGN(XCConfigurationList);
397 }; 402 };
398 403
399 #endif // TOOLS_GN_XCODE_OBJECT_H_ 404 #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