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

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

Issue 180743014: Allow the bootstrap binary of GN (the one in TEMPDIR) to build and run on FreeBSD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Submit a clean patch. Created 6 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/escape.cc ('k') | tools/gn/settings.h » ('j') | 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/filesystem_utils.h" 5 #include "tools/gn/filesystem_utils.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 case Target::SHARED_LIBRARY: 224 case Target::SHARED_LIBRARY:
225 return "dll.lib"; // Extension of import library. 225 return "dll.lib"; // Extension of import library.
226 case Target::STATIC_LIBRARY: 226 case Target::STATIC_LIBRARY:
227 return "lib"; 227 return "lib";
228 default: 228 default:
229 NOTREACHED(); 229 NOTREACHED();
230 } 230 }
231 break; 231 break;
232 232
233 case Settings::LINUX: 233 case Settings::LINUX:
234 case Settings::FREEBSD:
234 switch (type) { 235 switch (type) {
235 case Target::EXECUTABLE: 236 case Target::EXECUTABLE:
236 return ""; 237 return "";
237 case Target::SHARED_LIBRARY: 238 case Target::SHARED_LIBRARY:
238 return "so"; 239 return "so";
239 case Target::STATIC_LIBRARY: 240 case Target::STATIC_LIBRARY:
240 return "a"; 241 return "a";
241 default: 242 default:
242 NOTREACHED(); 243 NOTREACHED();
243 } 244 }
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 return GetGenDirForSourceDir(target->settings(), target->label().dir()); 731 return GetGenDirForSourceDir(target->settings(), target->label().dir());
731 } 732 }
732 733
733 SourceDir GetCurrentOutputDir(const Scope* scope) { 734 SourceDir GetCurrentOutputDir(const Scope* scope) {
734 return GetOutputDirForSourceDir(scope->settings(), scope->GetSourceDir()); 735 return GetOutputDirForSourceDir(scope->settings(), scope->GetSourceDir());
735 } 736 }
736 737
737 SourceDir GetCurrentGenDir(const Scope* scope) { 738 SourceDir GetCurrentGenDir(const Scope* scope) {
738 return GetGenDirForSourceDir(scope->settings(), scope->GetSourceDir()); 739 return GetGenDirForSourceDir(scope->settings(), scope->GetSourceDir());
739 } 740 }
OLDNEW
« no previous file with comments | « tools/gn/escape.cc ('k') | tools/gn/settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698