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

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

Issue 26267003: Add the concept of a source set to GN. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « tools/gn/target.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/target_generator.h" 5 #include "tools/gn/target_generator.h"
6 6
7 #include "tools/gn/binary_target_generator.h" 7 #include "tools/gn/binary_target_generator.h"
8 #include "tools/gn/build_settings.h" 8 #include "tools/gn/build_settings.h"
9 #include "tools/gn/config.h" 9 #include "tools/gn/config.h"
10 #include "tools/gn/copy_target_generator.h" 10 #include "tools/gn/copy_target_generator.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 BinaryTargetGenerator generator(target, scope, function_token, 93 BinaryTargetGenerator generator(target, scope, function_token,
94 Target::EXECUTABLE, err); 94 Target::EXECUTABLE, err);
95 generator.Run(); 95 generator.Run();
96 } else if (output_type == functions::kGroup) { 96 } else if (output_type == functions::kGroup) {
97 GroupTargetGenerator generator(target, scope, function_token, err); 97 GroupTargetGenerator generator(target, scope, function_token, err);
98 generator.Run(); 98 generator.Run();
99 } else if (output_type == functions::kSharedLibrary) { 99 } else if (output_type == functions::kSharedLibrary) {
100 BinaryTargetGenerator generator(target, scope, function_token, 100 BinaryTargetGenerator generator(target, scope, function_token,
101 Target::SHARED_LIBRARY, err); 101 Target::SHARED_LIBRARY, err);
102 generator.Run(); 102 generator.Run();
103 } else if (output_type == functions::kSourceSet) {
104 BinaryTargetGenerator generator(target, scope, function_token,
105 Target::SOURCE_SET, err);
106 generator.Run();
103 } else if (output_type == functions::kStaticLibrary) { 107 } else if (output_type == functions::kStaticLibrary) {
104 BinaryTargetGenerator generator(target, scope, function_token, 108 BinaryTargetGenerator generator(target, scope, function_token,
105 Target::STATIC_LIBRARY, err); 109 Target::STATIC_LIBRARY, err);
106 generator.Run(); 110 generator.Run();
107 } else { 111 } else {
108 *err = Err(function_token, "Not a known output type", 112 *err = Err(function_token, "Not a known output type",
109 "I am very confused."); 113 "I am very confused.");
110 } 114 }
111 } 115 }
112 116
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 forward_from_list.push_back(forward_from); 312 forward_from_list.push_back(forward_from);
309 } 313 }
310 314
311 target_->forward_dependent_configs().swap(forward_from_list); 315 target_->forward_dependent_configs().swap(forward_from_list);
312 } 316 }
313 317
314 318
315 319
316 320
317 321
OLDNEW
« no previous file with comments | « tools/gn/target.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698