Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: tools/gn/ninja_copy_target_writer.h

Issue 1606553002: Add support for Mac/iOS application bundles to GN tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: base_unittests builds and pass all tests with GN Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_NINJA_COPY_TARGET_WRITER_H_ 5 #ifndef TOOLS_GN_NINJA_COPY_TARGET_WRITER_H_
6 #define TOOLS_GN_NINJA_COPY_TARGET_WRITER_H_ 6 #define TOOLS_GN_NINJA_COPY_TARGET_WRITER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "tools/gn/ninja_target_writer.h" 9 #include "tools/gn/ninja_target_writer.h"
10 #include "tools/gn/toolchain.h"
10 11
11 class Tool; 12 class Tool;
12 13
13 // Writes a .ninja file for a copy target type. 14 // Writes a .ninja file for a copy target type.
14 class NinjaCopyTargetWriter : public NinjaTargetWriter { 15 class NinjaCopyTargetWriter : public NinjaTargetWriter {
15 public: 16 public:
16 NinjaCopyTargetWriter(const Target* target, std::ostream& out); 17 NinjaCopyTargetWriter(
18 const Target* target, std::ostream& out, Toolchain::ToolType tool_type);
17 ~NinjaCopyTargetWriter() override; 19 ~NinjaCopyTargetWriter() override;
18 20
19 void Run() override; 21 void Run() override;
20 22
21 private: 23 private:
22 // Writes the rules top copy the file(s), putting the computed output file 24 // Writes the rules top copy the file(s), putting the computed output file
23 // name(s) into the given vector. 25 // name(s) into the given vector.
24 void WriteCopyRules(std::vector<OutputFile>* output_files); 26 void WriteCopyRules(std::vector<OutputFile>* output_files);
25 27
28 Toolchain::ToolType tool_type_;
29
26 DISALLOW_COPY_AND_ASSIGN(NinjaCopyTargetWriter); 30 DISALLOW_COPY_AND_ASSIGN(NinjaCopyTargetWriter);
27 }; 31 };
28 32
29 #endif // TOOLS_GN_NINJA_COPY_TARGET_WRITER_H_ 33 #endif // TOOLS_GN_NINJA_COPY_TARGET_WRITER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698