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
3 // found in the LICENSE file.
5 #ifndef TOOLS_GN_GYP_TARGET_WRITER_H_
6 #define TOOLS_GN_GYP_TARGET_WRITER_H_
11 #include "base/basictypes.h"
12 #include "tools/gn/gyp_helper.h"
19 class GypTargetWriter
{
29 const Target
* release
;
30 const Target
* host_debug
;
31 const Target
* host_release
;
34 GypTargetWriter(const Target
* target
, std::ostream
& out
);
35 virtual ~GypTargetWriter();
37 static void WriteFile(const SourceFile
& gyp_file
,
38 const std::vector
<TargetGroup
>& targets
,
41 virtual void Run() = 0;
44 const Settings
* settings_
; // Non-owning.
45 const Target
* target_
; // Non-owning.
51 DISALLOW_COPY_AND_ASSIGN(GypTargetWriter
);
54 #endif // TOOLS_GN_GYP_TARGET_WRITER_H_