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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 236 |
237 // PBXNativeTarget ------------------------------------------------------------ | 237 // PBXNativeTarget ------------------------------------------------------------ |
238 | 238 |
239 class PBXNativeTarget : public PBXTarget { | 239 class PBXNativeTarget : public PBXTarget { |
240 public: | 240 public: |
241 PBXNativeTarget(const std::string& name, | 241 PBXNativeTarget(const std::string& name, |
242 const std::string& shell_script, | 242 const std::string& shell_script, |
243 const std::string& config_name, | 243 const std::string& config_name, |
244 const PBXAttributes& attributes, | 244 const PBXAttributes& attributes, |
245 const std::string& product_type, | 245 const std::string& product_type, |
| 246 const std::string& product_name, |
246 const PBXFileReference* product_reference); | 247 const PBXFileReference* product_reference); |
247 ~PBXNativeTarget() override; | 248 ~PBXNativeTarget() override; |
248 | 249 |
249 void AddFileForIndexing(const PBXFileReference* file_reference); | 250 void AddFileForIndexing(const PBXFileReference* file_reference); |
250 | 251 |
251 // PBXObject implementation. | 252 // PBXObject implementation. |
252 PBXObjectClass Class() const override; | 253 PBXObjectClass Class() const override; |
253 void Print(std::ostream& out, unsigned indent) const override; | 254 void Print(std::ostream& out, unsigned indent) const override; |
254 | 255 |
255 private: | 256 private: |
256 const PBXFileReference* product_reference_; | 257 const PBXFileReference* product_reference_; |
257 std::string product_type_; | 258 std::string product_type_; |
| 259 std::string product_name_; |
258 | 260 |
259 DISALLOW_COPY_AND_ASSIGN(PBXNativeTarget); | 261 DISALLOW_COPY_AND_ASSIGN(PBXNativeTarget); |
260 }; | 262 }; |
261 | 263 |
262 // PBXProject ----------------------------------------------------------------- | 264 // PBXProject ----------------------------------------------------------------- |
263 | 265 |
264 class PBXProject : public PBXObject { | 266 class PBXProject : public PBXObject { |
265 public: | 267 public: |
266 PBXProject(const std::string& name, | 268 PBXProject(const std::string& name, |
267 const std::string& config_name, | 269 const std::string& config_name, |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 void Print(std::ostream& out, unsigned indent) const override; | 385 void Print(std::ostream& out, unsigned indent) const override; |
384 | 386 |
385 private: | 387 private: |
386 std::vector<std::unique_ptr<XCBuildConfiguration>> configurations_; | 388 std::vector<std::unique_ptr<XCBuildConfiguration>> configurations_; |
387 const PBXObject* owner_reference_; | 389 const PBXObject* owner_reference_; |
388 | 390 |
389 DISALLOW_COPY_AND_ASSIGN(XCConfigurationList); | 391 DISALLOW_COPY_AND_ASSIGN(XCConfigurationList); |
390 }; | 392 }; |
391 | 393 |
392 #endif // TOOLS_GN_XCODE_OBJECT_H_ | 394 #endif // TOOLS_GN_XCODE_OBJECT_H_ |
OLD | NEW |