diff options
author | pvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-14 22:27:30 +0000 |
---|---|---|
committer | pvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-14 22:27:30 +0000 |
commit | a13d6771b025aeb6028e7e79c2b80b590c3bac01 (patch) | |
tree | 41556b16c320b2cb737bb9767534e2aa74176284 /third_party | |
parent | b5284b12bf3c0c3afc1cc0602c4c0569b84b8fca (diff) | |
download | chromium_src-a13d6771b025aeb6028e7e79c2b80b590c3bac01.zip chromium_src-a13d6771b025aeb6028e7e79c2b80b590c3bac01.tar.gz chromium_src-a13d6771b025aeb6028e7e79c2b80b590c3bac01.tar.bz2 |
GYP changes for FreeBSD and OpenBSD
Review URL: http://codereview.chromium.org/1480002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/bzip2/bzip2.gyp | 2 | ||||
-rw-r--r-- | third_party/expat/expat.gyp | 4 | ||||
-rw-r--r-- | third_party/ffmpeg/ffmpeg.gyp | 4 | ||||
-rw-r--r-- | third_party/libjingle/libjingle.gyp | 5 | ||||
-rw-r--r-- | third_party/libjpeg/libjpeg.gyp | 4 | ||||
-rw-r--r-- | third_party/libpng/libpng.gyp | 4 | ||||
-rw-r--r-- | third_party/npapi/npapi.gyp | 2 | ||||
-rw-r--r-- | third_party/sqlite/sqlite.gyp | 4 | ||||
-rw-r--r-- | third_party/zlib/zlib.gyp | 6 |
9 files changed, 21 insertions, 14 deletions
diff --git a/third_party/bzip2/bzip2.gyp b/third_party/bzip2/bzip2.gyp index c0f36e0..27f5c84 100644 --- a/third_party/bzip2/bzip2.gyp +++ b/third_party/bzip2/bzip2.gyp @@ -5,7 +5,7 @@ { 'variables': { 'conditions': [ - [ 'OS=="linux"', { + [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', { # Link to system .so since we already use it due to GTK. 'use_system_bzip2%': 1, }, { # OS!="linux" diff --git a/third_party/expat/expat.gyp b/third_party/expat/expat.gyp index ab017f6..2f5b9bf 100644 --- a/third_party/expat/expat.gyp +++ b/third_party/expat/expat.gyp @@ -15,7 +15,7 @@ ] }, 'conditions': [ - ['OS=="linux"', { + ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { # On Linux, we implicitly already depend on expat via fontconfig; # let's not pull it in twice. 'targets': [ @@ -59,7 +59,7 @@ 'COMPILED_FROM_DSP', ], }], - ['OS=="mac"', { + ['OS=="mac" or OS=="freebsd" or OS=="openbsd"', { 'defines': [ 'HAVE_EXPAT_CONFIG_H', ], diff --git a/third_party/ffmpeg/ffmpeg.gyp b/third_party/ffmpeg/ffmpeg.gyp index 3242dc8..9833911 100644 --- a/third_party/ffmpeg/ffmpeg.gyp +++ b/third_party/ffmpeg/ffmpeg.gyp @@ -756,8 +756,8 @@ ], 'conditions': [ - # Non-Mac platforms need libdl for dlopen() and friends. - ['OS!="mac"', { + # Linux/Solaris need libdl for dlopen() and friends. + ['OS=="linux" or OS=="solaris"', { 'link_settings': { 'libraries': [ '-ldl', diff --git a/third_party/libjingle/libjingle.gyp b/third_party/libjingle/libjingle.gyp index 7b8b0a3..9473385 100644 --- a/third_party/libjingle/libjingle.gyp +++ b/third_party/libjingle/libjingle.gyp @@ -54,6 +54,11 @@ 'POSIX', ], }], + ['OS=="openbsd" or OS=="freebsd"', { + 'defines': [ + 'BSD', + ], + }], ], }, 'targets': [ diff --git a/third_party/libjpeg/libjpeg.gyp b/third_party/libjpeg/libjpeg.gyp index 1b0798b..731a61c 100644 --- a/third_party/libjpeg/libjpeg.gyp +++ b/third_party/libjpeg/libjpeg.gyp @@ -5,10 +5,10 @@ { 'variables': { 'conditions': [ - [ 'OS=="linux"', { + [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', { # Link to system .so since we already use it due to GTK. 'use_system_libjpeg%': 1, - }, { # OS!="linux" + }, { # OS!="linux" and OS!="freebsd" and OS!="openbsd" 'use_system_libjpeg%': 0, }], ], diff --git a/third_party/libpng/libpng.gyp b/third_party/libpng/libpng.gyp index d29d8c1..dbb8866 100644 --- a/third_party/libpng/libpng.gyp +++ b/third_party/libpng/libpng.gyp @@ -5,10 +5,10 @@ { 'variables': { 'conditions': [ - [ 'OS=="linux"', { + [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', { # Link to system .so since we already use it due to GTK. 'use_system_libpng%': 1, - }, { # OS!="linux" + }, { # OS!="linux" and OS!="freebsd" and OS!="openbsd" 'use_system_libpng%': 0, }], ], diff --git a/third_party/npapi/npapi.gyp b/third_party/npapi/npapi.gyp index 643eea1..193cddd 100644 --- a/third_party/npapi/npapi.gyp +++ b/third_party/npapi/npapi.gyp @@ -26,7 +26,7 @@ 'bindings/npruntime.h', ], 'conditions': [ - ['OS=="linux"', { + ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 'sources': [ 'bindings/npapi_x11.h', ], diff --git a/third_party/sqlite/sqlite.gyp b/third_party/sqlite/sqlite.gyp index d0cc7ec..81acf99 100644 --- a/third_party/sqlite/sqlite.gyp +++ b/third_party/sqlite/sqlite.gyp @@ -29,7 +29,7 @@ ], }, }], - ['OS=="linux" and use_system_sqlite', { + ['(OS=="linux" or OS=="freebsd" or OS=="openbsd") and use_system_sqlite', { 'type': 'settings', 'direct_dependent_settings': { 'cflags': [ @@ -226,7 +226,7 @@ }, ], 'conditions': [ - ['OS=="linux" and not use_system_sqlite', { + ['(OS=="linux" or OS=="freebsd" or OS=="openbsd") and not use_system_sqlite', { 'targets': [ { 'target_name': 'sqlite_shell', diff --git a/third_party/zlib/zlib.gyp b/third_party/zlib/zlib.gyp index 36613a7..0f77cb0 100644 --- a/third_party/zlib/zlib.gyp +++ b/third_party/zlib/zlib.gyp @@ -5,10 +5,12 @@ { 'variables': { 'conditions': [ - [ 'OS=="linux"', { + [ 'OS=="linux" or OS=="freebsd"', { # Link to system .so since we already use it due to GTK. + # TODO(pvalchev): OpenBSD is purposefully left out, as the system + # zlib brings up an incompatibility that breaks rendering. 'use_system_zlib%': 1, - }, { # OS!="linux" + }, { # OS!="linux" and OS!="freebsd" 'use_system_zlib%': 0, }], ], |