summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--courgette/courgette.gyp4
-rw-r--r--crypto/crypto.gyp8
-rw-r--r--gpu/demos/demos.gyp2
-rw-r--r--gpu/gpu.gyp2
-rw-r--r--ipc/ipc.gyp6
-rw-r--r--jingle/jingle.gyp2
-rw-r--r--media/media.gyp18
-rw-r--r--net/net.gyp12
-rw-r--r--net/third_party/nss/ssl.gyp4
-rw-r--r--ppapi/ppapi.gyp2
-rw-r--r--ppapi/ppapi_tests.gypi2
-rw-r--r--printing/printing.gyp18
-rw-r--r--remoting/remoting.gyp12
-rw-r--r--sandbox/sandbox.gyp2
-rw-r--r--skia/skia.gyp6
-rw-r--r--testing/gtest.gyp2
-rw-r--r--third_party/bzip2/bzip2.gyp4
-rw-r--r--third_party/expat/expat.gyp2
-rw-r--r--third_party/libevent/libevent.gyp2
-rw-r--r--third_party/libjingle/libjingle.gyp6
-rw-r--r--third_party/libjpeg/libjpeg.gyp4
-rw-r--r--third_party/libpng/libpng.gyp4
-rw-r--r--third_party/libxml/libxml.gyp7
-rw-r--r--third_party/libxslt/libxslt.gyp7
-rw-r--r--third_party/mesa/mesa.gyp2
-rw-r--r--third_party/npapi/npapi.gyp2
-rw-r--r--third_party/qcms/qcms.gyp2
-rw-r--r--third_party/snappy/snappy.gyp2
-rw-r--r--third_party/sqlite/sqlite.gyp8
-rw-r--r--third_party/zlib/zlib.gyp4
30 files changed, 77 insertions, 81 deletions
diff --git a/courgette/courgette.gyp b/courgette/courgette.gyp
index 69965b3..f4f1c71 100644
--- a/courgette/courgette.gyp
+++ b/courgette/courgette.gyp
@@ -106,7 +106,7 @@
'../testing/gtest.gyp:gtest',
],
'conditions': [
- [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
+ [ 'toolkit_uses_gtk == 1', {
'dependencies': [
# Workaround for gyp bug 69.
# Needed to handle the #include chain:
@@ -132,7 +132,7 @@
'../testing/gtest.gyp:gtest',
],
'conditions': [
- [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
+ [ 'toolkit_uses_gtk == 1', {
'dependencies': [
# Workaround for gyp bug 69.
# Needed to handle the #include chain:
diff --git a/crypto/crypto.gyp b/crypto/crypto.gyp
index 88863a1..e662e52 100644
--- a/crypto/crypto.gyp
+++ b/crypto/crypto.gyp
@@ -18,7 +18,7 @@
4018,
],
'conditions': [
- [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
+ [ 'os_posix == 1 and OS != "mac"', {
'conditions': [
[ 'chromeos==1', {
'sources/': [ ['include', '_chromeos\\.cc$'] ]
@@ -38,7 +38,7 @@
}
],
],
- }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
+ }, { # os_posix != 1 or OS == "mac"
'sources/': [
['exclude', '_nss\.cc$'],
],
@@ -192,7 +192,7 @@
'../testing/gtest.gyp:gtest',
],
'conditions': [
- [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
+ [ 'os_posix == 1 and OS != "mac"', {
'conditions': [
[ 'linux_use_tcmalloc==1', {
'dependencies': [
@@ -204,7 +204,7 @@
'dependencies': [
'../build/linux/system.gyp:nss',
],
- }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
+ }, { # os_posix != 1 or OS == "mac"
'sources!': [
'rsa_private_key_nss_unittest.cc',
]
diff --git a/gpu/demos/demos.gyp b/gpu/demos/demos.gyp
index a228d56..4da7107 100644
--- a/gpu/demos/demos.gyp
+++ b/gpu/demos/demos.gyp
@@ -52,7 +52,7 @@
'framework/window.h',
],
'conditions': [
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': ['../../build/linux/system.gyp:gtk'],
}],
],
diff --git a/gpu/gpu.gyp b/gpu/gpu.gyp
index f0d6baf..f59e6f9 100644
--- a/gpu/gpu.gyp
+++ b/gpu/gpu.gyp
@@ -230,7 +230,7 @@
'command_buffer/service/texture_manager.cc',
],
'conditions': [
- ['OS == "linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
diff --git a/ipc/ipc.gyp b/ipc/ipc.gyp
index 76b13fc28..c4b7596 100644
--- a/ipc/ipc.gyp
+++ b/ipc/ipc.gyp
@@ -13,7 +13,7 @@
['exclude', '/win_[^/]*\\.cc$'],
],
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {'sources/': [
+ ['os_posix == 1 and OS != "mac"', {'sources/': [
['include', '_posix(_unittest)?\\.cc$'],
]}],
['OS=="mac"', {'sources/': [
@@ -58,12 +58,12 @@
'sync_socket_unittest.cc',
],
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
}],
- ['OS=="linux"', {
+ ['os_posix == 1 and OS != "mac"', {
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
diff --git a/jingle/jingle.gyp b/jingle/jingle.gyp
index 8db3011..1206b71 100644
--- a/jingle/jingle.gyp
+++ b/jingle/jingle.gyp
@@ -110,7 +110,7 @@
'../third_party/libjingle/libjingle.gyp:libjingle',
],
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk'
],
diff --git a/media/media.gyp b/media/media.gyp
index 9b6b195..384fee8 100644
--- a/media/media.gyp
+++ b/media/media.gyp
@@ -206,7 +206,7 @@
'video/mft_h264_decode_engine.h',
],
}],
- ['OS=="linux" or OS=="freebsd"', {
+ ['OS == "linux" or OS == "freebsd" or OS == "solaris"', {
'link_settings': {
'libraries': [
'-lasound',
@@ -228,7 +228,7 @@
'audio/openbsd/audio_manager_openbsd.h',
],
}],
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
+ ['os_posix == 1 and OS != "mac"', {
'sources': [
'filters/omx_video_decoder.cc',
'filters/omx_video_decoder.h',
@@ -237,7 +237,7 @@
'omx_wrapper',
]
}],
- ['OS=="linux"', {
+ ['os_posix == 1 and OS != "mac"', {
'sources!': [
'video/capture/video_capture_device_dummy.cc',
'video/capture/video_capture_device_dummy.h',
@@ -310,7 +310,7 @@
'..',
],
'conditions': [
- [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
+ [ 'os_posix == 1 and OS != "mac"', {
'cflags': [
'-msse2',
],
@@ -337,7 +337,7 @@
'ffmpeg/ffmpeg_unittest.cc',
],
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
# Needed for the following #include chain:
# base/run_all_unittests.cc
@@ -422,7 +422,7 @@
'video/ffmpeg_video_decode_engine_unittest.cc',
],
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
# Needed for the following #include chain:
# base/run_all_unittests.cc
@@ -625,7 +625,7 @@
'tools/shader_bench/window.h',
],
'conditions': [
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
@@ -665,7 +665,7 @@
},
],
}],
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
+ ['os_posix == 1 and OS != "mac"', {
'targets': [
{
'target_name': 'omx_test',
@@ -697,7 +697,7 @@
'../testing/gtest.gyp:gtest',
],
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
diff --git a/net/net.gyp b/net/net.gyp
index 9169f97..1931bea 100644
--- a/net/net.gyp
+++ b/net/net.gyp
@@ -726,7 +726,7 @@
],
},
],
- [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
+ [ 'toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gconf',
'../build/linux/system.gyp:gdk',
@@ -995,7 +995,7 @@
'proxy/proxy_config_service_linux_unittest.cc',
],
}],
- [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
+ [ 'toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
'../build/linux/system.gyp:nss',
@@ -1007,7 +1007,7 @@
],
}
],
- [ 'OS == "linux"', {
+ [ 'os_posix == 1 and OS != "mac"', {
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
@@ -1171,7 +1171,7 @@
'../third_party/protobuf/protobuf.gyp:py_proto',
],
}],
- ['OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
+ ['os_posix == 1 and OS != "mac"', {
'conditions': [
['use_openssl==1', {
'dependencies': [
@@ -1184,7 +1184,7 @@
}],
],
}],
- ['OS == "linux"', {
+ ['os_posix == 1 and OS != "mac"', {
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
@@ -1292,7 +1292,7 @@
},
],
'conditions': [
- ['OS=="linux"', {
+ ['os_posix == 1 and OS != "mac"', {
'targets': [
{
'target_name': 'flip_in_mem_edsm_server',
diff --git a/net/third_party/nss/ssl.gyp b/net/third_party/nss/ssl.gyp
index 562539e..eb732a0 100644
--- a/net/third_party/nss/ssl.gyp
+++ b/net/third_party/nss/ssl.gyp
@@ -4,7 +4,7 @@
{
'conditions': [
- [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
+ [ 'os_posix == 1 and OS != "mac"', {
'conditions': [
['sysroot!=""', {
'variables': {
@@ -105,7 +105,7 @@
],
},
],
- [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
+ [ 'os_posix == 1 and OS != "mac"', {
'defines': [
# These macros are needed only for compiling the files in
# ssl/bodge.
diff --git a/ppapi/ppapi.gyp b/ppapi/ppapi.gyp
index 8d1d6c0..f1eb48f 100644
--- a/ppapi/ppapi.gyp
+++ b/ppapi/ppapi.gyp
@@ -17,7 +17,7 @@
# TODO(ajwong): For internal pepper plugins, which are statically linked
# into chrome, do we want to build w/o -fPIC? If so, how can we express
# that in the build system?
- ['OS=="linux" or OS=="openbsd" or OS=="freebsd" or OS=="solaris"', {
+ ['os_posix == 1 and OS != "mac"', {
'cflags': ['-fPIC', '-fvisibility=hidden'],
# This is needed to make the Linux shlib build happy. Without this,
diff --git a/ppapi/ppapi_tests.gypi b/ppapi/ppapi_tests.gypi
index dc1d767..ec83d41 100644
--- a/ppapi/ppapi_tests.gypi
+++ b/ppapi/ppapi_tests.gypi
@@ -31,7 +31,7 @@
],
},
}],
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ ['os_posix == 1 and OS != "mac"', {
'product_name': 'ppapi_example',
'type': 'shared_library',
'cflags': ['-fvisibility=hidden'],
diff --git a/printing/printing.gyp b/printing/printing.gyp
index aae1a6e..f7ce898 100644
--- a/printing/printing.gyp
+++ b/printing/printing.gyp
@@ -89,7 +89,7 @@
],
},
'conditions': [
- ['OS!="linux" and OS!="freebsd" and OS!="openbsd"',{
+ ['toolkit_uses_gtk == 0',{
'sources/': [['exclude', '_cairo\\.cc$']]
}],
['OS!="mac"', {'sources/': [['exclude', '_mac\\.(cc|mm?)$']]}],
@@ -97,7 +97,7 @@
}, { # else: OS=="win"
'sources/': [['exclude', '_posix\\.cc$']]
}],
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
+ ['toolkit_uses_gtk == 1', {
'sources': [
'metafile_skia_wrapper.cc',
'metafile_skia_wrapper.h',
@@ -172,21 +172,19 @@
'units_unittest.cc',
],
'conditions': [
- ['OS!="linux"', {'sources/': [['exclude', '_cairo_unittest\\.cc$']]}],
+ ['toolkit_uses_gtk == 0', {'sources/': [['exclude', '_cairo_unittest\\.cc$']]}],
['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}],
['OS!="win"', {'sources/': [['exclude', '_win_unittest\\.cc$']]
}, { # else: OS=="win"
'sources/': [['exclude', '_cairo_unittest\\.cc$']]
}
],
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
- 'dependencies': [
- '../build/linux/system.gyp:gtk',
- ],
- }],
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
+ 'dependencies': [
+ '../build/linux/system.gyp:gtk',
+ ],
'conditions': [
- ['linux_use_tcmalloc==1', {
+ ['linux_use_tcmalloc == 1', {
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
],
diff --git a/remoting/remoting.gyp b/remoting/remoting.gyp
index b0ad56b..2c68af1 100644
--- a/remoting/remoting.gyp
+++ b/remoting/remoting.gyp
@@ -21,7 +21,7 @@
'plugin_extension': 'plugin',
'plugin_prefix': '',
}],
- ['OS=="linux"', {
+ ['os_posix == 1 and OS != "mac"', {
'plugin_extension': 'so',
'plugin_prefix': 'lib',
}],
@@ -46,7 +46,7 @@
},
'conditions': [
- ['OS=="linux" or OS=="mac"', {
+ ['os_posix == 1', {
'targets': [
# Simple webserver for testing remoting client plugin.
{
@@ -60,7 +60,7 @@
}],
# TODO(hclam): Enable this target for mac.
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
+ ['use_x11 == 1', {
'targets': [
{
@@ -345,7 +345,7 @@
'host/user_authenticator_win.cc',
],
'conditions': [
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
@@ -575,7 +575,7 @@
'..',
],
'conditions': [
- [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
+ [ 'os_posix == 1 and OS != "mac"', {
'cflags': [
'-msse2',
],
@@ -670,7 +670,7 @@
'run_all_unittests.cc',
],
'conditions': [
- ['OS=="linux"', {
+ ['toolkit_uses_gtk == 1', {
'dependencies': [
'../app/app.gyp:app_base',
# Needed for the following #include chain:
diff --git a/sandbox/sandbox.gyp b/sandbox/sandbox.gyp
index 9078337..4c611db 100644
--- a/sandbox/sandbox.gyp
+++ b/sandbox/sandbox.gyp
@@ -126,7 +126,7 @@
],
},
'conditions': [
- [ 'OS=="freebsd" or OS=="openbsd"', {
+ [ 'os_posix == 1 and OS != "mac" and OS != "linux"', {
# GYP requires that each file have at least one target defined.
'targets': [
{
diff --git a/skia/skia.gyp b/skia/skia.gyp
index b158d91..3c7bd12 100644
--- a/skia/skia.gyp
+++ b/skia/skia.gyp
@@ -724,7 +724,7 @@
['exclude', '_mac\\.(cc|cpp|mm?)$'],
['exclude', '/mac/'] ],
}],
- [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', {
+ [ 'toolkit_uses_gtk == 0', {
'sources/': [ ['exclude', '_(linux|gtk)\\.(cc|cpp)$'] ],
'sources!': [
'../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
@@ -760,7 +760,7 @@
'SK_RESTRICT=',
],
}],
- [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
+ [ 'toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gdk',
'../build/linux/system.gyp:fontconfig',
@@ -891,7 +891,7 @@
'../third_party/skia/src/core',
],
'conditions': [
- [ '(OS == "linux" or OS == "freebsd" or OS == "openbsd") and target_arch != "arm"', {
+ [ 'os_posix == 1 and OS != "mac" and target_arch != "arm"', {
'cflags': [
'-msse2',
],
diff --git a/testing/gtest.gyp b/testing/gtest.gyp
index c3116f1..8f9d6d4 100644
--- a/testing/gtest.gyp
+++ b/testing/gtest.gyp
@@ -62,7 +62,7 @@
],
},
}],
- ['OS == "mac" or OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
+ ['os_posix == 1', {
'defines': [
# gtest isn't able to figure out when RTTI is disabled for gcc
# versions older than 4.3.2, and assumes it's enabled. Our Mac
diff --git a/third_party/bzip2/bzip2.gyp b/third_party/bzip2/bzip2.gyp
index b1548f9..ae31121 100644
--- a/third_party/bzip2/bzip2.gyp
+++ b/third_party/bzip2/bzip2.gyp
@@ -5,10 +5,10 @@
{
'variables': {
'conditions': [
- [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
+ [ 'os_posix == 1 and OS != "mac"', {
# Link to system .so since we already use it due to GTK.
'use_system_bzip2%': 1,
- }, { # OS!="linux"
+ }, { # os_posix != 1 or OS == "mac"
'use_system_bzip2%': 0,
}],
],
diff --git a/third_party/expat/expat.gyp b/third_party/expat/expat.gyp
index 2d956e2..13fcae2 100644
--- a/third_party/expat/expat.gyp
+++ b/third_party/expat/expat.gyp
@@ -15,7 +15,7 @@
]
},
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
+ ['os_posix == 1 and OS != "mac"', {
# On Linux, we implicitly already depend on expat via fontconfig;
# let's not pull it in twice.
'targets': [
diff --git a/third_party/libevent/libevent.gyp b/third_party/libevent/libevent.gyp
index ab732a2..01a5019 100644
--- a/third_party/libevent/libevent.gyp
+++ b/third_party/libevent/libevent.gyp
@@ -50,7 +50,7 @@
],
},
}],
- [ 'OS == "mac" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
+ [ 'OS == "mac" or OS == "freebsd" or OS == "openbsd"', {
'sources': [ 'kqueue.c' ],
'include_dirs': [ 'mac' ]
}],
diff --git a/third_party/libjingle/libjingle.gyp b/third_party/libjingle/libjingle.gyp
index b78918d..f04091c 100644
--- a/third_party/libjingle/libjingle.gyp
+++ b/third_party/libjingle/libjingle.gyp
@@ -72,7 +72,7 @@
'OSX',
],
}],
- ['OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="openbsd"', {
+ ['os_posix == 1', {
'defines': [
'POSIX',
],
@@ -116,7 +116,7 @@
'OSX',
],
}],
- ['OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="openbsd"', {
+ ['os_posix == 1', {
'defines': [
'POSIX',
],
@@ -324,7 +324,7 @@
'source/talk/base/winping.h',
],
}],
- ['OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="openbsd"', {
+ ['os_posix == 1', {
'sources': [
'source/talk/base/sslstreamadapter.cc',
'source/talk/base/sslstreamadapter.h',
diff --git a/third_party/libjpeg/libjpeg.gyp b/third_party/libjpeg/libjpeg.gyp
index e0f4f1d..9ca5b35f 100644
--- a/third_party/libjpeg/libjpeg.gyp
+++ b/third_party/libjpeg/libjpeg.gyp
@@ -5,10 +5,10 @@
{
'variables': {
'conditions': [
- [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
+ [ 'os_posix == 1 and OS != "mac"', {
# Link to system .so since we already use it due to GTK.
'use_system_libjpeg%': 1,
- }, { # OS!="linux" and OS!="freebsd" and OS!="openbsd"
+ }, { # os_posix != 1 or OS == "mac"
'use_system_libjpeg%': 0,
}],
],
diff --git a/third_party/libpng/libpng.gyp b/third_party/libpng/libpng.gyp
index f565795..fdd3a57 100644
--- a/third_party/libpng/libpng.gyp
+++ b/third_party/libpng/libpng.gyp
@@ -5,10 +5,10 @@
{
'variables': {
'conditions': [
- [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
+ [ 'os_posix == 1 and OS != "mac"', {
# Link to system .so since we already use it due to GTK.
'use_system_libpng%': 1,
- }, { # OS!="linux" and OS!="freebsd" and OS!="openbsd"
+ }, { # os_posix != 1 or OS == "mac"
'use_system_libpng%': 0,
}],
],
diff --git a/third_party/libxml/libxml.gyp b/third_party/libxml/libxml.gyp
index 2a1a6c8..85aeadc 100644
--- a/third_party/libxml/libxml.gyp
+++ b/third_party/libxml/libxml.gyp
@@ -7,7 +7,7 @@
'conditions': [
# Define an "os_include" variable that points at the OS-specific generated
# headers. These were generated by running the configure script offline.
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ ['os_posix == 1 and OS != "mac"', {
'os_include': 'linux'
}],
['OS=="mac"', {'os_include': 'mac'}],
@@ -19,8 +19,7 @@
{
'target_name': 'libxml',
'conditions': [
- ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") '
- 'and use_system_libxml', {
+ ['os_posix == 1 and OS != "mac" and use_system_libxml', {
'type': 'settings',
'direct_dependent_settings': {
'cflags': [
@@ -38,7 +37,7 @@
'<!@(pkg-config --libs-only-l libxml-2.0)',
],
},
- }, { # else: OS != "linux" or ! use_system_libxml
+ }, { # else: os_posix != 1 or OS == "mac" or ! use_system_libxml
'type': 'static_library',
'msvs_guid': 'F9810DE8-CBC3-4605-A7B1-ECA2D5292FD7',
'sources': [
diff --git a/third_party/libxslt/libxslt.gyp b/third_party/libxslt/libxslt.gyp
index 826bf5ec..3b00ffa 100644
--- a/third_party/libxslt/libxslt.gyp
+++ b/third_party/libxslt/libxslt.gyp
@@ -5,7 +5,7 @@
{
'variables': {
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ ['os_posix == 1 and OS != "mac"', {
'os_include': 'linux'
}],
['OS=="mac"', {'os_include': 'mac'}],
@@ -21,8 +21,7 @@
{
'target_name': 'libxslt',
'conditions': [
- ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") '
- 'and use_system_libxml', {
+ ['os_posix == 1 and OS != "mac" and use_system_libxml', {
'type': 'settings',
'direct_dependent_settings': {
'cflags': [
@@ -37,7 +36,7 @@
'<!@(pkg-config --libs-only-l libxslt)',
],
},
- }, { # else: OS != "linux" or ! use_system_libxml
+ }, { # else: os_posix != 1 or OS == "mac" or ! use_system_libxml
'type': 'static_library',
'msvs_guid': 'FC0E1FD0-5DD7-4041-A1C9-CD3C376E4EED',
'sources': [
diff --git a/third_party/mesa/mesa.gyp b/third_party/mesa/mesa.gyp
index e177ad55..031632a 100644
--- a/third_party/mesa/mesa.gyp
+++ b/third_party/mesa/mesa.gyp
@@ -19,7 +19,7 @@
'HAVE_STRNLEN',
],
}],
- ['OS=="linux"', {
+ ['os_posix == 1 and OS != "mac"', {
'cflags': [
'-fPIC',
],
diff --git a/third_party/npapi/npapi.gyp b/third_party/npapi/npapi.gyp
index 193cddd..685aacc 100644
--- a/third_party/npapi/npapi.gyp
+++ b/third_party/npapi/npapi.gyp
@@ -26,7 +26,7 @@
'bindings/npruntime.h',
],
'conditions': [
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
+ ['use_x11 == 1', {
'sources': [
'bindings/npapi_x11.h',
],
diff --git a/third_party/qcms/qcms.gyp b/third_party/qcms/qcms.gyp
index b8bd079..3df4bdc 100644
--- a/third_party/qcms/qcms.gyp
+++ b/third_party/qcms/qcms.gyp
@@ -23,7 +23,7 @@
],
},
'conditions': [
- ['OS=="linux" and (branding=="Chrome" or disable_sse2==1)', {
+ ['os_posix == 1 and OS != "mac" and (branding == "Chrome" or disable_sse2 == 1)', {
'sources/': [
['exclude', 'transform-sse1.c'],
['exclude', 'transform-sse2.c'],
diff --git a/third_party/snappy/snappy.gyp b/third_party/snappy/snappy.gyp
index e24dc88..b5dbc8e 100644
--- a/third_party/snappy/snappy.gyp
+++ b/third_party/snappy/snappy.gyp
@@ -7,7 +7,7 @@
'conditions': [
# Define an "os_include" variable that points at the OS-specific generated
# headers. These were generated by running the configure script offline.
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ ['os_posix == 1 and OS != "mac"', {
'os_include': 'linux'
}],
['OS=="mac"', {'os_include': 'mac'}],
diff --git a/third_party/sqlite/sqlite.gyp b/third_party/sqlite/sqlite.gyp
index 1ce4346..93d8ede3 100644
--- a/third_party/sqlite/sqlite.gyp
+++ b/third_party/sqlite/sqlite.gyp
@@ -41,7 +41,7 @@
],
},
}],
- ['(OS=="linux" or OS=="freebsd" or OS=="openbsd") and use_system_sqlite', {
+ ['os_posix == 1 and OS != "mac" and use_system_sqlite', {
'type': 'settings',
'direct_dependent_settings': {
'cflags': [
@@ -64,7 +64,7 @@
'<!@(pkg-config --libs-only-l sqlite3)',
],
},
- }, { # else: OS != "linux" or ! use_system_sqlite
+ }, { # else: os_posix == 1 or OS == "mac" or ! use_system_sqlite
'product_name': 'sqlite3',
'type': 'static_library',
'msvs_guid': '6EAD4A4B-2BBC-4974-8E45-BB5C16CC2AC9',
@@ -110,7 +110,7 @@
4018, 4244,
],
'conditions': [
- ['OS=="linux"', {
+ ['os_posix == 1 and OS != "mac"', {
'cflags': [
# SQLite doesn't believe in compiler warnings,
# preferring testing.
@@ -125,7 +125,7 @@
},
],
'conditions': [
- ['(OS=="linux" or OS=="freebsd" or OS=="openbsd") and not use_system_sqlite', {
+ ['os_posix == 1 and OS != "mac" 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 6fa9e9d..7718da3 100644
--- a/third_party/zlib/zlib.gyp
+++ b/third_party/zlib/zlib.gyp
@@ -5,12 +5,12 @@
{
'variables': {
'conditions': [
- [ 'OS=="linux" or OS=="freebsd"', {
+ [ 'os_posix == 1 and OS != "mac" and OS != "openbsd"', {
# 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" and OS!="freebsd"
+ }, { # os_posix != 1 or OS == "mac" or OS == "openbsd"
'use_system_zlib%': 0,
}],
],