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

Unified Diff: src/platform/theme/SConstruct

Issue 524073: Consistently pass through PKG_CONFIG_LIBDIR environment variable (Closed)
Patch Set: Created 10 years, 11 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
Index: src/platform/theme/SConstruct
diff --git a/src/platform/theme/SConstruct b/src/platform/theme/SConstruct
index 09e26da89cbdd41962b633f7aa37655714916185..4ee3063fc1333127e5526011e3e256e8e8beabf0 100644
--- a/src/platform/theme/SConstruct
+++ b/src/platform/theme/SConstruct
@@ -17,6 +17,11 @@ for key in Split('CC CXX AR RANLIB LD NM CFLAGS CCFLAGS'):
if value != None:
env[key] = value
+# Fix up the pkg-config path if it is present in the environment.
+for key in Split('PKG_CONFIG_LIBDIR PKG_CONFIG_PATH'):
+ if os.environ.has_key(key):
+ env['ENV'][key] = os.environ[key]
+
env.ParseConfig('pkg-config --cflags --libs gtk+-2.0 glib-2.0')
env.SharedLibrary('theme', SOURCES)

Powered by Google App Engine
This is Rietveld 408576698