| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // Writes the flags, sources, and deps. | 49 // Writes the flags, sources, and deps. |
| 50 void WriteVCConfiguration(int indent); | 50 void WriteVCConfiguration(int indent); |
| 51 void WriteLinuxConfiguration(int indent); | 51 void WriteLinuxConfiguration(int indent); |
| 52 void WriteMacConfiguration(int indent); | 52 void WriteMacConfiguration(int indent); |
| 53 | 53 |
| 54 // Writes the flags, defines, etc. The flags input is non-const because the | 54 // Writes the flags, defines, etc. The flags input is non-const because the |
| 55 // cflags will be fixed up to account for things converted to VC settings | 55 // cflags will be fixed up to account for things converted to VC settings |
| 56 // (rather than compiler flags). | 56 // (rather than compiler flags). |
| 57 void WriteVCFlags(Flags& flags, int indent); | 57 void WriteVCFlags(Flags& flags, int indent); |
| 58 void WriteMacFlags(Flags& flags, int indent); | 58 void WriteMacFlags(const Target* target, Flags& flags, int indent); |
| 59 | 59 |
| 60 // Writes the Linux compiler and linker flags. The first version does the | 60 // Writes the Linux compiler and linker flags. The first version does the |
| 61 // flags for the given target, the second version takes a pregenerted list of | 61 // flags for the given target, the second version takes a pregenerted list of |
| 62 // flags. | 62 // flags. |
| 63 void WriteLinuxFlagsForTarget(const Target* target, int indent); | 63 void WriteLinuxFlagsForTarget(const Target* target, int indent); |
| 64 void WriteLinuxFlags(const Flags& flags, int indent); | 64 void WriteLinuxFlags(const Flags& flags, int indent); |
| 65 | 65 |
| 66 // Writes out the given target and optional host flags. This will insert a | 66 // Writes out the given target and optional host flags. This will insert a |
| 67 // target conditionn if there is a host build. | 67 // target conditionn if there is a host build. |
| 68 void WriteMacTargetAndHostFlags(const BuilderRecord* target, | 68 void WriteMacTargetAndHostFlags(const BuilderRecord* target, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 92 int indent); | 92 int indent); |
| 93 | 93 |
| 94 // All associated targets. | 94 // All associated targets. |
| 95 TargetGroup group_; | 95 TargetGroup group_; |
| 96 | 96 |
| 97 DISALLOW_COPY_AND_ASSIGN(GypBinaryTargetWriter); | 97 DISALLOW_COPY_AND_ASSIGN(GypBinaryTargetWriter); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 #endif // TOOLS_GN_GYP_BINARY_TARGET_WRITER_H_ | 100 #endif // TOOLS_GN_GYP_BINARY_TARGET_WRITER_H_ |
| 101 | 101 |
| OLD | NEW |