Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / tools / gn / gyp_binary_target_writer.h
index 276abfb..fe15a9b 100644 (file)
@@ -55,7 +55,7 @@ class GypBinaryTargetWriter : public GypTargetWriter {
   // cflags will be fixed up to account for things converted to VC settings
   // (rather than compiler flags).
   void WriteVCFlags(Flags& flags, int indent);
-  void WriteMacFlags(Flags& flags, int indent);
+  void WriteMacFlags(const Target* target, Flags& flags, int indent);
 
   // Writes the Linux compiler and linker flags. The first version does the
   // flags for the given target, the second version takes a pregenerted list of
@@ -63,6 +63,12 @@ class GypBinaryTargetWriter : public GypTargetWriter {
   void WriteLinuxFlagsForTarget(const Target* target, int indent);
   void WriteLinuxFlags(const Flags& flags, int indent);
 
+  // Writes out the given target and optional host flags. This will insert a
+  // target conditionn if there is a host build.
+  void WriteMacTargetAndHostFlags(const BuilderRecord* target,
+                                  const BuilderRecord* host,
+                                  int indent);
+
   // Shared helpers for writing specific parts of GYP files.
   void WriteSources(const Target* target, int indent);
   void WriteDeps(const Target* target, int indent);