summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorspang@chromium.org <spang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-20 05:33:46 +0000
committerspang@chromium.org <spang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-20 05:33:46 +0000
commit6ec70cc7ef252a95464f34ede4fcd86ff34f1bfd (patch)
tree70797c4f211417660ca49d5b55d919d5c4caf9d2 /build
parent4a0f050a6ee2b8561ad8381a608cf5c6f6be677d (diff)
downloadchromium_src-6ec70cc7ef252a95464f34ede4fcd86ff34f1bfd.zip
chromium_src-6ec70cc7ef252a95464f34ede4fcd86ff34f1bfd.tar.gz
chromium_src-6ec70cc7ef252a95464f34ede4fcd86ff34f1bfd.tar.bz2
Support use_glib==0 on Linux in base
This makes base build on Linux when use_glib is set to 0. The only glib bits we are currently using in that configuration are g_get_home_dir() and g_try_malloc(). Use of g_get_home_dir() is not essential. Without glib, we can just rely on the $HOME environment variable always. Use of g_try_malloc() is just a way to cause a large memory allocation from a shared library. We can achieve the same effect using asprintf(). BUG=318315, 318413, 170408 Review URL: https://codereview.chromium.org/69953025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236162 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index e1bfe69..4b56eb3 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -2065,6 +2065,9 @@
['use_cras==1', {
'defines': ['USE_CRAS=1'],
}],
+ ['use_glib==1', {
+ 'defines': ['USE_GLIB=1'],
+ }],
['use_ozone==1', {
'defines': ['USE_OZONE=1'],
}],