| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |