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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(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 |
| 67 // target conditionn if there is a host build. |
| 68 void WriteMacTargetAndHostFlags(const BuilderRecord* target, |
| 69 const BuilderRecord* host, |
| 70 int indent); |
| 71 |
66 // Shared helpers for writing specific parts of GYP files. | 72 // Shared helpers for writing specific parts of GYP files. |
67 void WriteSources(const Target* target, int indent); | 73 void WriteSources(const Target* target, int indent); |
68 void WriteDeps(const Target* target, int indent); | 74 void WriteDeps(const Target* target, int indent); |
69 void WriteIncludeDirs(const Flags& flags, int indent); | 75 void WriteIncludeDirs(const Flags& flags, int indent); |
70 void WriteDirectDependentSettings(int indent); | 76 void WriteDirectDependentSettings(int indent); |
71 void WriteAllDependentSettings(int indent); | 77 void WriteAllDependentSettings(int indent); |
72 | 78 |
73 // Writes out the given flags and such from all configs in the given list. | 79 // Writes out the given flags and such from all configs in the given list. |
74 void WriteSettingsFromConfigList(const std::vector<const Config*>& configs, | 80 void WriteSettingsFromConfigList(const std::vector<const Config*>& configs, |
75 int indent); | 81 int indent); |
(...skipping 10 matching lines...) Expand all Loading... |
86 int indent); | 92 int indent); |
87 | 93 |
88 // All associated targets. | 94 // All associated targets. |
89 TargetGroup group_; | 95 TargetGroup group_; |
90 | 96 |
91 DISALLOW_COPY_AND_ASSIGN(GypBinaryTargetWriter); | 97 DISALLOW_COPY_AND_ASSIGN(GypBinaryTargetWriter); |
92 }; | 98 }; |
93 | 99 |
94 #endif // TOOLS_GN_GYP_BINARY_TARGET_WRITER_H_ | 100 #endif // TOOLS_GN_GYP_BINARY_TARGET_WRITER_H_ |
95 | 101 |
OLD | NEW |