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

Side by Side Diff: tools/gn/toolchain.cc

Issue 1751903003: Add "bundle_data" target as first step for adding bundle support to gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-typos
Patch Set: Rebase Created 4 years, 9 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
« no previous file with comments | « tools/gn/target_generator.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "tools/gn/toolchain.h" 5 #include "tools/gn/toolchain.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string.h> 8 #include <string.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 case Target::EXECUTABLE: 144 case Target::EXECUTABLE:
145 return Toolchain::TYPE_LINK; 145 return Toolchain::TYPE_LINK;
146 case Target::SHARED_LIBRARY: 146 case Target::SHARED_LIBRARY:
147 return Toolchain::TYPE_SOLINK; 147 return Toolchain::TYPE_SOLINK;
148 case Target::LOADABLE_MODULE: 148 case Target::LOADABLE_MODULE:
149 return Toolchain::TYPE_SOLINK_MODULE; 149 return Toolchain::TYPE_SOLINK_MODULE;
150 case Target::STATIC_LIBRARY: 150 case Target::STATIC_LIBRARY:
151 return Toolchain::TYPE_ALINK; 151 return Toolchain::TYPE_ALINK;
152 case Target::SOURCE_SET: 152 case Target::SOURCE_SET:
153 return TYPE_STAMP; 153 return TYPE_STAMP;
154 case Target::COPY_FILES:
155 case Target::ACTION: 154 case Target::ACTION:
156 case Target::ACTION_FOREACH: 155 case Target::ACTION_FOREACH:
156 case Target::BUNDLE_DATA:
157 case Target::COPY_FILES:
157 return TYPE_STAMP; 158 return TYPE_STAMP;
158 default: 159 default:
159 NOTREACHED(); 160 NOTREACHED();
160 return Toolchain::TYPE_NONE; 161 return Toolchain::TYPE_NONE;
161 } 162 }
162 } 163 }
163 164
164 const Tool* Toolchain::GetToolForTargetFinalOutput(const Target* target) const { 165 const Tool* Toolchain::GetToolForTargetFinalOutput(const Target* target) const {
165 return tools_[GetToolTypeForTargetFinalOutput(target)].get(); 166 return tools_[GetToolTypeForTargetFinalOutput(target)].get();
166 } 167 }
OLDNEW
« no previous file with comments | « tools/gn/target_generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698