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

Unified Diff: tools/gn/config_values_generator.cc

Issue 1530183005: Special-case paths that appear in libs by not prefixing them with -l. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: treat source_file libs as inputs Created 5 years 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
Index: tools/gn/config_values_generator.cc
diff --git a/tools/gn/config_values_generator.cc b/tools/gn/config_values_generator.cc
index ca87d6363aea35c7df189f62ebb8ae1c0f012764..86ec02ef3ac1f03630a087bedeaa57797e2c81d3 100644
--- a/tools/gn/config_values_generator.cc
+++ b/tools/gn/config_values_generator.cc
@@ -79,11 +79,19 @@ void ConfigValuesGenerator::Run() {
FILL_DIR_CONFIG_VALUE( include_dirs)
FILL_STRING_CONFIG_VALUE(ldflags)
FILL_DIR_CONFIG_VALUE( lib_dirs)
- FILL_STRING_CONFIG_VALUE(libs)
#undef FILL_STRING_CONFIG_VALUE
#undef FILL_DIR_CONFIG_VALUE
+ // Libs
+ const Value* libs_value = scope_->GetValue("libs", true);
+ if (libs_value) {
+ std::vector<LibFile> result;
brettw 2015/12/18 00:04:55 I think you can avoid this temporary and have Extr
agrieve 2015/12/18 15:39:07 Done.
+ ExtractListOfLibs(scope_->settings()->build_settings(), *libs_value,
+ input_dir_, &result, err_);
+ config_values_->libs().swap(result);
+ }
+
// Precompiled headers.
const Value* precompiled_header_value =
scope_->GetValue(variables::kPrecompiledHeader, true);

Powered by Google App Engine
This is Rietveld 408576698