| 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 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 // Writes the given number of spaces to the output stream and returns it. | 42 // Writes the given number of spaces to the output stream and returns it. |
| 43 std::ostream& Indent(int spaces); | 43 std::ostream& Indent(int spaces); |
| 44 | 44 |
| 45 void WriteName(int indent); | 45 void WriteName(int indent); |
| 46 void WriteType(int indent); | 46 void WriteType(int indent); |
| 47 | 47 |
| 48 // Writes the flags, sources, and deps. | 48 // Writes the flags, sources, and deps. |
| 49 void WriteVCConfiguration(int indent); | 49 void WriteVCConfiguration(int indent); |
| 50 void WriteLinuxConfiguration(int indent); | 50 void WriteLinuxConfiguration(int indent); |
| 51 void WriteMacConfiguration(int indent); |
| 51 | 52 |
| 52 // Writes the Visual Studio flags, defines, etc. The flags input is non-const | 53 // Writes the flags, defines, etc. The flags input is non-const because the |
| 53 // because the cflags will be fixed up to account for things converted to | 54 // cflags will be fixed up to account for things converted to VC settings |
| 54 // VC settings (rather than compiler flags). | 55 // (rather than compiler flags). |
| 55 void WriteVCFlags(Flags& flags, int indent); | 56 void WriteVCFlags(Flags& flags, int indent); |
| 57 void WriteMacFlags(Flags& flags, int indent); |
| 56 | 58 |
| 57 // Writes the Linux compiler and linker flags. The first version does the | 59 // Writes the Linux compiler and linker flags. The first version does the |
| 58 // flags for the given target, the second version takes a pregenerted list of | 60 // flags for the given target, the second version takes a pregenerted list of |
| 59 // flags. | 61 // flags. |
| 60 void WriteLinuxFlagsForTarget(const Target* target, int indent); | 62 void WriteLinuxFlagsForTarget(const Target* target, int indent); |
| 61 void WriteLinuxFlags(const Flags& flags, int indent); | 63 void WriteLinuxFlags(const Flags& flags, int indent); |
| 62 | 64 |
| 63 // Shared helpers for writing specific parts of GYP files. | 65 // Shared helpers for writing specific parts of GYP files. |
| 64 void WriteSources(const Target* target, int indent); | 66 void WriteSources(const Target* target, int indent); |
| 65 void WriteDeps(const Target* target, int indent); | 67 void WriteDeps(const Target* target, int indent); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 76 Flags FlagsFromConfigList(const std::vector<const Config*>& configs) const; | 78 Flags FlagsFromConfigList(const std::vector<const Config*>& configs) const; |
| 77 | 79 |
| 78 // All associated targets. | 80 // All associated targets. |
| 79 TargetGroup group_; | 81 TargetGroup group_; |
| 80 | 82 |
| 81 DISALLOW_COPY_AND_ASSIGN(GypBinaryTargetWriter); | 83 DISALLOW_COPY_AND_ASSIGN(GypBinaryTargetWriter); |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 #endif // TOOLS_GN_GYP_BINARY_TARGET_WRITER_H_ | 86 #endif // TOOLS_GN_GYP_BINARY_TARGET_WRITER_H_ |
| 85 | 87 |
| OLD | NEW |