Skip to content

Commit

Permalink
Revert 34195 - Make sure the 'use_system_*' variables are actually vi…
Browse files Browse the repository at this point in the history
…sible in the relevant gyp files.

BUG=29738

Review URL: http://codereview.chromium.org/479005

TBR=mmoss@google.com

Example choke:
http://build.chromium.org/buildbot/waterfall/builders/Linux%20Perf/builds/4382/steps/compile/logs/stdio

   Compiling /b/slave/chromium-rel-linux-hardy/build/src/sconsbuild/Release/obj/chrome/unit_tests/common/bzip2_unittest.o
   /b/slave/chromium-rel-linux-hardy/build/src/chrome/common/bzip2_unittest.cc:6:19: error: bzlib.h: No such file or directory


Review URL: http://codereview.chromium.org/484003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34213 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
jrg@chromium.org committed Dec 10, 2009
1 parent 16aef84 commit 1ac6048
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 52 deletions.
14 changes: 14 additions & 0 deletions build/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@
# hosts should pass an explicit target_arch to gyp.
'target_arch%':
'<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/arm.*/arm/")',

# On Linux, we use the system versions of several libraries. We end
# up pulling these in as .so's anyway since they are already in our
# transitive closure due to GTK.
'use_system_zlib': 1,
'use_system_libjpeg': 1,
'use_system_bzip2': 1,
'use_system_libpng': 1,
'use_system_libjpeg': 1,
'use_system_libxslt': 1,

# We use our own copy of libssl, although we still need to link
# against the rest of NSS.
'use_system_ssl': 0,
}, { # OS!="linux"
'target_arch%': 'ia32',
}],
Expand Down
6 changes: 3 additions & 3 deletions build/install-build-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ fi
# Packages need for development
dev_list="apache2 bison fakeroot flex g++ g++-multilib gperf libapache2-mod-php5
libasound2-dev libcairo2-dev libgconf2-dev libglib2.0-dev
libgtk2.0-dev libjpeg62-dev libnspr4-dev libnss3-dev libsqlite3-dev
libxslt1-dev lighttpd msttcorefonts patch perl php5-cgi pkg-config
python rpm subversion wdiff"
libgtk2.0-dev libnspr4-dev libnss3-dev libsqlite3-dev lighttpd
msttcorefonts patch perl php5-cgi pkg-config python rpm subversion
wdiff"

# Full list of required run-time libraries
lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libexpat1
Expand Down
14 changes: 3 additions & 11 deletions build/linux/system.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,11 @@
'pkg-config': 'pkg-config'
},
}],
[ 'OS=="linux"', {
'variables': {
# We use our own copy of libssl, although we still need to link against
# the rest of NSS.
'use_system_ssl%': 0,
},
}, { # OS!="linux"
'variables': {
'use_system_ssl%': 1,
},
}],
],

'variables': {
'use_system_ssl%': 1,
},

'targets': [
{
Expand Down
9 changes: 1 addition & 8 deletions third_party/bzip2/bzip2.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@

{
'variables': {
'conditions': [
[ 'OS=="linux"', {
# Link to system .so since we already use it due to GTK.
'use_system_bzip2%': 1,
}, { # OS!="linux"
'use_system_bzip2%': 0,
}],
],
'use_system_bzip2%': 0,
},
'conditions': [
['use_system_bzip2==0', {
Expand Down
9 changes: 1 addition & 8 deletions third_party/libjpeg/libjpeg.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@

{
'variables': {
'conditions': [
[ 'OS=="linux"', {
# Link to system .so since we already use it due to GTK.
'use_system_libjpeg%': 1,
}, { # OS!="linux"
'use_system_libjpeg%': 0,
}],
],
'use_system_libjpeg%': 0,
},
'conditions': [
['use_system_libjpeg==0', {
Expand Down
9 changes: 1 addition & 8 deletions third_party/libpng/libpng.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@

{
'variables': {
'conditions': [
[ 'OS=="linux"', {
# Link to system .so since we already use it due to GTK.
'use_system_libpng%': 1,
}, { # OS!="linux"
'use_system_libpng%': 0,
}],
],
'use_system_libpng%': 0,
},
'conditions': [
['use_system_libpng==0', {
Expand Down
7 changes: 1 addition & 6 deletions third_party/libxslt/libxslt.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@
['OS=="linux" or OS=="freebsd"', {'os_include': 'linux'}],
['OS=="mac"', {'os_include': 'mac'}],
['OS=="win"', {'os_include': 'win32'}],
[ 'OS=="linux"', {
# Link to system .so since we already use it due to GTK.
'use_system_libxslt%': 1,
}, { # OS!="linux"
'use_system_libxslt%': 0,
}],
],
'use_system_libxslt%': 0,
},
'targets': [
{
Expand Down
9 changes: 1 addition & 8 deletions third_party/zlib/zlib.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@

{
'variables': {
'conditions': [
[ 'OS=="linux"', {
# Link to system .so since we already use it due to GTK.
'use_system_zlib%': 1,
}, { # OS!="linux"
'use_system_zlib%': 0,
}],
],
'use_system_zlib%': 0,
},
'conditions': [
['use_system_zlib==0', {
Expand Down

0 comments on commit 1ac6048

Please sign in to comment.