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

Unified Diff: tools/gn/ninja_helper.cc

Issue 22290010: Add support for data deps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove switch Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/gn.gyp ('k') | tools/gn/ninja_target_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/ninja_helper.cc
diff --git a/tools/gn/ninja_helper.cc b/tools/gn/ninja_helper.cc
index c3d275bc51e73aa1bf831f9ce43d59548bc5e11a..e4f4082817a713a5e5f9ba4c0f9c9b8ab81674c9 100644
--- a/tools/gn/ninja_helper.cc
+++ b/tools/gn/ninja_helper.cc
@@ -116,12 +116,12 @@ OutputFile NinjaHelper::GetTargetOutputFile(const Target* target) const {
// This is prepended to the output file name.
const char* prefix;
- if (target->settings()->IsWin() ||
- target->output_type() == Target::EXECUTABLE) {
- prefix = "";
- } else {
+ if (!target->settings()->IsWin() &&
+ (target->output_type() == Target::SHARED_LIBRARY ||
+ target->output_type() == Target::STATIC_LIBRARY))
prefix = "lib";
- }
+ else
+ prefix = "";
const char* extension;
if (target->output_type() == Target::NONE ||
« no previous file with comments | « tools/gn/gn.gyp ('k') | tools/gn/ninja_target_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698