| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_GYP_BINARY_TARGET_WRITER_H_ | 5 #ifndef TOOLS_GN_GYP_BINARY_TARGET_WRITER_H_ |
| 6 #define TOOLS_GN_GYP_BINARY_TARGET_WRITER_H_ | 6 #define TOOLS_GN_GYP_BINARY_TARGET_WRITER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "tools/gn/gyp_target_writer.h" | 12 #include "tools/gn/gyp_target_writer.h" |
| 13 #include "tools/gn/target.h" |
| 13 #include "tools/gn/toolchain.h" | 14 #include "tools/gn/toolchain.h" |
| 14 | 15 |
| 15 // Writes a portion of a .gyp file for a binary target type (an executable, a | 16 // Writes a portion of a .gyp file for a binary target type (an executable, a |
| 16 // shared library, or a static library). | 17 // shared library, or a static library). |
| 17 class GypBinaryTargetWriter : public GypTargetWriter { | 18 class GypBinaryTargetWriter : public GypTargetWriter { |
| 18 public: | 19 public: |
| 19 GypBinaryTargetWriter(const TargetGroup& group, std::ostream& out); | 20 GypBinaryTargetWriter(const TargetGroup& group, std::ostream& out); |
| 20 virtual ~GypBinaryTargetWriter(); | 21 virtual ~GypBinaryTargetWriter(); |
| 21 | 22 |
| 22 virtual void Run() OVERRIDE; | 23 virtual void Run() OVERRIDE; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 void WriteIncludeDirs(const Flags& flags, int indent); | 67 void WriteIncludeDirs(const Flags& flags, int indent); |
| 67 void WriteDirectDependentSettings(int indent); | 68 void WriteDirectDependentSettings(int indent); |
| 68 void WriteAllDependentSettings(int indent); | 69 void WriteAllDependentSettings(int indent); |
| 69 | 70 |
| 70 // Writes out the given flags and such from all configs in the given list. | 71 // Writes out the given flags and such from all configs in the given list. |
| 71 void WriteSettingsFromConfigList(const std::vector<const Config*>& configs, | 72 void WriteSettingsFromConfigList(const std::vector<const Config*>& configs, |
| 72 int indent); | 73 int indent); |
| 73 | 74 |
| 74 // Fills the given flags structure. | 75 // Fills the given flags structure. |
| 75 Flags FlagsFromTarget(const Target* target) const; | 76 Flags FlagsFromTarget(const Target* target) const; |
| 76 Flags FlagsFromConfigList(const std::vector<const Config*>& configs) const; | 77 Flags FlagsFromConfigList(const LabelConfigVector& configs) const; |
| 77 | 78 |
| 78 // All associated targets. | 79 // All associated targets. |
| 79 TargetGroup group_; | 80 TargetGroup group_; |
| 80 | 81 |
| 81 DISALLOW_COPY_AND_ASSIGN(GypBinaryTargetWriter); | 82 DISALLOW_COPY_AND_ASSIGN(GypBinaryTargetWriter); |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 #endif // TOOLS_GN_GYP_BINARY_TARGET_WRITER_H_ | 85 #endif // TOOLS_GN_GYP_BINARY_TARGET_WRITER_H_ |
| 85 | 86 |
| OLD | NEW |